lkml.org 
[lkml]   [2012]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] mac802154: fix sparse warning for mac802154_slave_get_priv
    Date
    Make sparse happy by fixing the following error:
    * symbol 'mac802154_slave_get_priv' was not declared. Should it be static?

    Signed-off-by: Silviu-Mihai Popescu <silviupopescu1990@gmail.com>
    ---
    net/mac802154/mib.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/net/mac802154/mib.c b/net/mac802154/mib.c
    index ab59821..1cf6557 100644
    --- a/net/mac802154/mib.c
    +++ b/net/mac802154/mib.c
    @@ -34,7 +34,7 @@ struct hw_addr_filt_notify_work {
    unsigned long changed;
    };

    -struct mac802154_priv *mac802154_slave_get_priv(struct net_device *dev)
    +static struct mac802154_priv *mac802154_slave_get_priv(struct net_device *dev)
    {
    struct mac802154_sub_if_data *priv = netdev_priv(dev);

    --
    1.7.11-rc3


    \
     
     \ /
      Last update: 2012-07-13 23:41    [W:0.022 / U:0.868 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site