Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp675211ybi; Wed, 19 Jun 2019 06:06:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKbzhaJ6mJpo4g0YFADGUaukaVjEbAW0g2dE+Z8bSlEqrj4oNbIkO9VfsickhZpzl0MsCw X-Received: by 2002:a65:6104:: with SMTP id z4mr7699048pgu.319.1560949606196; Wed, 19 Jun 2019 06:06:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560949606; cv=none; d=google.com; s=arc-20160816; b=RfHC5pWugtuWU+DHo9vc59Op8Wfel+igtvaqS6sRXNyhkNjYXo2mwM/N/CzIoeemd6 BV1d2mf1N3ro7jRx1Zps6nmOo3cGm/YSIfTcrD2K4YqcptSu3GtFqmdQGqTXjJYkbhQG ssqyiD42Sp1tIHBkPJ5Kp1HlE2e4D1MxxtlZbuOcjrZxGonKQlQRlFQuFodB523hKI5g 53VFncy+q/igOXzQmaDRSo1aUOKRKuDvBwKoUsgXuxw46eOPbLUFrhc/TVHNxuei3Whg ksKPYPmr2cK0ySTf1nbaJeu0nwpGu01pfOauRDyE6JRX1VHtl8dN3BgQ6mm6PB3svPSu n2tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=lGfFO7qdbBRBxFYZyuDsrfZqdGM+zaS8c9rlNuHYgF8=; b=HOZawsY9u904ErhYGMIBppdIEwruSJiWdA0cQbX+vpFFpwdGa/sboluRmpd66+AiJI Yq/g5YdRv23632JOuWm3a8i7vZajvQTEjHq2RceoB+1t7P0IIdgIhUkYY3EhKJwdjKbv E0K3gQA2xx8xgmv8l5a2pUOdxZNMmIJAvdojcq8Tl1wDPuMhtW37SKAC1Mx4QKrVlbhr EPaFa9xqW+h9d5l8qdBSl+cLt4+MadwbSTJN1CXgLaMIf/0YayGBWFy2JGpHlDefF1MT zDQRfvewdoXFAx2/UtjF2VOJ26sFMglnFNHJ14JRNj97wVGtWjvG+2nQAWA9mWiqH1Kz jNaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si1461520pjs.10.2019.06.19.06.06.22; Wed, 19 Jun 2019 06:06:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732007AbfFSNFy (ORCPT + 99 others); Wed, 19 Jun 2019 09:05:54 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:60669 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731178AbfFSNFx (ORCPT ); Wed, 19 Jun 2019 09:05:53 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPA (Nemesis) id 1M7s1M-1hhPlr438s-0051Nk; Wed, 19 Jun 2019 15:05:38 +0200 From: Arnd Bergmann To: arm@kernel.org Cc: Arnd Bergmann , Nathan Chancellor , Tony Lindgren , Rajendra Nayak , Paul Walmsley , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: omap2: remove incorrect __init annotation Date: Wed, 19 Jun 2019 15:04:54 +0200 Message-Id: <20190619130529.1502322-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K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utA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org omap3xxx_prm_enable_io_wakeup() is marked __init, but its caller is not, so we get a warning with clang-8: WARNING: vmlinux.o(.text+0x343c8): Section mismatch in reference from the function omap3xxx_prm_late_init() to the function .init.text:omap3xxx_prm_enable_io_wakeup() The function omap3xxx_prm_late_init() references the function __init omap3xxx_prm_enable_io_wakeup(). This is often because omap3xxx_prm_late_init lacks a __init annotation or the annotation of omap3xxx_prm_enable_io_wakeup is wrong. When building with gcc, omap3xxx_prm_enable_io_wakeup() is always inlined, so we never noticed in the past. Signed-off-by: Arnd Bergmann Reviewed-by: Nathan Chancellor Acked-by: Tony Lindgren --- arch/arm/mach-omap2/prm3xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/prm3xxx.c b/arch/arm/mach-omap2/prm3xxx.c index 05858f966f7d..dfa65fc2c82b 100644 --- a/arch/arm/mach-omap2/prm3xxx.c +++ b/arch/arm/mach-omap2/prm3xxx.c @@ -433,7 +433,7 @@ static void omap3_prm_reconfigure_io_chain(void) * registers, and omap3xxx_prm_reconfigure_io_chain() must be called. * No return value. */ -static void __init omap3xxx_prm_enable_io_wakeup(void) +static void omap3xxx_prm_enable_io_wakeup(void) { if (prm_features & PRM_HAS_IO_WAKEUP) omap2_prm_set_mod_reg_bits(OMAP3430_EN_IO_MASK, WKUP_MOD, -- 2.20.0