* [PATCH] staging: sm750fb: Rename function sm750_hw_cursor_setData2
@ 2024-09-21 18:06 Fabricio Gasperin
2024-09-21 18:06 ` [PATCH] staging: sm750: Fix missing config in Kconfig Fabricio Gasperin
2024-09-25 8:10 ` [PATCH] staging: sm750fb: Rename function sm750_hw_cursor_setData2 Dan Carpenter
0 siblings, 2 replies; 6+ messages in thread
From: Fabricio Gasperin @ 2024-09-21 18:06 UTC (permalink / raw)
To: Sudip Mukherjee, Teddy Wang, Greg Kroah-Hartman, linux-fbdev,
linux-staging, linux-kernel, ~lkcamp/patches
Renamed from sm750_hw_cursor_setData2 to sm750_hw_cursor_setdata2
Change made in order to silence the camelCase warning from checkpatch.pl
Signed-off-by: Fabricio Gasperin <fgasperin@lkcamp.dev>
---
drivers/staging/sm750fb/sm750_cursor.c | 2 +-
drivers/staging/sm750fb/sm750_cursor.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/sm750fb/sm750_cursor.c b/drivers/staging/sm750fb/sm750_cursor.c
index eea4d1bd36ce..e95f39b51a2f 100644
--- a/drivers/staging/sm750fb/sm750_cursor.c
+++ b/drivers/staging/sm750fb/sm750_cursor.c
@@ -131,7 +131,7 @@ void sm750_hw_cursor_setData(struct lynx_cursor *cursor, u16 rop,
}
}
-void sm750_hw_cursor_setData2(struct lynx_cursor *cursor, u16 rop,
+void sm750_hw_cursor_setdata2(struct lynx_cursor *cursor, u16 rop,
const u8 *pcol, const u8 *pmsk)
{
int i, j, count, pitch, offset;
diff --git a/drivers/staging/sm750fb/sm750_cursor.h b/drivers/staging/sm750fb/sm750_cursor.h
index b59643dd61ed..308c57e836a7 100644
--- a/drivers/staging/sm750fb/sm750_cursor.h
+++ b/drivers/staging/sm750fb/sm750_cursor.h
@@ -10,6 +10,6 @@ void sm750_hw_cursor_setPos(struct lynx_cursor *cursor, int x, int y);
void sm750_hw_cursor_setColor(struct lynx_cursor *cursor, u32 fg, u32 bg);
void sm750_hw_cursor_setData(struct lynx_cursor *cursor, u16 rop,
const u8 *data, const u8 *mask);
-void sm750_hw_cursor_setData2(struct lynx_cursor *cursor, u16 rop,
+void sm750_hw_cursor_setdata2(struct lynx_cursor *cursor, u16 rop,
const u8 *data, const u8 *mask);
#endif
--
2.46.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH] staging: sm750: Fix missing config in Kconfig
2024-09-21 18:06 [PATCH] staging: sm750fb: Rename function sm750_hw_cursor_setData2 Fabricio Gasperin
@ 2024-09-21 18:06 ` Fabricio Gasperin
2024-10-09 9:56 ` Greg Kroah-Hartman
2024-09-25 8:10 ` [PATCH] staging: sm750fb: Rename function sm750_hw_cursor_setData2 Dan Carpenter
1 sibling, 1 reply; 6+ messages in thread
From: Fabricio Gasperin @ 2024-09-21 18:06 UTC (permalink / raw)
To: Sudip Mukherjee, Teddy Wang, Greg Kroah-Hartman, linux-fbdev,
linux-staging, linux-kernel, ~lkcamp/patches
Fixes the following compilation error:
ERROR: modpost: "fb_io_read" [drivers/staging/sm750fb/sm750fb.ko] undefined!
ERROR: modpost: "fb_io_write" [drivers/staging/sm750fb/sm750fb.ko] undefined!
ERROR: modpost: "fb_io_mmap" [drivers/staging/sm750fb/sm750fb.ko] undefined!
Signed-off-by: Fabricio Gasperin <fgasperin@lkcamp.dev>
---
drivers/staging/sm750fb/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/staging/sm750fb/Kconfig b/drivers/staging/sm750fb/Kconfig
index 08bcccdd0f1c..eca1aa43d725 100644
--- a/drivers/staging/sm750fb/Kconfig
+++ b/drivers/staging/sm750fb/Kconfig
@@ -3,6 +3,7 @@ config FB_SM750
tristate "Silicon Motion SM750 framebuffer support"
depends on FB && PCI && HAS_IOPORT
select FB_MODE_HELPERS
+ select FB_IOMEM_FOPS
select FB_CFB_FILLRECT
select FB_CFB_COPYAREA
select FB_CFB_IMAGEBLIT
--
2.46.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] staging: sm750fb: Rename function sm750_hw_cursor_setData2
2024-09-21 18:06 [PATCH] staging: sm750fb: Rename function sm750_hw_cursor_setData2 Fabricio Gasperin
2024-09-21 18:06 ` [PATCH] staging: sm750: Fix missing config in Kconfig Fabricio Gasperin
@ 2024-09-25 8:10 ` Dan Carpenter
1 sibling, 0 replies; 6+ messages in thread
From: Dan Carpenter @ 2024-09-25 8:10 UTC (permalink / raw)
To: Fabricio Gasperin
Cc: Sudip Mukherjee, Teddy Wang, Greg Kroah-Hartman, linux-fbdev,
linux-staging, linux-kernel, ~lkcamp/patches
If nothing is calling the function, then just delete it.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] staging: sm750: Fix missing config in Kconfig
2024-09-21 18:06 ` [PATCH] staging: sm750: Fix missing config in Kconfig Fabricio Gasperin
@ 2024-10-09 9:56 ` Greg Kroah-Hartman
2024-10-09 13:44 ` Vinicius Peixoto
0 siblings, 1 reply; 6+ messages in thread
From: Greg Kroah-Hartman @ 2024-10-09 9:56 UTC (permalink / raw)
To: Fabricio Gasperin
Cc: Sudip Mukherjee, Teddy Wang, linux-fbdev, linux-staging,
linux-kernel, ~lkcamp/patches
On Sat, Sep 21, 2024 at 03:06:09PM -0300, Fabricio Gasperin wrote:
> Fixes the following compilation error:
>
> ERROR: modpost: "fb_io_read" [drivers/staging/sm750fb/sm750fb.ko] undefined!
> ERROR: modpost: "fb_io_write" [drivers/staging/sm750fb/sm750fb.ko] undefined!
> ERROR: modpost: "fb_io_mmap" [drivers/staging/sm750fb/sm750fb.ko] undefined!
>
> Signed-off-by: Fabricio Gasperin <fgasperin@lkcamp.dev>
> ---
> drivers/staging/sm750fb/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/staging/sm750fb/Kconfig b/drivers/staging/sm750fb/Kconfig
> index 08bcccdd0f1c..eca1aa43d725 100644
> --- a/drivers/staging/sm750fb/Kconfig
> +++ b/drivers/staging/sm750fb/Kconfig
> @@ -3,6 +3,7 @@ config FB_SM750
> tristate "Silicon Motion SM750 framebuffer support"
> depends on FB && PCI && HAS_IOPORT
> select FB_MODE_HELPERS
> + select FB_IOMEM_FOPS
> select FB_CFB_FILLRECT
> select FB_CFB_COPYAREA
> select FB_CFB_IMAGEBLIT
> --
> 2.46.1
>
>
What is causing this error? What commit created the problem, and why
has no one reported it yet?
confused,
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] staging: sm750: Fix missing config in Kconfig
2024-10-09 9:56 ` Greg Kroah-Hartman
@ 2024-10-09 13:44 ` Vinicius Peixoto
2024-10-10 9:41 ` Greg Kroah-Hartman
0 siblings, 1 reply; 6+ messages in thread
From: Vinicius Peixoto @ 2024-10-09 13:44 UTC (permalink / raw)
To: Greg Kroah-Hartman, Fabricio Gasperin
Cc: Sudip Mukherjee, Teddy Wang, linux-fbdev, linux-staging,
linux-kernel, ~lkcamp/patches
Hi Greg,
On 10/9/24 06:56, Greg Kroah-Hartman wrote:
> On Sat, Sep 21, 2024 at 03:06:09PM -0300, Fabricio Gasperin wrote:
>> Fixes the following compilation error:
>>
>> ERROR: modpost: "fb_io_read" [drivers/staging/sm750fb/sm750fb.ko] undefined!
>> ERROR: modpost: "fb_io_write" [drivers/staging/sm750fb/sm750fb.ko] undefined!
>> ERROR: modpost: "fb_io_mmap" [drivers/staging/sm750fb/sm750fb.ko] undefined!
>>
>> Signed-off-by: Fabricio Gasperin <fgasperin@lkcamp.dev>
>> ---
>> drivers/staging/sm750fb/Kconfig | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/staging/sm750fb/Kconfig b/drivers/staging/sm750fb/Kconfig
>> index 08bcccdd0f1c..eca1aa43d725 100644
>> --- a/drivers/staging/sm750fb/Kconfig
>> +++ b/drivers/staging/sm750fb/Kconfig
>> @@ -3,6 +3,7 @@ config FB_SM750
>> tristate "Silicon Motion SM750 framebuffer support"
>> depends on FB && PCI && HAS_IOPORT
>> select FB_MODE_HELPERS
>> + select FB_IOMEM_FOPS
>> select FB_CFB_FILLRECT
>> select FB_CFB_COPYAREA
>> select FB_CFB_IMAGEBLIT
>> --
>> 2.46.1
>>
>>
>
> What is causing this error? What commit created the problem, and why
> has no one reported it yet?
This happens because drivers/staging/sm750fb/sm750.c, defines an fb_ops
structure:
static const struct fb_ops lynxfb_ops = {
.owner = THIS_MODULE,
FB_DEFAULT_IOMEM_OPS,
...
};
FB_DEFAULT_IOMEM_OPS expands to the fb_io_* helpers declared in
include/linux/fb.h and defined in drivers/video/fbdev/core/fb_io_fops.c;
however, the latter is gated by FB_IOMEM_FOPS, so when compiling a
kernel with CONFIG_STAGING=y + CONFIG_FB=m + CONFIG_FB_SM750=m, you get
the following error:
ERROR: modpost: "fb_io_read" [drivers/staging/sm750fb/sm750fb.ko] undefined!
ERROR: modpost: "fb_io_write" [drivers/staging/sm750fb/sm750fb.ko]
undefined!
ERROR: modpost: "fb_io_mmap" [drivers/staging/sm750fb/sm750fb.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:145: Module.symvers] Error 1
So in order to solve it we select FB_IOMEM_FOPS, much like the other
FB_* drivers do in drivers/video/fbdev/Kconfig.
Not entirely sure why this wasn't caught before, but the commit that
broke the build for sm750fb is 6b180f66c0dd ("fbdev: Provide I/O-memory
helpers as module"), which made the fb_io_* helpers be built as a
separate module instead of being bundled in fb.o (which is what sm750fb
was relying on). I think Fabricio can add a "Fixes:" tag in v2.
Thanks,
Vinicius
>
> confused,
>
> greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] staging: sm750: Fix missing config in Kconfig
2024-10-09 13:44 ` Vinicius Peixoto
@ 2024-10-10 9:41 ` Greg Kroah-Hartman
0 siblings, 0 replies; 6+ messages in thread
From: Greg Kroah-Hartman @ 2024-10-10 9:41 UTC (permalink / raw)
To: Vinicius Peixoto
Cc: Fabricio Gasperin, Sudip Mukherjee, Teddy Wang, linux-fbdev,
linux-staging, linux-kernel, ~lkcamp/patches
On Wed, Oct 09, 2024 at 10:44:38AM -0300, Vinicius Peixoto wrote:
> Hi Greg,
>
> On 10/9/24 06:56, Greg Kroah-Hartman wrote:
> > On Sat, Sep 21, 2024 at 03:06:09PM -0300, Fabricio Gasperin wrote:
> > > Fixes the following compilation error:
> > >
> > > ERROR: modpost: "fb_io_read" [drivers/staging/sm750fb/sm750fb.ko] undefined!
> > > ERROR: modpost: "fb_io_write" [drivers/staging/sm750fb/sm750fb.ko] undefined!
> > > ERROR: modpost: "fb_io_mmap" [drivers/staging/sm750fb/sm750fb.ko] undefined!
> > >
> > > Signed-off-by: Fabricio Gasperin <fgasperin@lkcamp.dev>
> > > ---
> > > drivers/staging/sm750fb/Kconfig | 1 +
> > > 1 file changed, 1 insertion(+)
> > >
> > > diff --git a/drivers/staging/sm750fb/Kconfig b/drivers/staging/sm750fb/Kconfig
> > > index 08bcccdd0f1c..eca1aa43d725 100644
> > > --- a/drivers/staging/sm750fb/Kconfig
> > > +++ b/drivers/staging/sm750fb/Kconfig
> > > @@ -3,6 +3,7 @@ config FB_SM750
> > > tristate "Silicon Motion SM750 framebuffer support"
> > > depends on FB && PCI && HAS_IOPORT
> > > select FB_MODE_HELPERS
> > > + select FB_IOMEM_FOPS
> > > select FB_CFB_FILLRECT
> > > select FB_CFB_COPYAREA
> > > select FB_CFB_IMAGEBLIT
> > > --
> > > 2.46.1
> > >
> > >
> >
> > What is causing this error? What commit created the problem, and why
> > has no one reported it yet?
>
> This happens because drivers/staging/sm750fb/sm750.c, defines an fb_ops
> structure:
>
> static const struct fb_ops lynxfb_ops = {
> .owner = THIS_MODULE,
> FB_DEFAULT_IOMEM_OPS,
> ...
> };
>
> FB_DEFAULT_IOMEM_OPS expands to the fb_io_* helpers declared in
> include/linux/fb.h and defined in drivers/video/fbdev/core/fb_io_fops.c;
> however, the latter is gated by FB_IOMEM_FOPS, so when compiling a kernel
> with CONFIG_STAGING=y + CONFIG_FB=m + CONFIG_FB_SM750=m, you get the
> following error:
>
> ERROR: modpost: "fb_io_read" [drivers/staging/sm750fb/sm750fb.ko] undefined!
> ERROR: modpost: "fb_io_write" [drivers/staging/sm750fb/sm750fb.ko]
> undefined!
> ERROR: modpost: "fb_io_mmap" [drivers/staging/sm750fb/sm750fb.ko] undefined!
> make[2]: *** [scripts/Makefile.modpost:145: Module.symvers] Error 1
>
> So in order to solve it we select FB_IOMEM_FOPS, much like the other FB_*
> drivers do in drivers/video/fbdev/Kconfig.
>
> Not entirely sure why this wasn't caught before, but the commit that broke
> the build for sm750fb is 6b180f66c0dd ("fbdev: Provide I/O-memory helpers as
> module"), which made the fb_io_* helpers be built as a separate module
> instead of being bundled in fb.o (which is what sm750fb was relying on). I
> think Fabricio can add a "Fixes:" tag in v2.
Ok, thanks for the explaination. All of this should go into the
changelog text, and yes, a Fixes: tag is also required.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-10-10 9:42 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-21 18:06 [PATCH] staging: sm750fb: Rename function sm750_hw_cursor_setData2 Fabricio Gasperin
2024-09-21 18:06 ` [PATCH] staging: sm750: Fix missing config in Kconfig Fabricio Gasperin
2024-10-09 9:56 ` Greg Kroah-Hartman
2024-10-09 13:44 ` Vinicius Peixoto
2024-10-10 9:41 ` Greg Kroah-Hartman
2024-09-25 8:10 ` [PATCH] staging: sm750fb: Rename function sm750_hw_cursor_setData2 Dan Carpenter
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).