bus: imx-weim: make symbol 'weim_of_notifier' static
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 26 Feb 2022 09:43:33 +0000 (09:43 +0000)
committerShawn Guo <shawnguo@kernel.org>
Mon, 11 Apr 2022 08:04:53 +0000 (16:04 +0800)
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>
drivers/bus/imx-weim.c

index 2ea0a51f79f65e294b0416fb0d493f18cee6c405..828c66bbaa6765b07919ed61802e3a111b128493 100644 (file)
@@ -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) */