Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp706538ybi; Wed, 19 Jun 2019 06:34:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwaJZVIsMOb7Z3JIkoFLVzv+BImmHu8nCdp8xX6SdSWfB1faZaUaoTOgEnHEPDGvOoZXXA0 X-Received: by 2002:a63:a48:: with SMTP id z8mr7809485pgk.91.1560951284314; Wed, 19 Jun 2019 06:34:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560951284; cv=none; d=google.com; s=arc-20160816; b=xpzitsBC/lmSFBQQMaSYUU9/YbDbwiglnEJfPfYdt6qZ1GNt5UnUydHw82ow4CPqHW rpbO61djqwY5rN29lWRsIOGad8Vu7faay2EXMySbs7qpQ6VW7mZcwL0WPpB3IZQWLQbb n1bpnI3QxeOuWggUmmpkO8ZHg0RjSqQzyEHjhNSX2FD4K0yeqhKxR4bMXWvxETMlvXIc H11dvK8wNqh1ONsd/Ngo5Rem9je0ow+BY0yAD4wz2VjTsDZ3OXtn0RW2gI+1WD9QCorF 3jW0UJ5Qgs5roYobVC1zTPavB3QQdQhi+R5DWugpvbd6FiTxAbh751AcKx6cTJR3jLny q2kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=R+mlIpZ/HVB7clVUbNUJfwjrKkXYPm9lzm6rTq+77nU=; b=LLX1ClikRJ4MltUpMkwDUvaR9O6ezI0y5rMu2uuEU/ivFtywiCQyPxPBTViTE240xh KacHrUOKZeryOeXdhSnjnrp0Yk1WACSO169NyD7BLxHX6nSryoVEZPTVZ5ZdJUY9iWXJ a0ghWXfgrwHMP1YTWMgqW268ANfq2mZH8ZnPF3BCJa5CXQC+Vq0GFBjRumcsiwM+VbWf wUNBgl80E0Db2wwMw3tPOB4M3exXHYrqxxnmfjY+0RTm/es5x7iAVrQs0XieehsV51Yd /bNT8QGWp3jlgPKsBkdDdMcdx6d01kz4l4akr4memCHGF09yDkPgW4UQxat2jWJXJJ1g R6rg== 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 i23si3100560pgh.26.2019.06.19.06.34.27; Wed, 19 Jun 2019 06:34:44 -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 S1730927AbfFSNc2 (ORCPT + 99 others); Wed, 19 Jun 2019 09:32:28 -0400 Received: from foss.arm.com ([217.140.110.172]:39914 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727129AbfFSNc2 (ORCPT ); Wed, 19 Jun 2019 09:32:28 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 520DB344; Wed, 19 Jun 2019 06:32:27 -0700 (PDT) Received: from localhost (unknown [10.37.6.20]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C838B3F738; Wed, 19 Jun 2019 06:32:26 -0700 (PDT) Date: Wed, 19 Jun 2019 14:32:25 +0100 From: Andrew Murray To: Arnd Bergmann Cc: arm@kernel.org, Paul Walmsley , Rajendra Nayak , Tony Lindgren , linux-kernel@vger.kernel.org, Nathan Chancellor , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] ARM: omap2: remove incorrect __init annotation Message-ID: <20190619133224.GX20984@e119886-lin.cambridge.arm.com> References: <20190619130529.1502322-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190619130529.1502322-1-arnd@arndb.de> User-Agent: Mutt/1.10.1+81 (426a6c1) (2018-08-26) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 19, 2019 at 03:04:54PM +0200, Arnd Bergmann wrote: > 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. > That's unfortunate, both omap3xxx_prm_enable_io_wakeup and omap3xxx_prm_late_init are only ever called at init time (by prm_late_init which is also __init annotated). However the omap3xxx_prm_ll_data structure containing the late_init has a life beyond init. Otherwise I would have suggested annotating omap3xxx_prm_late_init. Reviewed-by: Andrew Murray > 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 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel