* [PATCH v2] fbdev: replace dead select with dependency
@ 2026-07-23 12:28 Julian Braha
2026-07-25 15:22 ` Helge Deller
0 siblings, 1 reply; 2+ messages in thread
From: Julian Braha @ 2026-07-23 12:28 UTC (permalink / raw)
To: deller
Cc: tzimmermann, wei.liu, ptsm, arnd, u.kleine-koenig, hsukrut3,
rob.github, enelsonmoore, linux-fbdev, dri-devel, linux-kernel,
Julian Braha
'select' does not work on config options in a 'choice', so currently it is
possible to enable FB_MB862XX_LIME without FB_LITTLE_ENDIAN.
We cannot replace the 'select FB_LITTLE_ENDIAN' without also changing
FB_FOREIGN_ENDIAN from 'select' to 'depends on', otherwise we will get
a recursive dependency.
Since the default choice is FB_BOTH_ENDIAN, let's use:
'depends on FB_LITTLE_ENDIAN || FB_BOTH_ENDIAN'
to avoid breaking defconfig.
This dead select was found by kconfirm, a static analysis tool for Kconfig.
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Julian Braha <julianbraha@gmail.com>
---
Changes since v1: support the default FB_BOTH_ENDIAN
Link:
https://lore.kernel.org/all/20260722220023.196029-1-julianbraha@gmail.com/
---
drivers/video/fbdev/Kconfig | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig
index 085d3a202148..e8cd8cb76874 100644
--- a/drivers/video/fbdev/Kconfig
+++ b/drivers/video/fbdev/Kconfig
@@ -1717,8 +1717,7 @@ config FB_MB862XX_PCI_GDC
config FB_MB862XX_LIME
bool "Lime GDC"
depends on OF && PPC
- select FB_FOREIGN_ENDIAN
- select FB_LITTLE_ENDIAN
+ depends on FB_LITTLE_ENDIAN || FB_BOTH_ENDIAN
help
Framebuffer support for Fujitsu Lime GDC on host CPU bus.
--
2.54.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] fbdev: replace dead select with dependency
2026-07-23 12:28 [PATCH v2] fbdev: replace dead select with dependency Julian Braha
@ 2026-07-25 15:22 ` Helge Deller
0 siblings, 0 replies; 2+ messages in thread
From: Helge Deller @ 2026-07-25 15:22 UTC (permalink / raw)
To: Julian Braha; +Cc: arnd, linux-fbdev, dri-devel, linux-kernel
On 7/23/26 14:28, Julian Braha wrote:
> 'select' does not work on config options in a 'choice', so currently it is
> possible to enable FB_MB862XX_LIME without FB_LITTLE_ENDIAN.
>
> We cannot replace the 'select FB_LITTLE_ENDIAN' without also changing
> FB_FOREIGN_ENDIAN from 'select' to 'depends on', otherwise we will get
> a recursive dependency.
>
> Since the default choice is FB_BOTH_ENDIAN, let's use:
> 'depends on FB_LITTLE_ENDIAN || FB_BOTH_ENDIAN'
> to avoid breaking defconfig.
>
> This dead select was found by kconfirm, a static analysis tool for Kconfig.
>
> Suggested-by: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Julian Braha <julianbraha@gmail.com>
> ---
> Changes since v1: support the default FB_BOTH_ENDIAN
> Link:
> https://lore.kernel.org/all/20260722220023.196029-1-julianbraha@gmail.com/
> ---
> drivers/video/fbdev/Kconfig | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
applied.
Thanks!
Helge
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-25 15:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-23 12:28 [PATCH v2] fbdev: replace dead select with dependency Julian Braha
2026-07-25 15:22 ` Helge Deller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).