ide: icside: remove incorrect initconst annotation
authorArnd Bergmann <arnd@arndb.de>
Mon, 8 Feb 2016 14:31:45 +0000 (15:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 Mar 2016 20:59:27 +0000 (16:59 -0400)
commiteccf432f6542d9895d6c50edb5634c6147918ed2
tree13909889f989c4197d216de1f2ff5aff87c7e14d
parent142b9e6c9de0fd7c0dff9a1d4a25390de46abf5e
ide: icside: remove incorrect initconst annotation

The icside_probe function can be called for hotplugged devices, so
its reference to the __initconst icside_v6_port_info variable
may be invalid, as Kbuild points out:

WARNING: drivers/ide/icside.o(.text+0x338): Section mismatch in reference from the function icside_probe()
 to the (unknown reference) .init.rodata:(unknown)

Interestingly, this problem only shows up with clang but not
with gcc, which optimizes out the __initconst variable.

This removes the incorrect annotation.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ide/icside.c
This page took 0.024431 seconds and 5 git commands to generate.