Skip to content

Commit

Permalink
drivers/net/tokenring: fix sparse warnings: make symbols static
Browse files Browse the repository at this point in the history
Fix this sparse warnings:

  drivers/net/tokenring/ibmtr.c:1840:6: warning: symbol 'tok_rerun' was not declared. Should it be static?
  drivers/net/tokenring/madgemc.c:469:16: warning: symbol 'madgemc_setnselout_pins' was not declared. Should it be static?
  drivers/net/tokenring/proteon.c:286:16: warning: symbol 'proteon_setnselout_pins' was not declared. Should it be static?
  drivers/net/tokenring/skisa.c:303:16: warning: symbol 'sk_isa_setnselout_pins' was not declared. Should it be static?

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Hannes Eder authored and David S. Miller committed Dec 26, 2008
1 parent 409b204 commit 27cd6ae
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions drivers/net/tokenring/ibmtr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1837,8 +1837,8 @@ static void ibmtr_reset_timer(struct timer_list *tmr, struct net_device *dev)

/*****************************************************************************/

void tok_rerun(unsigned long dev_addr){

static void tok_rerun(unsigned long dev_addr)
{
struct net_device *dev = (struct net_device *)dev_addr;
struct tok_info *ti = netdev_priv(dev);

Expand Down
2 changes: 1 addition & 1 deletion drivers/net/tokenring/madgemc.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ static irqreturn_t madgemc_interrupt(int irq, void *dev_id)
* zero to leave the TMS NSELOUT bits unaffected.
*
*/
unsigned short madgemc_setnselout_pins(struct net_device *dev)
static unsigned short madgemc_setnselout_pins(struct net_device *dev)
{
unsigned char reg1;
struct net_local *tp = netdev_priv(dev);
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/tokenring/proteon.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ static void proteon_read_eeprom(struct net_device *dev)
dev->dev_addr[i] = proteon_sifreadw(dev, SIFINC) >> 8;
}

unsigned short proteon_setnselout_pins(struct net_device *dev)
static unsigned short proteon_setnselout_pins(struct net_device *dev)
{
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/tokenring/skisa.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ static void sk_isa_read_eeprom(struct net_device *dev)
dev->dev_addr[i] = sk_isa_sifreadw(dev, SIFINC) >> 8;
}

unsigned short sk_isa_setnselout_pins(struct net_device *dev)
static unsigned short sk_isa_setnselout_pins(struct net_device *dev)
{
return 0;
}
Expand Down

0 comments on commit 27cd6ae

Please sign in to comment.