Skip to contentSkip to conversation

drm/panic: Select ZLIB_DEFLATE for DRM_PANIC_SCREEN_QR_CODE

PATCH In review Miguel Ojeda 2 participants 3 messages Oct 3, 2024 – Oct 14, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/panic: Select ZLIB_DEFLATE for DRM_PANIC_SCREEN_QR_CODE

Under CONFIG_DRM_PANIC_SCREEN_QR_CODE=y, zlib is used:

ld.lld: error: undefined symbol: zlib_deflate_workspacesize >>> referenced by drm_panic.c
>>> drivers/gpu/drm/drm_panic.o:(drm_panic_qr_init) in archive vmlinux.a

Thus select CONFIG_ZLIB_DEFLATE.

Fixes cb5164ac43d0 ("drm/panic: Add a QR code panic screen")
---
 drivers/gpu/drm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/Kconfig +1 -0
index 1cb5a4f19293..cf5bc77e2362 100644
@@ -152,6 +152,7 @@ config DRM_PANIC_SCREEN
 config DRM_PANIC_SCREEN_QR_CODE
 	bool "Add a panic screen with a QR code"
 	depends on DRM_PANIC && RUST
+	select ZLIB_DEFLATE
 	help
 	  This option adds a QR code generator, and a panic screen with a QR
 	  code. The QR code will contain the last lines of kmsg and other debug

--
2.46.2

Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Miguel Ojeda

Under CONFIG_DRM_PANIC_SCREEN_QR_CODE=y, zlib is used:

ld.lld: error: undefined symbol: zlib_deflate_workspacesize >>> referenced by drm_panic.c
>>> drivers/gpu/drm/drm_panic.o:(drm_panic_qr_init) in archive vmlinux.a

Thus select CONFIG_ZLIB_DEFLATE.

Hi, good catch, yes it should select the zlib deflate.

Best regards,

Signature · 1 line
Jocelyn
Quoted 22 lines
Fixes cb5164ac43d0 ("drm/panic: Add a QR code panic screen")
---
  drivers/gpu/drm/Kconfig | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/Kconfig +1 -1
index 1cb5a4f19293..cf5bc77e2362 100644
@@ -152,6 +152,7 @@ config DRM_PANIC_SCREEN
  config DRM_PANIC_SCREEN_QR_CODE
  	bool "Add a panic screen with a QR code"
  	depends on DRM_PANIC && RUST
+	select ZLIB_DEFLATE
  	help
  	  This option adds a QR code generator, and a panic screen with a QR
  	  code. The QR code will contain the last lines of kmsg and other debug
--

2.46.2

#2 lore raw
Quoted 7 lines · Jocelyn Falempe
Quoted 6 lines · Miguel Ojeda

Under CONFIG_DRM_PANIC_SCREEN_QR_CODE=y, zlib is used:

     ld.lld: error: undefined symbol: zlib_deflate_workspacesize
     >>> referenced by drm_panic.c
     >>>               drivers/gpu/drm/drm_panic.o:(drm_panic_qr_init) in archive vmlinux.a

Quoted 5 lines
Quoted 1 line

Thus select CONFIG_ZLIB_DEFLATE.

Hi, good catch, yes it should select the zlib deflate.

I've just pushed it to drm-misc-next.

Thanks for your contribution.

Signature · 1 line
Jocelyn
Quoted 3 lines

Best regards,