firmware: google: Properly state IOMEM dependency
PATCH 1/1 firmware: google: Properly state IOMEM dependency
The Google Coreboot implementation requires IOMEM functions (memmremap, memunmap, devm_memremap), but does not specify this is its Kconfig. This results in build errors when IOMEM is not enabled, such as on some UML configurations:
/usr/bin/ld: drivers/firmware/google/coreboot_table.o: in function `coreboot_table_probe':
coreboot_table.c:(.text+0x311): undefined reference to memremap' /usr/bin/ld: coreboot_table.c:(.text+0x34e): undefined reference to memunmap' /usr/bin/ld: drivers/firmware/google/memconsole-coreboot.o: in function `memconsole_probe':
memconsole-coreboot.c:(.text+0x12d): undefined reference to memremap' /usr/bin/ld: memconsole-coreboot.c:(.text+0x17e): undefined reference to devm_memremap' /usr/bin/ld: memconsole-coreboot.c:(.text+0x191): undefined reference to memunmap' /usr/bin/ld: drivers/firmware/google/vpd.o: in function vpd_section_destroy.isra.0':
vpd.c:(.text+0x300): undefined reference to `memunmap'/usr/bin/ld: drivers/firmware/google/vpd.o: in function `vpd_section_init':
vpd.c:(.text+0x382): undefined reference to `memremap'/usr/bin/ld: vpd.c:(.text+0x459): undefined reference to memunmap' /usr/bin/ld: drivers/firmware/google/vpd.o: in function vpd_probe':
vpd.c:(.text+0x59d): undefined reference to `memremap'/usr/bin/ld: vpd.c:(.text+0x5d3): undefined reference to `memunmap'
collect2: error: ld returned 1 exit status
--- drivers/firmware/google/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/firmware/google/Kconfig +1 -1
@@ -21,7 +21,7 @@ config GOOGLE_SMI config GOOGLE_COREBOOT_TABLE tristate "Coreboot Table Access" - depends on ACPI || OF + depends on IOMEM && (ACPI || OF) help This option enables the coreboot_table module, which provides other firmware modules access to the coreboot table. The coreboot table
Signature · 7 lines
2.35.1.473.g83b2b277ed-goog _______________________________________________ linux-um mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-um
Quoted 33 lines · David Gow
The Google Coreboot implementation requires IOMEM functions (memmremap, memunmap,
devm_memremap), but does not specify this is itsKconfig. This results in build errors when IOMEM is not enabled, such as on some UML configurations:
/usr/bin/ld:drivers/firmware/google/coreboot_table.o: in function `coreboot_table_probe':
coreboot_table.c:(.text+0x311): undefined reference tomemremap' /usr/bin/ld: coreboot_table.c:(.text+0x34e): undefined reference tomemunmap'/usr/bin/ld:drivers/firmware/google/memconsole-coreboot.o: in function `memconsole_probe':
memconsole-coreboot.c:(.text+0x12d): undefined reference tomemremap' /usr/bin/ld: memconsole-coreboot.c:(.text+0x17e): undefined reference todevm_memremap'/usr/bin/ld: memconsole-coreboot.c:(.text+0x191): undefined reference tomemunmap' /usr/bin/ld: drivers/firmware/google/vpd.o: in functionvpd_section_destroy.isra.0':
vpd.c:(.text+0x300): undefined reference to `memunmap'/usr/bin/ld:drivers/firmware/google/vpd.o: in function `vpd_section_init':
vpd.c:(.text+0x382): undefined reference to `memremap'/usr/bin/ld: vpd.c:(.text+0x459): undefined reference tomemunmap' /usr/bin/ld: drivers/firmware/google/vpd.o: in functionvpd_probe':
vpd.c:(.text+0x59d): undefined reference to `memremap'/usr/bin/ld: vpd.c:(.text+0x5d3): undefined reference to `memunmap'
collect2: error: ld returned 1 exit statusSigned-off-by David Gow <[email protected]>--- drivers/firmware/google/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/firmware/google/Kconfig +0
-0
drivers/firmware/google/Kconfig config GOOGLE_SMI · line 27
Quoted 8 lines
drivers/firmware/google/Kconfig +1
-1@@ -21,7 +21,7 @@ config GOOGLE_SMI config GOOGLE_COREBOOT_TABLE tristate "Coreboot Table Access" - depends on ACPI || OF + depends on IOMEM && (ACPI || OF) help This option enables the coreboot_table module, which provides other firmware modules access to the coreboot table. The coreboot table
Signature · 8 lines
Anton R. Ivanov Cambridgegreys Limited. Registered in England. Company Number 10273661 https://www.cambridgegreys.com/ _______________________________________________ linux-um mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-um
Julius Werner
Acked-byQuoted 51 lines · Anton Ivanov
Quoted 33 lines · David Gow
The Google Coreboot implementation requires IOMEM functions (memmremap, memunmap,
devm_memremap), but does not specify this is itsKconfig. This results in build errors when IOMEM is not enabled, such as on some UML configurations:
/usr/bin/ld:drivers/firmware/google/coreboot_table.o: in function `coreboot_table_probe':
coreboot_table.c:(.text+0x311): undefined reference tomemremap' /usr/bin/ld: coreboot_table.c:(.text+0x34e): undefined reference tomemunmap'/usr/bin/ld:drivers/firmware/google/memconsole-coreboot.o: in function `memconsole_probe':
memconsole-coreboot.c:(.text+0x12d): undefined reference tomemremap' /usr/bin/ld: memconsole-coreboot.c:(.text+0x17e): undefined reference todevm_memremap'/usr/bin/ld: memconsole-coreboot.c:(.text+0x191): undefined reference tomemunmap' /usr/bin/ld: drivers/firmware/google/vpd.o: in functionvpd_section_destroy.isra.0':
vpd.c:(.text+0x300): undefined reference to `memunmap'/usr/bin/ld:drivers/firmware/google/vpd.o: in function `vpd_section_init':
vpd.c:(.text+0x382): undefined reference to `memremap'/usr/bin/ld: vpd.c:(.text+0x459): undefined reference tomemunmap' /usr/bin/ld: drivers/firmware/google/vpd.o: in functionvpd_probe':
vpd.c:(.text+0x59d): undefined reference to `memremap'/usr/bin/ld: vpd.c:(.text+0x5d3): undefined reference to `memunmap'
collect2: error: ld returned 1 exit statusSigned-off-by David Gow <[email protected]>--- drivers/firmware/google/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/firmware/google/Kconfig +0
-0drivers/firmware/google/Kconfig config GOOGLE_SMI · line 27
Quoted 8 lines
drivers/firmware/google/Kconfig +1
-1@@ -21,7 +21,7 @@ config GOOGLE_SMI config GOOGLE_COREBOOT_TABLE tristate "Coreboot Table Access" - depends on ACPI || OF + depends on IOMEM && (ACPI || OF) help This option enables the coreboot_table module, which provides other firmware modules access to the coreboot table. The coreboot tableAcked-by anton ivanov <[email protected]>--
Anton R. Ivanov
Cambridgegreys Limited. Registered in England. Company Number 10273661
https://www.cambridgegreys.com/