Skip to contentSkip to conversation

i2c: I2C_ELEKTOR should depend on HAS_IOPORT

PATCH In review Geert Uytterhoeven 3 participants 8 messages Aug 8, 2011 – Aug 29, 2011 I2C subsystem host drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c: I2C_ELEKTOR should depend on HAS_IOPORT

On m68k, I get:

drivers/i2c/busses/i2c-elektor.c: In function ‘pcf_isa_init’:
drivers/i2c/busses/i2c-elektor.c:153: error: implicit declaration of function ‘ioport_map’ drivers/i2c/busses/i2c-elektor.c:153: warning: assignment makes pointer from integer without a cast drivers/i2c/busses/i2c-elektor.c: In function ‘elektor_probe’:
drivers/i2c/busses/i2c-elektor.c:287: error: implicit declaration of function ‘ioport_unmap’

Since commit 82ed223c264def2b15ee4bec2e8c3048092ceb5f ("iomap: make IOPORT/PCI mapping functions conditional"), ioport_map() is only available on platforms that set HAS_IOPORT.

---
 drivers/i2c/busses/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/i2c/busses/Kconfig +1 -1
index 646068e..d1fc5cf 100644
@@ -789,7 +789,7 @@ config I2C_ACORN
 
 config I2C_ELEKTOR
 	tristate "Elektor ISA card"
-	depends on ISA && BROKEN_ON_SMP
+	depends on ISA && HAS_IOPORT && BROKEN_ON_SMP
 	select I2C_ALGOPCF
 	help
 	  This supports the PCF8584 ISA bus I2C adapter.  Say Y if you own
Signature · 1 line
1.7.0.4
#1 lore raw

Hi Geert,

Quoted 22 lines · Geert Uytterhoeven

On m68k, I get:

drivers/i2c/busses/i2c-elektor.c: In function ‘pcf_isa_init’:
drivers/i2c/busses/i2c-elektor.c:153: error: implicit declaration of function ‘ioport_map’ drivers/i2c/busses/i2c-elektor.c:153: warning: assignment makes pointer from integer without a cast drivers/i2c/busses/i2c-elektor.c: In function ‘elektor_probe’:
drivers/i2c/busses/i2c-elektor.c:287: error: implicit declaration of function ‘ioport_unmap’

Since commit 82ed223c264def2b15ee4bec2e8c3048092ceb5f ("iomap: make IOPORT/PCI mapping functions conditional"), ioport_map() is only available on platforms that set HAS_IOPORT.

---
 drivers/i2c/busses/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/i2c/busses/Kconfig +0 -0
index 646068e..d1fc5cf 100644

drivers/i2c/busses/Kconfig config I2C_ACORN · line 795

Quoted 8 lines
drivers/i2c/busses/Kconfig +1 -1
@@ -789,7 +789,7 @@ config I2C_ACORN
 
 config I2C_ELEKTOR
 	tristate "Elektor ISA card"
-	depends on ISA && BROKEN_ON_SMP
+	depends on ISA && HAS_IOPORT && BROKEN_ON_SMP
 	select I2C_ALGOPCF
 	help
 	  This supports the PCF8584 ISA bus I2C adapter.  Say Y if you own

How can ISA be set if HAS_IOPORT is not? This shouldn't be allowed.

Signature · 1 line
Jean Delvare
#2 lore raw

Hi Jean,

Quoted 22 lines · Jean Delvare
Quoted 21 lines · Geert Uytterhoeven

drivers/i2c/busses/i2c-elektor.c: In function ‘pcf_isa_init’:
drivers/i2c/busses/i2c-elektor.c:153: error: implicit declaration of function ‘ioport_map’ drivers/i2c/busses/i2c-elektor.c:153: warning: assignment makes pointer from integer without a cast drivers/i2c/busses/i2c-elektor.c: In function ‘elektor_probe’:
drivers/i2c/busses/i2c-elektor.c:287: error: implicit declaration of function ‘ioport_unmap’

Since commit 82ed223c264def2b15ee4bec2e8c3048092ceb5f ("iomap: make IOPORT/PCI mapping functions conditional"), ioport_map() is only available on platforms that set HAS_IOPORT.

---
 drivers/i2c/busses/Kconfig |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/i2c/busses/Kconfig +0 -0
index 646068e..d1fc5cf 100644
@@ -789,7 +789,7 @@ config I2C_ACORN
 
Quoted 9 lines
Quoted 7 lines

 config I2C_ELEKTOR
      tristate "Elektor ISA card"
-     depends on ISA && BROKEN_ON_SMP
+     depends on ISA && HAS_IOPORT && BROKEN_ON_SMP
      select I2C_ALGOPCF
      help
        This supports the PCF8584 ISA bus I2C adapter.  Say Y if you own

How can ISA be set if HAS_IOPORT is not? This shouldn't be allowed.

It's always been like that. With CONFIG_ISA, we have inb() and friends. But not ioport_map(), which was introduced more recently.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds

#3 lore raw
Quoted 8 lines · On Tuesday 16 August 2011 21:14:42 Geert Uytterhoeven wrote:
Quoted 8 lines
Quoted 7 lines

config I2C_ELEKTOR
tristate "Elektor ISA card"

