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


Groups > linux.kernel > #1361443 > unrolled thread

Re: [PATCH] ide: icside: remove incorrect initconst annotation

Started byDavid Miller <davem@davemloft.net>
First post2016-03-20 22:10 +0100
Last post2016-03-20 22:10 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] ide: icside: remove incorrect initconst annotation David Miller <davem@davemloft.net> - 2016-03-20 22:10 +0100

#1361443 — Re: [PATCH] ide: icside: remove incorrect initconst annotation

FromDavid Miller <davem@davemloft.net>
Date2016-03-20 22:10 +0100
SubjectRe: [PATCH] ide: icside: remove incorrect initconst annotation
Message-ID<reSLL-3W0-3@gated-at.bofh.it>
From: Arnd Bergmann <arnd@arndb.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@arndb.de>

Applied.

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web