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 /kernel | |
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 'kernel')
-rw-r--r-- | kernel/cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 18711f326260..4380ca030574 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -3836,7 +3836,7 @@ static int cgroup_pidlist_show(struct seq_file *s, void *v) * seq_operations functions for iterating on pidlists through seq_file - * independent of whether it's tasks or procs */ -static const struct seq_operations cgroup_pidlist_seq_operations = { +static const struct seq_operations cgroup_pidlist_seq_operations __maybe_unused = { .start = cgroup_pidlist_start, .stop = cgroup_pidlist_stop, .next = cgroup_pidlist_next, |