summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-02-19 15:27:48 +0530
committerJohannes Berg <johannes.berg@intel.com>2013-03-06 16:35:41 +0100
commit9fed3096d7efb2717cd3156d35eef7cdf9bff550 (patch)
treec0049079beee05ffb57810d8f706ceaf05dee561 /net
parent77ee7c891a04c3d254711ddf1bde5d7381339fb3 (diff)
downloadlinux-9fed3096d7efb2717cd3156d35eef7cdf9bff550.tar.bz2
net: rfkill: Fix sparse warning in rfkill-regulator.c
'rfkill_regulator_ops' is used only in this file. Hence make it static. Silences the following warning: net/rfkill/rfkill-regulator.c:54:19: warning: symbol 'rfkill_regulator_ops' was not declared. Should it be static? Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r--net/rfkill/rfkill-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rfkill/rfkill-regulator.c b/net/rfkill/rfkill-regulator.c
index 4b5ab21ecb24..d11ac79246e4 100644
--- a/net/rfkill/rfkill-regulator.c
+++ b/net/rfkill/rfkill-regulator.c
@@ -51,7 +51,7 @@ static int rfkill_regulator_set_block(void *data, bool blocked)
return 0;
}
-struct rfkill_ops rfkill_regulator_ops = {
+static struct rfkill_ops rfkill_regulator_ops = {
.set_block = rfkill_regulator_set_block,
};