drivers/i2c/busses/Kconfig +1 -1
-     depends on ISA && BROKEN_ON_SMP
+     depends on ISA && HAS_IOPORT && BROKEN_ON_SMP
      select I2C_ALGOPCF
      help
        This supports the PCF8584 ISA bus I2C adapter.  Say Y if you own
Quoted 4 lines
Quoted 1 line

How can ISA be set if HAS_IOPORT is not? This shouldn't be allowed.

It's always been like that. With CONFIG_ISA, we have inb() and friends. But not ioport_map(), which was introduced more recently.

Right. BTW, I'd really like to change that once I've picked up and fixed the use of inb() in 8250.c. I think we should change CONFIG_HAS_IOPORT to mean that inb(), ioport_resource and /proc/ioports are available, while a new CONFIG_HAS_IOPORT_MAP can then replace the current CONFIG_HAS_IOPORT symbol.

Arnd

#4 lore raw
In reply to Geert Uytterhoeven
Quoted 35 lines · Geert Uytterhoeven

Hi Jean,

Quoted 22 lines · Jean Delvare
Quoted 21 lines · Geert Uytterhoeven

drivers/i2c/busses/i2c-elektor.c: In function ‘pcf_isa_init’:
drivers/i2c/busses/i2c-elektor.c:153: error: implicit declaration of function ‘ioport_map’ drivers/i2c/busses/i2c-elektor.c:153: warning: assignment makes pointer from integer without a cast drivers/i2c/busses/i2c-elektor.c: In function ‘elektor_probe’:
drivers/i2c/busses/i2c-elektor.c:287: error: implicit declaration of function ‘ioport_unmap’

Since commit 82ed223c264def2b15ee4bec2e8c3048092ceb5f ("iomap: make IOPORT/PCI mapping functions conditional"), ioport_map() is only available on platforms that set HAS_IOPORT.

---
 drivers/i2c/busses/Kconfig |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/i2c/busses/Kconfig +0 -0
index 646068e..d1fc5cf 100644
@@ -789,7 +789,7 @@ config I2C_ACORN
 
Quoted 9 lines
Quoted 7 lines

 config I2C_ELEKTOR
      tristate "Elektor ISA card"
-     depends on ISA && BROKEN_ON_SMP
+     depends on ISA && HAS_IOPORT && BROKEN_ON_SMP
      select I2C_ALGOPCF
      help
        This supports the PCF8584 ISA bus I2C adapter.  Say Y if you own

How can ISA be set if HAS_IOPORT is not? This shouldn't be allowed.

Quoted 2 lines

It's always been like that. With CONFIG_ISA, we have inb() and friends. But not ioport_map(), which was introduced more recently.

OK, fair enough. Patch applied, thanks.

Signature · 1 line
Jean Delvare
#5 lore raw
Quoted 34 lines · Jean Delvare
Quoted 33 lines · Geert Uytterhoeven
Quoted 31 lines · Jean Delvare
Quoted 21 lines · Geert Uytterhoeven

drivers/i2c/busses/i2c-elektor.c: In function ‘pcf_isa_init’:
drivers/i2c/busses/i2c-elektor.c:153: error: implicit declaration of function ‘ioport_map’ drivers/i2c/busses/i2c-elektor.c:153: warning: assignment makes pointer from integer without a cast drivers/i2c/busses/i2c-elektor.c: In function ‘elektor_probe’:
drivers/i2c/busses/i2c-elektor.c:287: error: implicit declaration of function ‘ioport_unmap’

Since commit 82ed223c264def2b15ee4bec2e8c3048092ceb5f ("iomap: make IOPORT/PCI mapping functions conditional"), ioport_map() is only available on platforms that set HAS_IOPORT.

---
 drivers/i2c/busses/Kconfig |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/i2c/busses/Kconfig +0 -0
index 646068e..d1fc5cf 100644
@@ -789,7 +789,7 @@ config I2C_ACORN
 
Quoted 7 lines

 config I2C_ELEKTOR
      tristate "Elektor ISA card"
-     depends on ISA && BROKEN_ON_SMP
+     depends on ISA && HAS_IOPORT && BROKEN_ON_SMP
      select I2C_ALGOPCF
      help
        This supports the PCF8584 ISA bus I2C adapter.  Say Y if you own

How can ISA be set if HAS_IOPORT is not? This shouldn't be allowed.

Quoted 4 lines
Quoted 2 lines

It's always been like that. With CONFIG_ISA, we have inb() and friends. But not ioport_map(), which was introduced more recently.

OK, fair enough. Patch applied, thanks.

Any chance it will finds its way in 3.1, since it's still breaking m68k allmodconfig
builds.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds

#6 lore raw

Hi Geert,

Quoted 5 lines · Geert Uytterhoeven
Quoted 1 line · Jean Delvare

OK, fair enough. Patch applied, thanks.

Any chance it will finds its way in 3.1, since it's still breaking m68k allmodconfig builds.

This is the plan, yes. It should happen by the end of the week.

Signature · 1 line
Jean Delvare
#7 lore raw

Hi Jean,

Quoted 8 lines · Jean Delvare
Quoted 5 lines · Geert Uytterhoeven
Quoted 1 line · Jean Delvare

OK, fair enough. Patch applied, thanks.

Any chance it will finds its way in 3.1, since it's still breaking m68k allmodconfig builds.

This is the plan, yes. It should happen by the end of the week.

Great, thanks!

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds