Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1265041 > unrolled thread

[PATCH] Input: parkbd - Drop bogus __init from parkbd_allocate_serio()

Started byGeert Uytterhoeven <geert@linux-m68k.org>
First post2015-11-08 10:00 +0100
Last post2015-11-09 18:30 +0100
Articles 4 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] Input: parkbd - Drop bogus __init from parkbd_allocate_serio() Geert Uytterhoeven <geert@linux-m68k.org> - 2015-11-08 10:00 +0100
    Re: [PATCH] Input: parkbd - Drop bogus __init from  parkbd_allocate_serio() Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2015-11-09 14:10 +0100
      Re: [PATCH] Input: parkbd - Drop bogus __init from parkbd_allocate_serio() Geert Uytterhoeven <geert@linux-m68k.org> - 2015-11-09 14:20 +0100
        Re: [PATCH] Input: parkbd - Drop bogus __init from  parkbd_allocate_serio() Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2015-11-09 18:30 +0100

#1265041 — [PATCH] Input: parkbd - Drop bogus __init from parkbd_allocate_serio()

FromGeert Uytterhoeven <geert@linux-m68k.org>
Date2015-11-08 10:00 +0100
Subject[PATCH] Input: parkbd - Drop bogus __init from parkbd_allocate_serio()
Message-ID<qstZn-6iS-7@gated-at.bofh.it>
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 33ca8ab97cbb676d ("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: 33ca8ab97cbb676d ("Input: parkbd - use parallel port device model")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drivers/input/serio/parkbd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/serio/parkbd.c b/drivers/input/serio/parkbd.c
index 74bb17270255439c..92c31b8f8fb489c3 100644
--- a/drivers/input/serio/parkbd.c
+++ b/drivers/input/serio/parkbd.c
@@ -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;
 
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1265634 — Re: [PATCH] Input: parkbd - Drop bogus __init from parkbd_allocate_serio()

FromSudip Mukherjee <sudipm.mukherjee@gmail.com>
Date2015-11-09 14:10 +0100
SubjectRe: [PATCH] Input: parkbd - Drop bogus __init from parkbd_allocate_serio()
Message-ID<qsUmS-6Ql-15@gated-at.bofh.it>
In reply to#1265041
On Sat, Nov 07, 2015 at 04:53:23PM +0100, Geert Uytterhoeven wrote:
> 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 33ca8ab97cbb676d ("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: 33ca8ab97cbb676d ("Input: parkbd - use parallel port device model")
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>

I don't see this with allmodconfig on i386 or on x86_64. How did you get
this warning? But anyway, looking at the code, i did miss attribute.

Acked-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>

regards
sudip
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1265648

FromGeert Uytterhoeven <geert@linux-m68k.org>
Date2015-11-09 14:20 +0100
Message-ID<qsUwy-6TG-21@gated-at.bofh.it>
In reply to#1265634
Hi Sudip,

On Mon, Nov 9, 2015 at 2:05 PM, Sudip Mukherjee
<sudipm.mukherjee@gmail.com> wrote:
> On Sat, Nov 07, 2015 at 04:53:23PM +0100, Geert Uytterhoeven wrote:
>> 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 33ca8ab97cbb676d ("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: 33ca8ab97cbb676d ("Input: parkbd - use parallel port device model")
>> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
>
> I don't see this with allmodconfig on i386 or on x86_64. How did you get
> this warning? But anyway, looking at the code, i did miss attribute.

It depends on your compiler version. If your compiler decides to inline
parkbd_allocate_serio(), you won't see that warning.

> Acked-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>

Thanks!

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1265885 — Re: [PATCH] Input: parkbd - Drop bogus __init from parkbd_allocate_serio()

FromDmitry Torokhov <dmitry.torokhov@gmail.com>
Date2015-11-09 18:30 +0100
SubjectRe: [PATCH] Input: parkbd - Drop bogus __init from parkbd_allocate_serio()
Message-ID<qsYqu-YN-33@gated-at.bofh.it>
In reply to#1265648
On Mon, Nov 09, 2015 at 02:13:34PM +0100, Geert Uytterhoeven wrote:
> Hi Sudip,
> 
> On Mon, Nov 9, 2015 at 2:05 PM, Sudip Mukherjee
> <sudipm.mukherjee@gmail.com> wrote:
> > On Sat, Nov 07, 2015 at 04:53:23PM +0100, Geert Uytterhoeven wrote:
> >> 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 33ca8ab97cbb676d ("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: 33ca8ab97cbb676d ("Input: parkbd - use parallel port device model")
> >> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
> >
> > I don't see this with allmodconfig on i386 or on x86_64. How did you get
> > this warning? But anyway, looking at the code, i did miss attribute.
> 
> It depends on your compiler version. If your compiler decides to inline
> parkbd_allocate_serio(), you won't see that warning.
> 
> > Acked-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>

Applied, thank you.

-- 
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web