diff mbox series

i2c: icy: Fix build with CONFIG_AMIGA_PCMCIA=n

Message ID 20200607182812.9438-1-max@enpas.org
State Accepted
Headers show
Series i2c: icy: Fix build with CONFIG_AMIGA_PCMCIA=n | expand

Commit Message

Max Staudt June 7, 2020, 6:28 p.m. UTC
This has been found by the Kernel Test Robot:
http://lkml.iu.edu/hypermail/linux/kernel/2006.0/06862.html

With CONFIG_AMIGA_PCMCIA=n, io_mm.h does not pull in amigahw.h and
ZTWO_VADDR is undefined. Add forgotten include to i2c-icy.c

Fixes: 4768e90ecaec ("i2c: Add i2c-icy for I2C on m68k/Amiga")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Max Staudt <max@enpas.org>
---
 drivers/i2c/busses/i2c-icy.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Wolfram Sang June 7, 2020, 6:46 p.m. UTC | #1
On Sun, Jun 07, 2020 at 08:28:12PM +0200, Max Staudt wrote:
> This has been found by the Kernel Test Robot:
> http://lkml.iu.edu/hypermail/linux/kernel/2006.0/06862.html
> 
> With CONFIG_AMIGA_PCMCIA=n, io_mm.h does not pull in amigahw.h and
> ZTWO_VADDR is undefined. Add forgotten include to i2c-icy.c
> 
> Fixes: 4768e90ecaec ("i2c: Add i2c-icy for I2C on m68k/Amiga")
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Max Staudt <max@enpas.org>

Applied to for-next (i.e. for-5.8), thanks!
Andy Shevchenko June 13, 2020, 11:14 a.m. UTC | #2
On Sun, Jun 7, 2020 at 9:48 PM Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
> On Sun, Jun 07, 2020 at 08:28:12PM +0200, Max Staudt wrote:

> Applied to for-next (i.e. for-5.8), thanks!

A bit of offtopic, merge window is at its end, do you have plans to
send PR to Linus soon?
diff mbox series

Patch

diff --git a/drivers/i2c/busses/i2c-icy.c b/drivers/i2c/busses/i2c-icy.c
index 271470f4d..66c9923fc 100644
--- a/drivers/i2c/busses/i2c-icy.c
+++ b/drivers/i2c/busses/i2c-icy.c
@@ -43,6 +43,7 @@ 
 #include <linux/i2c.h>
 #include <linux/i2c-algo-pcf.h>
 
+#include <asm/amigahw.h>
 #include <asm/amigaints.h>
 #include <linux/zorro.h>