drm/panic: Select ZLIB_DEFLATE for DRM_PANIC_SCREEN_QR_CODE
Subsystems (2)
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.
--- drivers/gpu/drm/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/Kconfig +1 -0
@@ -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
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 bydrm_panic.c
>>> drivers/gpu/drm/drm_panic.o:(drm_panic_qr_init) in archive vmlinux.aThus 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")Signed-off-by Miguel Ojeda <[email protected]>--- drivers/gpu/drm/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/Kconfig +1
-1@@ -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
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 bydrm_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.
Reviewed-by Jocelyn Falempe <[email protected]>
I've just pushed it to drm-misc-next.
Thanks for your contribution.
Signature · 1 line
Jocelyn
Quoted 3 lines
Best regards,