public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] auxdisplay: ht16k33: select CONFIG_FB_SYS_FOPS
@ 2016-11-23 13:06 Arnd Bergmann
  2016-11-25  7:50 ` Robin van der Gracht
  0 siblings, 1 reply; 3+ messages in thread
From: Arnd Bergmann @ 2016-11-23 13:06 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Robin van der Gracht, Rob Herring, Linus Walleij, Arnd Bergmann,
	Miguel Ojeda Sandonis, linux-kernel

The new driver caused a rare randconfig failure:

drivers/auxdisplay/ht16k33.o:(.data.ht16k33_fb_ops+0xc): undefined reference to `fb_sys_read'
drivers/auxdisplay/ht16k33.o:(.data.ht16k33_fb_ops+0x10): undefined reference to `fb_sys_write'

This selects the respective helper module, like all other
such drivers do.

Fixes: 8992da44c680 ("auxdisplay: ht16k33: Driver for LED controller")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/auxdisplay/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/auxdisplay/Kconfig b/drivers/auxdisplay/Kconfig
index a230ea797b92..b8bbfc64a1d1 100644
--- a/drivers/auxdisplay/Kconfig
+++ b/drivers/auxdisplay/Kconfig
@@ -131,6 +131,7 @@ config IMG_ASCII_LCD
 config HT16K33
 	tristate "Holtek Ht16K33 LED controller with keyscan"
 	depends on FB && OF && I2C && INPUT
+	select FB_SYS_FOPS
 	select INPUT_MATRIXKMAP
 	select FB_BACKLIGHT
 	help
-- 
2.9.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] auxdisplay: ht16k33: select CONFIG_FB_SYS_FOPS
  2016-11-23 13:06 [PATCH] auxdisplay: ht16k33: select CONFIG_FB_SYS_FOPS Arnd Bergmann
@ 2016-11-25  7:50 ` Robin van der Gracht
  2016-11-25  8:30   ` Arnd Bergmann
  0 siblings, 1 reply; 3+ messages in thread
From: Robin van der Gracht @ 2016-11-25  7:50 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Greg Kroah-Hartman, Rob Herring, Linus Walleij,
	Miguel Ojeda Sandonis, linux-kernel

Hi Arnd,

On Wed, 23 Nov 2016 14:06:49 +0100
Arnd Bergmann <arnd@arndb.de> wrote:

> The new driver caused a rare randconfig failure:
> 
> drivers/auxdisplay/ht16k33.o:(.data.ht16k33_fb_ops+0xc): undefined reference to `fb_sys_read'
> drivers/auxdisplay/ht16k33.o:(.data.ht16k33_fb_ops+0x10): undefined reference to `fb_sys_write'
> 
> This selects the respective helper module, like all other
> such drivers do.

Thanks for reporting this. You are right about the missing helper.
However, the fb_ops struct uses several helpers which are all missing.

static struct fb_ops ht16k33_fb_ops = {
	.owner = THIS_MODULE,
	.fb_read = fb_sys_read,
	.fb_write = fb_sys_write,
	.fb_fillrect = sys_fillrect,
	.fb_copyarea = sys_copyarea,
	.fb_imageblit = sys_imageblit,
	.fb_mmap = ht16k33_mmap,
};

HT16K33 should also select:
FB_CFB_FILLRECT
FB_CFB_COPYAREA
FB_CFB_IMAGEBLIT

> 
> Fixes: 8992da44c680 ("auxdisplay: ht16k33: Driver for LED controller")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>  drivers/auxdisplay/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/auxdisplay/Kconfig b/drivers/auxdisplay/Kconfig
> index a230ea797b92..b8bbfc64a1d1 100644
> --- a/drivers/auxdisplay/Kconfig
> +++ b/drivers/auxdisplay/Kconfig
> @@ -131,6 +131,7 @@ config IMG_ASCII_LCD
>  config HT16K33
>  	tristate "Holtek Ht16K33 LED controller with keyscan"
>  	depends on FB && OF && I2C && INPUT
> +	select FB_SYS_FOPS
>  	select INPUT_MATRIXKMAP
>  	select FB_BACKLIGHT
>  	help

Regards,
Robin

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] auxdisplay: ht16k33: select CONFIG_FB_SYS_FOPS
  2016-11-25  7:50 ` Robin van der Gracht
@ 2016-11-25  8:30   ` Arnd Bergmann
  0 siblings, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2016-11-25  8:30 UTC (permalink / raw)
  To: Robin van der Gracht
  Cc: Greg Kroah-Hartman, Rob Herring, Linus Walleij,
	Miguel Ojeda Sandonis, linux-kernel

On Friday, November 25, 2016 8:50:04 AM CET Robin van der Gracht wrote:
> 
> Thanks for reporting this. You are right about the missing helper.
> However, the fb_ops struct uses several helpers which are all missing.
> 
> static struct fb_ops ht16k33_fb_ops = {
>         .owner = THIS_MODULE,
>         .fb_read = fb_sys_read,
>         .fb_write = fb_sys_write,
>         .fb_fillrect = sys_fillrect,
>         .fb_copyarea = sys_copyarea,
>         .fb_imageblit = sys_imageblit,
>         .fb_mmap = ht16k33_mmap,
> };
> 
> HT16K33 should also select:
> FB_CFB_FILLRECT
> FB_CFB_COPYAREA
> FB_CFB_IMAGEBLIT
> 

Ah right. I had not run into those so far during randconfig
testing, probably because there is usually at least one other
framebuffer enabled that selects them.

Can you submit a patch to add all those?

	Arnd

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-25  8:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-23 13:06 [PATCH] auxdisplay: ht16k33: select CONFIG_FB_SYS_FOPS Arnd Bergmann
2016-11-25  7:50 ` Robin van der Gracht
2016-11-25  8:30   ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox