summaryrefslogtreecommitdiff
path: root/drivers/bus/imx-weim.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2022-02-26 09:43:33 +0000
committerShawn Guo <shawnguo@kernel.org>2022-04-11 16:04:53 +0800
commit8be9cdc6911877843c4f13e44e836382818eb355 (patch)
treee7b38737d578befa264e08a2412975f71e3e416e /drivers/bus/imx-weim.c
parentf571e9c9aafed2fbd60fd99aa4b9823221338b98 (diff)
downloadlinux-rpi-8be9cdc6911877843c4f13e44e836382818eb355.tar.gz
linux-rpi-8be9cdc6911877843c4f13e44e836382818eb355.tar.bz2
linux-rpi-8be9cdc6911877843c4f13e44e836382818eb355.zip
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>
Diffstat (limited to 'drivers/bus/imx-weim.c')
-rw-r--r--drivers/bus/imx-weim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bus/imx-weim.c b/drivers/bus/imx-weim.c
index 2ea0a51f79f6..828c66bbaa67 100644
--- a/drivers/bus/imx-weim.c
+++ b/drivers/bus/imx-weim.c
@@ -369,7 +369,7 @@ static int of_weim_notify(struct notifier_block *nb, unsigned long action,
return ret;
}
-struct notifier_block weim_of_notifier = {
+static struct notifier_block weim_of_notifier = {
.notifier_call = of_weim_notify,
};
#endif /* IS_ENABLED(CONFIG_OF_DYNAMIC) */