* [PATCH drm-misc-fixes] drm/sitronix: st7571-i2c: Select VIDEOMODE_HELPERS
@ 2025-06-10 19:40 Nathan Chancellor
2025-06-11 11:07 ` Pedro Falcato
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Nathan Chancellor @ 2025-06-10 19:40 UTC (permalink / raw)
To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
Javier Martinez Canillas, Marcus Folkesson
Cc: dri-devel, patches, Nathan Chancellor
This driver requires of_get_display_timing() from
CONFIG_VIDEOMODE_HELPERS but does not select it. If no other driver
selects it, there will be a failure from the linker if the driver is
built in or modpost if it is a module.
ERROR: modpost: "of_get_display_timing" [drivers/gpu/drm/sitronix/st7571-i2c.ko] undefined!
Select CONFIG_VIDEOMODE_HELPERS to resolve the build failure.
Fixes: 4b35f0f41ee2 ("drm/st7571-i2c: add support for Sitronix ST7571 LCD controller")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
---
drivers/gpu/drm/sitronix/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/sitronix/Kconfig b/drivers/gpu/drm/sitronix/Kconfig
index c069d0d41775..741d1bb4b83f 100644
--- a/drivers/gpu/drm/sitronix/Kconfig
+++ b/drivers/gpu/drm/sitronix/Kconfig
@@ -5,6 +5,7 @@ config DRM_ST7571_I2C
select DRM_GEM_SHMEM_HELPER
select DRM_KMS_HELPER
select REGMAP_I2C
+ select VIDEOMODE_HELPERS
help
DRM driver for Sitronix ST7571 panels controlled over I2C.
---
base-commit: 0cee6c4d3518b2e757aedae78771f17149f57653
change-id: 20250610-drm-st7571-i2c-select-videomode-helpers-7df094382878
Best regards,
--
Nathan Chancellor <nathan@kernel.org>
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH drm-misc-fixes] drm/sitronix: st7571-i2c: Select VIDEOMODE_HELPERS
2025-06-10 19:40 [PATCH drm-misc-fixes] drm/sitronix: st7571-i2c: Select VIDEOMODE_HELPERS Nathan Chancellor
@ 2025-06-11 11:07 ` Pedro Falcato
2025-06-11 11:15 ` Marcus Folkesson
2025-06-11 12:32 ` Maxime Ripard
2 siblings, 0 replies; 4+ messages in thread
From: Pedro Falcato @ 2025-06-11 11:07 UTC (permalink / raw)
To: Nathan Chancellor
Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
Javier Martinez Canillas, Marcus Folkesson, dri-devel, patches
On Tue, Jun 10, 2025 at 12:40:38PM -0700, Nathan Chancellor wrote:
> This driver requires of_get_display_timing() from
> CONFIG_VIDEOMODE_HELPERS but does not select it. If no other driver
> selects it, there will be a failure from the linker if the driver is
> built in or modpost if it is a module.
>
> ERROR: modpost: "of_get_display_timing" [drivers/gpu/drm/sitronix/st7571-i2c.ko] undefined!
>
> Select CONFIG_VIDEOMODE_HELPERS to resolve the build failure.
>
> Fixes: 4b35f0f41ee2 ("drm/st7571-i2c: add support for Sitronix ST7571 LCD controller")
> Signed-off-by: Nathan Chancellor <nathan@kernel.org>
We've been observing these build failures regularly on certain configs in our
internal -rc1 branch, and this patch fixes it perfectly, thanks for tracking it
down!
Feel free to add:
Tested-by: Pedro Falcato <pfalcato@suse.de>
and
Acked-by: Pedro Falcato <pfalcato@suse.de>
--
Pedro
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH drm-misc-fixes] drm/sitronix: st7571-i2c: Select VIDEOMODE_HELPERS
2025-06-10 19:40 [PATCH drm-misc-fixes] drm/sitronix: st7571-i2c: Select VIDEOMODE_HELPERS Nathan Chancellor
2025-06-11 11:07 ` Pedro Falcato
@ 2025-06-11 11:15 ` Marcus Folkesson
2025-06-11 12:32 ` Maxime Ripard
2 siblings, 0 replies; 4+ messages in thread
From: Marcus Folkesson @ 2025-06-11 11:15 UTC (permalink / raw)
To: Nathan Chancellor
Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
Javier Martinez Canillas, dri-devel, patches
[-- Attachment #1: Type: text/plain, Size: 1295 bytes --]
Hi,
On Tue, Jun 10, 2025 at 12:40:38PM -0700, Nathan Chancellor wrote:
> This driver requires of_get_display_timing() from
> CONFIG_VIDEOMODE_HELPERS but does not select it. If no other driver
> selects it, there will be a failure from the linker if the driver is
> built in or modpost if it is a module.
>
> ERROR: modpost: "of_get_display_timing" [drivers/gpu/drm/sitronix/st7571-i2c.ko] undefined!
>
> Select CONFIG_VIDEOMODE_HELPERS to resolve the build failure.
>
> Fixes: 4b35f0f41ee2 ("drm/st7571-i2c: add support for Sitronix ST7571 LCD controller")
> Signed-off-by: Nathan Chancellor <nathan@kernel.org>
> ---
> drivers/gpu/drm/sitronix/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/sitronix/Kconfig b/drivers/gpu/drm/sitronix/Kconfig
> index c069d0d41775..741d1bb4b83f 100644
> --- a/drivers/gpu/drm/sitronix/Kconfig
> +++ b/drivers/gpu/drm/sitronix/Kconfig
> @@ -5,6 +5,7 @@ config DRM_ST7571_I2C
> select DRM_GEM_SHMEM_HELPER
> select DRM_KMS_HELPER
> select REGMAP_I2C
> + select VIDEOMODE_HELPERS
> help
> DRM driver for Sitronix ST7571 panels controlled over I2C.
Good catch, it looks like this driver is missing the dependency.
Reviewed-by: Marcus Folkesson <marcus.folkesson@gmail.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH drm-misc-fixes] drm/sitronix: st7571-i2c: Select VIDEOMODE_HELPERS
2025-06-10 19:40 [PATCH drm-misc-fixes] drm/sitronix: st7571-i2c: Select VIDEOMODE_HELPERS Nathan Chancellor
2025-06-11 11:07 ` Pedro Falcato
2025-06-11 11:15 ` Marcus Folkesson
@ 2025-06-11 12:32 ` Maxime Ripard
2 siblings, 0 replies; 4+ messages in thread
From: Maxime Ripard @ 2025-06-11 12:32 UTC (permalink / raw)
To: Maarten Lankhorst, Thomas Zimmermann, Javier Martinez Canillas,
Marcus Folkesson, Nathan Chancellor
Cc: Maxime Ripard, dri-devel, patches
On Tue, 10 Jun 2025 12:40:38 -0700, Nathan Chancellor wrote:
> This driver requires of_get_display_timing() from
> CONFIG_VIDEOMODE_HELPERS but does not select it. If no other driver
> selects it, there will be a failure from the linker if the driver is
> built in or modpost if it is a module.
>
> ERROR: modpost: "of_get_display_timing" [drivers/gpu/drm/sitronix/st7571-i2c.ko] undefined!
>
> [...]
Applied to misc/kernel.git (drm-misc-fixes).
Thanks!
Maxime
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-06-11 12:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-10 19:40 [PATCH drm-misc-fixes] drm/sitronix: st7571-i2c: Select VIDEOMODE_HELPERS Nathan Chancellor
2025-06-11 11:07 ` Pedro Falcato
2025-06-11 11:15 ` Marcus Folkesson
2025-06-11 12:32 ` Maxime Ripard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.