"makes pointer from integer without a cast" when calling netif_napi_add [migrated]

view full story

http://unix.stackexchange.com – The syntax for netif_napi_add is: netif_napi_add(struct net_device *dev, struct napi_struct *napi,int (*poll)(struct napi_struct *, int), int weight) It is used for initializing the napi structure. The problem is, when I use the function as: netif_napi_add(wdev,rnapi,rrpoll(rnapi,20),16); It's giving me a compilation warning: warning: passing argument 3 of ‘netif_napi_add’ makes pointer from integer without a cast /usr/src/linux- note: expected ‘int (*)(struct napi_struct *, int)’ but argument is of type ‘int’ How do I fix it (HowTos)