On Tue, 2016-08-30 at 21:56 -0700, Roopa Prabhu wrote:
> From: Roopa Prabhu <ro...@cumulusnetworks.com>

> @@ -342,7 +342,7 @@ static inline int switchdev_port_fdb_dump(struct sk_buff 
> *skb,
>                                         struct netlink_callback *cb,
>                                         struct net_device *dev,
>                                         struct net_device *filter_dev,
> -                                       int idx)
> +                                       int *idx)
>  {
>         return idx;
>  }


Compiler is not happy with this change.

$ grep CONFIG_NET_SWITCHDEV .config
# CONFIG_NET_SWITCHDEV is not set

...

./include/net/switchdev.h: In function 'switchdev_port_fdb_dump':
./include/net/switchdev.h:347:8: warning: return makes integer from pointer 
without a cast [enabled by default]

Thanks.


Reply via email to