From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751811AbcCTVBM (ORCPT ); Sun, 20 Mar 2016 17:01:12 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:60779 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751654AbcCTVBJ (ORCPT ); Sun, 20 Mar 2016 17:01:09 -0400 Date: Sun, 20 Mar 2016 17:01:06 -0400 (EDT) Message-Id: <20160320.170106.770272160812836442.davem@davemloft.net> To: arnd@arndb.de Cc: linux-arm-kernel@lists.infradead.org, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ide: icside: remove incorrect initconst annotation From: David Miller In-Reply-To: <1454941909-2778808-1-git-send-email-arnd@arndb.de> References: <1454941909-2778808-1-git-send-email-arnd@arndb.de> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sun, 20 Mar 2016 14:01:08 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann 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 Applied.