diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2016-07-12 10:36:15 +0200 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2016-07-14 11:19:59 -0700 |
commit | 6d13b114c8fd725ce5a1113a5c8a89e7d96b6cf0 (patch) | |
tree | 9164fcd05f7def604eb7faf463847e5c6859b8cd /drivers | |
parent | fd913a90fa6832eecd00898b7f83088c789e8cd1 (diff) |
unused variables: silence compiler warning
drivers/media/platform/mxc/capture/ov5640_mipi.c:879:18: warning: 'sclk_rdiv_map' defined but not used [-Wunused-const-variable=]
static const int sclk_rdiv_map[] = {1, 2, 4, 8};
^~~~~~~~~~~~~
drivers/net/usb/usbnet.c:84:19: warning: 'driver_name' defined but not used [-Wunused-const-variable=]
static const char driver_name [] = "usbnet";
^~~~~~~~~~~
fs/cifs/netmisc.c:133:40: warning: 'mapping_table_ERRHRD' defined but not used [-Wunused-const-variable=]
static const struct smb_to_posix_error mapping_table_ERRHRD[] = {
^~~~~~~~~~~~~~~~~~~~
kernel/cgroup.c:3839:36: warning: 'cgroup_pidlist_seq_operations' defined but not used [-Wunused-const-variable=]
static const struct seq_operations cgroup_pidlist_seq_operations = {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/core/net-sysfs.c:30:19: warning: 'fmt_long_hex' defined but not used [-Wunused-const-variable=]
static const char fmt_long_hex[] = "%#lx\n";
^~~~~~~~~~~~
net/core/rtnetlink.c:1266:32: warning: 'ifla_vf_policy' defined but not used [-Wunused-const-variable=]
static const struct nla_policy ifla_vf_policy[IFLA_VF_MAX+1] = {
^~~~~~~~~~~~~~
net/core/rtnetlink.c:1262:32: warning: 'ifla_vfinfo_policy' defined but not used [-Wunused-const-variable=]
static const struct nla_policy ifla_vfinfo_policy[IFLA_VF_INFO_MAX+1] = {
^~~~~~~~~~~~~~~~~~
net/core/sysctl_net_core.c:26:12: warning: 'one' defined but not used [-Wunused-variable]
static int one = 1;
^~~
net/ipv4/ping.c:1148:36: warning: 'ping_v4_seq_ops' defined but not used [-Wunused-const-variable=]
static const struct seq_operations ping_v4_seq_ops = {
^~~~~~~~~~~~~~~
net/rfkill/rfkill-gpio.c:187:36: warning: 'rfkill_acpi_match' defined but not used [-Wunused-const-variable=]
static const struct acpi_device_id rfkill_acpi_match[] = {
drivers/net/wireless/rtlwifi/efuse.c:38:31: warning: 'RTL8712_SDIO_EFUSE_TABLE' defined but not used [-Wunused-const-variable=]
static const struct efuse_map RTL8712_SDIO_EFUSE_TABLE[] = {
^~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/rtlwifi/efuse.c:34:17: warning: 'MAX_PGPKT_SIZE' defined but not used [-Wunused-const-variable=]
static const u8 MAX_PGPKT_SIZE = 9;
^~~~~~~~~~~~~~
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/platform/mxc/capture/ov5640_mipi.c | 2 | ||||
-rw-r--r-- | drivers/net/usb/usbnet.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/efuse.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/platform/mxc/capture/ov5640_mipi.c b/drivers/media/platform/mxc/capture/ov5640_mipi.c index 3d77dc784362..614ae35b7fe1 100644 --- a/drivers/media/platform/mxc/capture/ov5640_mipi.c +++ b/drivers/media/platform/mxc/capture/ov5640_mipi.c @@ -876,7 +876,7 @@ static void OV5640_stream_off(void) ov5640_write_reg(0x4202, 0x0f); } -static const int sclk_rdiv_map[] = {1, 2, 4, 8}; +static const int sclk_rdiv_map[] __maybe_unused = {1, 2, 4, 8}; static int OV5640_get_sysclk(void) { diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index f9e96c427558..6ffb1e5fe960 100644 --- a/drivers/net/usb/usbnet.c +++ b/drivers/net/usb/usbnet.c @@ -81,7 +81,7 @@ // randomly generated ethernet address static u8 node_id [ETH_ALEN]; -static const char driver_name [] = "usbnet"; +static const char driver_name [] __maybe_unused = "usbnet"; /* use ethtool to change the level for any given device */ static int msg_level = -1; diff --git a/drivers/net/wireless/rtlwifi/efuse.c b/drivers/net/wireless/rtlwifi/efuse.c index 2ffc7298f686..b9de983fa6a7 100644 --- a/drivers/net/wireless/rtlwifi/efuse.c +++ b/drivers/net/wireless/rtlwifi/efuse.c @@ -31,11 +31,11 @@ #include "wifi.h" #include "efuse.h" -static const u8 MAX_PGPKT_SIZE = 9; +static const u8 MAX_PGPKT_SIZE __maybe_unused = 9; static const u8 PGPKT_DATA_SIZE = 8; static const int EFUSE_MAX_SIZE = 512; -static const struct efuse_map RTL8712_SDIO_EFUSE_TABLE[] = { +static const struct efuse_map RTL8712_SDIO_EFUSE_TABLE[] __maybe_unused = { {0, 0, 0, 2}, {0, 1, 0, 2}, {0, 2, 0, 2}, |