Skip to content

Commit

Permalink
net: rfkill: Fix sparse warning in rfkill-regulator.c
Browse files Browse the repository at this point in the history
'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 <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
  • Loading branch information
Sachin Kamat authored and jmberg-intel committed Mar 6, 2013
1 parent 77ee7c8 commit 9fed309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/rfkill/rfkill-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down

0 comments on commit 9fed309

Please sign in to comment.