staging: gdm724x: Fix sparse warnings regarding static functions/variables
This fixes sparse warnings for functions and variables, e.g.: * drivers/staging/gdm724x/gdm_mux.c:29:25: warning: symbol 'mux_rx_wq' was not declared. Should it be static? Signed-off-by: Valentina Manea <valentina.manea.m@gmail.com> Reviewed-by: Zach Brown <zab@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c63a164271
commit
ff52b8fe2b
|
@ -110,7 +110,7 @@ static int gdm_lte_rx(struct sk_buff *skb, struct nic *nic, int nic_type)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int gdm_lte_emulate_arp(struct sk_buff *skb_in, u32 nic_type)
|
||||
static int gdm_lte_emulate_arp(struct sk_buff *skb_in, u32 nic_type)
|
||||
{
|
||||
struct nic *nic = netdev_priv(skb_in->dev);
|
||||
struct sk_buff *skb_out;
|
||||
|
@ -186,7 +186,7 @@ int gdm_lte_emulate_arp(struct sk_buff *skb_in, u32 nic_type)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int icmp6_checksum(struct ipv6hdr *ipv6, u16 *ptr, int len)
|
||||
static int icmp6_checksum(struct ipv6hdr *ipv6, u16 *ptr, int len)
|
||||
{
|
||||
unsigned short *w = ptr;
|
||||
int sum = 0;
|
||||
|
@ -226,7 +226,7 @@ int icmp6_checksum(struct ipv6hdr *ipv6, u16 *ptr, int len)
|
|||
return sum;
|
||||
}
|
||||
|
||||
int gdm_lte_emulate_ndp(struct sk_buff *skb_in, u32 nic_type)
|
||||
static int gdm_lte_emulate_ndp(struct sk_buff *skb_in, u32 nic_type)
|
||||
{
|
||||
struct nic *nic = netdev_priv(skb_in->dev);
|
||||
struct sk_buff *skb_out;
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
#include "gdm_mux.h"
|
||||
|
||||
struct workqueue_struct *mux_rx_wq;
|
||||
static struct workqueue_struct *mux_rx_wq;
|
||||
|
||||
static u16 packet_type[TTY_MAX_COUNT] = {0xF011, 0xF010};
|
||||
|
||||
|
@ -51,7 +51,7 @@ static const struct usb_device_id id_table[] = {
|
|||
|
||||
MODULE_DEVICE_TABLE(usb, id_table);
|
||||
|
||||
int packet_type_to_index(u16 packetType)
|
||||
static int packet_type_to_index(u16 packetType)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
Loading…
Reference in New Issue