Skip to content

Commit 48e8a81

Browse files
dpenklergregkh
authored andcommitted
staging: gpib: Fix i386 build issue
These drivers cast resource_type_t to void * causing the build to fail. With CONFIG_X86_PAE enabled the resource_size_t type is a 64bit unsigned int which cannot be cast to a 32 bit pointer. Disable these drivers if X68_PAE is enabled Reported-by: Guenter Roeck <linux@roeck-us.net> Closes: https://lore.kernel.org/all/f10e976e-7a04-4454-b38d-39cd18f142da@roeck-us.net/ Fixes: e9dc699 ("staging: gpib: Add Computer Boards GPIB driver") Fixes: e133924 ("staging: gpib: Add Computer Equipment Corporation GPIB driver") Fixes: bb1bd92 ("staging: gpib: Add ines GPIB driver") Fixes: 0cd5b05 ("staging: gpib: Add TNT4882 chip based GPIB driver") Signed-off-by: Dave Penkler <dpenkler@gmail.com> Link: https://lore.kernel.org/r/20241204162128.25617-1-dpenkler@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 1d8c2d4 commit 48e8a81

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/staging/gpib/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ config GPIB_CEC_PCI
5050
tristate "CEC PCI board"
5151
depends on PCI
5252
depends on HAS_IOPORT
53+
depends on !X86_PAE
5354
select GPIB_COMMON
5455
select GPIB_NEC7210
5556
help
@@ -63,6 +64,7 @@ config GPIB_NI_PCI_ISA
6364
tristate "NI PCI/ISA compatible boards"
6465
depends on ISA_BUS || PCI || PCMCIA
6566
depends on HAS_IOPORT
67+
depends on !X86_PAE
6668
select GPIB_COMMON
6769
select GPIB_NEC7210
6870
help
@@ -86,6 +88,7 @@ config GPIB_CB7210
8688
tristate "Measurement Computing compatible boards"
8789
depends on HAS_IOPORT
8890
depends on ISA_BUS || PCI || PCMCIA
91+
depends on !X86_PAE
8992
select GPIB_COMMON
9093
select GPIB_NEC7210
9194
help
@@ -175,6 +178,7 @@ config GPIB_INES
175178
tristate "INES"
176179
depends on PCI || ISA_BUS || PCMCIA
177180
depends on HAS_IOPORT
181+
depends on !X86_PAE
178182
select GPIB_COMMON
179183
select GPIB_NEC7210
180184
help

0 commit comments

Comments
 (0)