Skip to content

Commit 1b59efe

Browse files
rddunlapjcmvbkbc
authored andcommitted
xtensa: iss/network: make functions static
Make 2 functions static to prevent build warnings: arch/xtensa/platforms/iss/network.c:204:16: warning: no previous prototype for 'tuntap_protocol' [-Wmissing-prototypes] 204 | unsigned short tuntap_protocol(struct sk_buff *skb) arch/xtensa/platforms/iss/network.c:444:6: warning: no previous prototype for 'iss_net_user_timer_expire' [-Wmissing-prototypes] 444 | void iss_net_user_timer_expire(struct timer_list *unused) Fixes: 7282bee ("xtensa: Architecture support for Tensilica Xtensa Part 8") Fixes: d8479a2 ("xtensa: Convert timers to use timer_setup()") Signed-off-by: Randy Dunlap <[email protected]> Cc: Chris Zankel <[email protected]> Cc: Max Filippov <[email protected]> Message-Id: <[email protected]> Signed-off-by: Max Filippov <[email protected]>
1 parent 25b9a3c commit 1b59efe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/xtensa/platforms/iss/network.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ static int tuntap_write(struct iss_net_private *lp, struct sk_buff **skb)
201201
return simc_write(lp->tp.info.tuntap.fd, (*skb)->data, (*skb)->len);
202202
}
203203

204-
unsigned short tuntap_protocol(struct sk_buff *skb)
204+
static unsigned short tuntap_protocol(struct sk_buff *skb)
205205
{
206206
return eth_type_trans(skb, skb->dev);
207207
}
@@ -441,7 +441,7 @@ static int iss_net_change_mtu(struct net_device *dev, int new_mtu)
441441
return -EINVAL;
442442
}
443443

444-
void iss_net_user_timer_expire(struct timer_list *unused)
444+
static void iss_net_user_timer_expire(struct timer_list *unused)
445445
{
446446
}
447447

0 commit comments

Comments
 (0)