]> git.baikalelectronics.ru Git - kernel.git/commit
VSOCK: Drop bogus __init annotation from vsock_init_tables()
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 23 Apr 2013 23:40:55 +0000 (23:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Apr 2013 08:21:51 +0000 (04:21 -0400)
commit14c8671563a9a5a9ba967f29737e5ebd23068cf7
treed267c43308cc39069adcaf91f398dcbab9eac5a9
parentecfbab46184694472fe02f090d6b6d946934b5db
VSOCK: Drop bogus __init annotation from vsock_init_tables()

If gcc (e.g. 4.1.2) decides not to inline vsock_init_tables(), this will
cause a section mismatch:

WARNING: net/vmw_vsock/vsock.o(.text+0x1bc): Section mismatch in reference from the function __vsock_core_init() to the function .init.text:vsock_init_tables()
The function __vsock_core_init() references
the function __init vsock_init_tables().
This is often because __vsock_core_init lacks a __init
annotation or the annotation of vsock_init_tables is wrong.

This may cause crashes if VSOCKETS=y and VMWARE_VMCI_VSOCKETS=m.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/vmw_vsock/af_vsock.c