]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
i3c: add missing include to internal header
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 17 Jul 2025 12:00:47 +0000 (14:00 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 31 Jul 2025 00:25:17 +0000 (02:25 +0200)
LKP found a random config which failed to build because IO accessors
were not defined:

   In file included from drivers/i3c/master.c:21:
   drivers/i3c/internals.h: In function 'i3c_writel_fifo':
>> drivers/i3c/internals.h:35:9: error: implicit declaration of function 'writesl' [-Werror=implicit-function-declaration]

Add the proper header to where the IO accessors are used.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202507150208.BZDzzJ5E-lkp@intel.com/
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20250717120046.9022-2-wsa+renesas@sang-engineering.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/internals.h

index 6a11437fee47bd1d19354e983d4a561a4356b08d..0d857cc68cc5d473db733b12ffcec0c1c28d9def 100644 (file)
@@ -9,6 +9,7 @@
 #define I3C_INTERNALS_H
 
 #include <linux/i3c/master.h>
+#include <linux/io.h>
 
 void i3c_bus_normaluse_lock(struct i3c_bus *bus);
 void i3c_bus_normaluse_unlock(struct i3c_bus *bus);