Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff52b8fe authored by Valentina Manea's avatar Valentina Manea Committed by Greg Kroah-Hartman
Browse files

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: default avatarValentina Manea <valentina.manea.m@gmail.com>
Reviewed-by: default avatarZach Brown <zab@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c63a1642
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;
+2 −2
Original line number Diff line number Diff line
@@ -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;