Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9fed3096 authored by Sachin Kamat's avatar Sachin Kamat Committed by Johannes Berg
Browse files

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: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 77ee7c89
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -51,7 +51,7 @@ static int rfkill_regulator_set_block(void *data, bool blocked)
	return 0;
	return 0;
}
}


struct rfkill_ops rfkill_regulator_ops = {
static struct rfkill_ops rfkill_regulator_ops = {
	.set_block = rfkill_regulator_set_block,
	.set_block = rfkill_regulator_set_block,
};
};