diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-02-19 13:57:48 +0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-03-06 19:35:41 +0400 |
commit | 9fed3096d7efb2717cd3156d35eef7cdf9bff550 (patch) | |
tree | c0049079beee05ffb57810d8f706ceaf05dee561 | |
parent | 77ee7c891a04c3d254711ddf1bde5d7381339fb3 (diff) | |
download | linux-9fed3096d7efb2717cd3156d35eef7cdf9bff550.tar.xz |
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>
-rw-r--r-- | net/rfkill/rfkill-regulator.c | 2 |
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, }; |