[PATCH] firmware: imx: sm-misc: Add missing slab.h

Peng Fan (OSS) peng.fan at oss.nxp.com
Wed Dec 2 18:55:37 PST 2026


From: Peng Fan <peng.fan at nxp.com>

Include slab.h since kmalloc is used in this driver per the Include What
You Use (IWYU) principle.

Signed-off-by: Peng Fan <peng.fan at nxp.com>
---
 drivers/firmware/imx/sm-misc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/firmware/imx/sm-misc.c b/drivers/firmware/imx/sm-misc.c
index 178a3f7485b1..aafbe7ec4eb4 100644
--- a/drivers/firmware/imx/sm-misc.c
+++ b/drivers/firmware/imx/sm-misc.c
@@ -13,6 +13,7 @@
 #include <linux/scmi_imx_protocol.h>
 #include <linux/seq_file.h>
 #include <linux/sizes.h>
+#include <linux/slab.h>
 
 static const struct scmi_imx_misc_proto_ops *imx_misc_ctrl_ops;
 static struct scmi_protocol_handle *ph;

---
base-commit: 253f86660c1f882fbf554db5eaa34bc5d66dc7e8
change-id: 20261203-sm-misc-imx-24e20cdaa8b0

Best regards,
--  
Peng Fan <peng.fan at nxp.com>




More information about the linux-arm-kernel mailing list