Skip to content

Commit 5e0baca

Browse files
geertudtor
authored andcommitted
Input: parkbd - drop bogus __init from parkbd_allocate_serio()
WARNING: vmlinux.o(.text+0x1056606): Section mismatch in reference from the function parkbd_attach() to the function .init.text:parkbd_allocate_serio() The function parkbd_attach() references the function __init parkbd_allocate_serio(). This is often because parkbd_attach lacks a __init annotation or the annotation of parkbd_allocate_serio is wrong. Commit 33ca8ab ("Input: parkbd - use parallel port device model") dropped the __init attribute from the sole caller of parkbd_allocate_serio(), but forgot to remove it from parkbd_allocate_serio() itself. Fixes: 33ca8ab ("Input: parkbd - use parallel port device model") Signed-off-by: Geert Uytterhoeven <[email protected]> Acked-by: Sudip Mukherjee <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 6060395 commit 5e0baca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/serio/parkbd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ static int parkbd_getport(struct parport *pp)
164164
return 0;
165165
}
166166

167-
static struct serio * __init parkbd_allocate_serio(void)
167+
static struct serio *parkbd_allocate_serio(void)
168168
{
169169
struct serio *serio;
170170

0 commit comments

Comments
 (0)