title: void netif_napi_add
body: <p>the syntax for netif_napi_add is </p>
  
  <pre><code>netif_napi_add(struct net_device *dev, struct napi_struct *napi,int (*poll)(struct napi_struct *, int), int weight)
  </code></pre>
  
  <p>it is used for initializing the napi structure . the problem is when i am using the function as </p>
  
  <pre><code> netif_napi_add(wdev,rnapi,rrpoll(rnapi,20),16);
  </code></pre>
  
  <p>its giving me warning on time of compilation as</p>
  
  <pre><code>warning: passing argument 3 of ‘netif_napi_add’ makes pointer from integer without a cast
  /usr/src/linux-2.6.34.10-0.6/include/linux/netdevice.h:1089:6: note: expected ‘int (*)(struct napi_struct *, int)’ but argument is of type ‘int’
  </code></pre>
  
  <p>how to write it correctly ??</p>
  
  <p>regards</p>
  
  <p>karan</p>