summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/core/net-sysfs.c2
-rw-r--r--net/core/rtnetlink.c5
-rw-r--r--net/core/sysctl_net_core.c2
-rw-r--r--net/ipv4/arp.c2
-rw-r--r--net/ipv4/ping.c2
-rw-r--r--net/rfkill/rfkill-gpio.c2
6 files changed, 8 insertions, 7 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c
index 93886246a0b4..abcd3c53d0b7 100644
--- a/net/core/net-sysfs.c
+++ b/net/core/net-sysfs.c
@@ -27,7 +27,7 @@
#ifdef CONFIG_SYSFS
static const char fmt_hex[] = "%#x\n";
-static const char fmt_long_hex[] = "%#lx\n";
+static const char fmt_long_hex[] __maybe_unused = "%#lx\n";
static const char fmt_dec[] = "%d\n";
static const char fmt_udec[] = "%u\n";
static const char fmt_ulong[] = "%lu\n";
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 8aadd6a072a4..ad239f01351f 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -1259,11 +1259,12 @@ static const struct nla_policy ifla_info_policy[IFLA_INFO_MAX+1] = {
[IFLA_INFO_SLAVE_DATA] = { .type = NLA_NESTED },
};
-static const struct nla_policy ifla_vfinfo_policy[IFLA_VF_INFO_MAX+1] = {
+static const struct nla_policy ifla_vfinfo_policy[IFLA_VF_INFO_MAX+1]
+ __maybe_unused= {
[IFLA_VF_INFO] = { .type = NLA_NESTED },
};
-static const struct nla_policy ifla_vf_policy[IFLA_VF_MAX+1] = {
+static const struct nla_policy ifla_vf_policy[IFLA_VF_MAX+1] __maybe_unused = {
[IFLA_VF_MAC] = { .len = sizeof(struct ifla_vf_mac) },
[IFLA_VF_VLAN] = { .len = sizeof(struct ifla_vf_vlan) },
[IFLA_VF_TX_RATE] = { .len = sizeof(struct ifla_vf_tx_rate) },
diff --git a/net/core/sysctl_net_core.c b/net/core/sysctl_net_core.c
index e731c96eac4b..145b90f77eae 100644
--- a/net/core/sysctl_net_core.c
+++ b/net/core/sysctl_net_core.c
@@ -23,7 +23,7 @@
#include <net/pkt_sched.h>
static int zero = 0;
-static int one = 1;
+static int one __maybe_unused = 1;
static int ushort_max = USHRT_MAX;
static int min_sndbuf = SOCK_MIN_SNDBUF;
static int min_rcvbuf = SOCK_MIN_RCVBUF;
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c
index 1a9b99e04465..4856bb26dd91 100644
--- a/net/ipv4/arp.c
+++ b/net/ipv4/arp.c
@@ -149,7 +149,7 @@ static const struct neigh_ops arp_direct_ops = {
.connected_output = neigh_direct_output,
};
-static const struct neigh_ops arp_broken_ops = {
+static const struct neigh_ops arp_broken_ops __maybe_unused = {
.family = AF_INET,
.solicit = arp_solicit,
.error_report = arp_error_report,
diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c
index 1e2e9bf62f1a..2478d8fae18c 100644
--- a/net/ipv4/ping.c
+++ b/net/ipv4/ping.c
@@ -1145,7 +1145,7 @@ static int ping_v4_seq_show(struct seq_file *seq, void *v)
return 0;
}
-static const struct seq_operations ping_v4_seq_ops = {
+static const struct seq_operations ping_v4_seq_ops __maybe_unused= {
.show = ping_v4_seq_show,
.start = ping_v4_seq_start,
.next = ping_seq_next,
diff --git a/net/rfkill/rfkill-gpio.c b/net/rfkill/rfkill-gpio.c
index bd2a5b90400c..06adecaffeca 100644
--- a/net/rfkill/rfkill-gpio.c
+++ b/net/rfkill/rfkill-gpio.c
@@ -184,7 +184,7 @@ static int rfkill_gpio_remove(struct platform_device *pdev)
return 0;
}
-static const struct acpi_device_id rfkill_acpi_match[] = {
+static const struct acpi_device_id rfkill_acpi_match[] __maybe_unused = {
{ "BCM4752", RFKILL_TYPE_GPS },
{ },
};