Skip to contentSkip to conversation

agp: parisc-agp: fix section mismatch warning

PATCH In review Randy Dunlap 3 participants 3 messages Nov 27, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 agp: parisc-agp: fix section mismatch warning

Fix section mismatch warning in parisc-agp:

WARNING: modpost: drivers/char/agp/parisc-agp.o(.text+0x7a0): Section mismatch in reference from the function init_module() to the function .init.text:parisc_agp_setup.isra.0() The function init_module() references
the function __init parisc_agp_setup.isra.0().
This is often because init_module lacks a __init
annotation or the annotation of parisc_agp_setup.isra.0 is wrong.

Fixes 08a6436816f7 ("[PARISC] Add support for Quicksilver AGPGART")
Cc Kyle McMartin <[email protected]>
Cc David Airlie <[email protected]>
Cc "James E.J. Bottomley" <[email protected]>
Cc Helge Deller <[email protected]>
---
 drivers/char/agp/parisc-agp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/agp/parisc-agp.c +1 -1
@@ -378,7 +378,7 @@ find_quicksilver(struct device *dev, voi
 	return 0;
 }
 
-static int
+static int __init
 parisc_agp_init(void)
 {
 	extern struct sba_device *sba_list;
maintainer
#2 lore raw
Quoted 2 lines · Rolf Eike Beer

Am Samstag, 27. November 2021, 05:57:57 CET schrieb Randy Dunlap:

Quoted 1 line

Fix section mismatch warning in parisc-agp:

Thanks Randy!

Quoted 3 lines

Too late ;)

https://lore.kernel.org/linux-parisc/[email protected]/

Being late doesn't matter!
I'm really happy about all patches which are sent in for parisc and in the past often I applied the late-sent-in patches instead of mine, simply because the commit message was much better than mine.

So, patches are always welcome.

Helge