[lkml]   [2010]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    SubjectRe: linux-next: build warning after merge of the final tree (net tree related)
    On Wed, Jun 16, 2010 at 01:48:48PM +1000, Stephen Rothwell wrote:
    > Hi Dave,
    > After merging the final tree, today's linux-next build (powerpc
    > ppc44x_defconfig) produced this warning:
    > net/bridge/br_forward.c: In function '__br_deliver':
    > net/bridge/br_forward.c:76: warning: passing argument 1 of 'br_netpoll_send_skb' discards qualifiers from pointer target type
    > net/bridge/br_private.h:308: note: expected 'struct net_bridge_port *' but argument is of type 'const struct net_bridge_port *'

    Indeed, this patch should fix the warning.

    bridge: Add const to dummy br_netpoll_send_skb

    The version of br_netpoll_send_skb used when netpoll is off is
    missing a const thus causing a warning.

    Signed-off-by: Herbert Xu <>

    diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h
    index 29f6d66..4ea7986 100644
    --- a/net/bridge/br_private.h
    +++ b/net/bridge/br_private.h
    @@ -300,7 +300,7 @@ static inline struct netpoll_info *br_netpoll_info(struct net_bridge *br)
    return NULL;

    -static inline void br_netpoll_send_skb(struct net_bridge_port *p,
    +static inline void br_netpoll_send_skb(const struct net_bridge_port *p,
    struct sk_buff *skb)
    Visit Openswan at
    Email: Herbert Xu ~{PmV>HI~} <>
    Home Page:
    PGP Key:

     \ /
      Last update: 2010-06-16 05:59    [W:0.020 / U:13.888 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site