Skip to content

Commit 9fed309

Browse files
Sachin Kamatjmberg-intel
authored andcommitted
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>
1 parent 77ee7c8 commit 9fed309

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/rfkill/rfkill-regulator.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static int rfkill_regulator_set_block(void *data, bool blocked)
5151
return 0;
5252
}
5353

54-
struct rfkill_ops rfkill_regulator_ops = {
54+
static struct rfkill_ops rfkill_regulator_ops = {
5555
.set_block = rfkill_regulator_set_block,
5656
};
5757

0 commit comments

Comments
 (0)