Skip to content

Commit

Permalink
Input: parkbd - drop bogus __init from parkbd_allocate_serio()
Browse files Browse the repository at this point in the history
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 <geert@linux-m68k.org>
Acked-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
Geert Uytterhoeven authored and Dmitry Torokhov committed Nov 9, 2015
1 parent 6060395 commit 5e0baca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/serio/parkbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ static int parkbd_getport(struct parport *pp)
return 0;
}

static struct serio * __init parkbd_allocate_serio(void)
static struct serio *parkbd_allocate_serio(void)
{
struct serio *serio;

Expand Down

0 comments on commit 5e0baca

Please sign in to comment.