Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i3c: add missing include to internal header

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>

authored by

Wolfram Sang and committed by
Alexandre Belloni
3b661ca5 5fa62d4e

+1
+1
drivers/i3c/internals.h
··· 9 9 #define I3C_INTERNALS_H 10 10 11 11 #include <linux/i3c/master.h> 12 + #include <linux/io.h> 12 13 13 14 void i3c_bus_normaluse_lock(struct i3c_bus *bus); 14 15 void i3c_bus_normaluse_unlock(struct i3c_bus *bus);