Skip to content

Commit

Permalink
Staging: benet: fix build errors when CONFIG_NETPOLL is off
Browse files Browse the repository at this point in the history
Signed-off-by: Sathya Perla <sathyap@serverengines.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Sathya Perla authored and Greg Kroah-Hartman committed Jan 6, 2009
1 parent 7f42523 commit d625871
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/benet/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
config BENET
tristate "ServerEngines 10Gb NIC - BladeEngine"
depends on PCI && INET && NETPOLL
depends on PCI && INET
select INET_LRO
help
This driver implements the NIC functionality for ServerEngines
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/benet/TODO
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ TODO:
- fix minor checkpatch.pl issues
- remove wrappers around common iowrite functions
- full netdev audit of common problems/issues
- fix build errors when CONFIG_NETPOLL is not enabled

Please send all patches and questions to Subbu Seetharaman
<subbus@serverengines.com> and Greg Kroah-Hartman <greg@kroah.com>
6 changes: 2 additions & 4 deletions drivers/staging/benet/be_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,12 +717,10 @@ irqreturn_t be_int(int irq, void *dev)
*/
int be_poll(struct napi_struct *napi, int budget)
{
struct net_device *netdev = napi->dev;
struct be_net_object *pnob = netdev_priv(netdev);
struct be_adapter *adapter = pnob->adapter;
struct be_net_object *pnob = container_of(napi, struct be_net_object, napi);
u32 work_done;

adapter->be_stat.bes_polls++;
pnob->adapter->be_stat.bes_polls++;
work_done = process_rx_completions(pnob, budget);
BUG_ON(work_done > budget);

Expand Down

0 comments on commit d625871

Please sign in to comment.