]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
firmware: imx: sm-misc: Make scmi_imx_misc_ctrl_nb variable static
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Tue, 28 Apr 2026 13:57:33 +0000 (15:57 +0200)
committerFrank Li <Frank.Li@nxp.com>
Tue, 19 May 2026 15:58:09 +0000 (11:58 -0400)
File-scope 'scmi_imx_misc_ctrl_nb' is not used outside of this unit, so
make it static to silence sparse warning:

  sm-misc.c:19:23: warning: symbol 'scmi_imx_misc_ctrl_nb' was not declared. Should it be static?

Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
drivers/firmware/imx/sm-misc.c

index 0a8ada329c9de3c1627da241bf142fa91a8085d7..8d95a901734a36569df2cccf765f20489ce394ae 100644 (file)
@@ -16,7 +16,7 @@
 
 static const struct scmi_imx_misc_proto_ops *imx_misc_ctrl_ops;
 static struct scmi_protocol_handle *ph;
-struct notifier_block scmi_imx_misc_ctrl_nb;
+static struct notifier_block scmi_imx_misc_ctrl_nb;
 
 int scmi_imx_misc_ctrl_set(u32 id, u32 val)
 {