[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20160320.170106.770272160812836442.davem@davemloft.net>
Date: Sun, 20 Mar 2016 17:01:06 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: arnd@...db.de
Cc: linux-arm-kernel@...ts.infradead.org, linux-ide@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ide: icside: remove incorrect initconst annotation
From: Arnd Bergmann <arnd@...db.de>
Date: Mon, 8 Feb 2016 15:31:45 +0100
> 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@...db.de>
Applied.
Powered by blists - more mailing lists