Skip to content

Commit 8be9cdc

Browse files
Wei YongjunShawn Guo
authored andcommitted
bus: imx-weim: make symbol 'weim_of_notifier' static
The sparse tool complains as follows: drivers/bus/imx-weim.c:373:23: warning: symbol 'weim_of_notifier' was not declared. Should it be static? This symbol is not used outside of imx-weim.c, so marks it static. Fixes: e6cb540 ("bus: imx-weim: add DT overlay support for WEIM bus") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent f571e9c commit 8be9cdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/bus/imx-weim.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ static int of_weim_notify(struct notifier_block *nb, unsigned long action,
369369
return ret;
370370
}
371371

372-
struct notifier_block weim_of_notifier = {
372+
static struct notifier_block weim_of_notifier = {
373373
.notifier_call = of_weim_notify,
374374
};
375375
#endif /* IS_ENABLED(CONFIG_OF_DYNAMIC) */

0 commit comments

Comments
 (0)