Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: e6cb5408289f ("bus: imx-weim: add DT overlay support for WEIM bus")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Wei Yongjun and committed by
Shawn Guo
8be9cdc6 f571e9c9

+1 -1
+1 -1
drivers/bus/imx-weim.c
··· 369 369 return ret; 370 370 } 371 371 372 - struct notifier_block weim_of_notifier = { 372 + static struct notifier_block weim_of_notifier = { 373 373 .notifier_call = of_weim_notify, 374 374 }; 375 375 #endif /* IS_ENABLED(CONFIG_OF_DYNAMIC) */