From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8D476C43381 for ; Thu, 7 Mar 2019 15:36:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5B5562064A for ; Thu, 7 Mar 2019 15:36:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="bqecb0TT"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="q1MU/6RI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5B5562064A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=rJysgmBy+wjzHMISkBzmteX6ptsTPDaIUPb/EfY4R8A=; b=bqecb0TT6TpGbJ yM6GV+CIL77CEDVyoI/OYpkm1POKXISQutOfNDJ+bNsfBhhGU64Op27QucEElPuEAe3NARbKdU3Vp sOq5mXJOt3I/65LF5M/eRguzKo4iHp0bXHfw/A3MCPjda/+QPxqFHYwc1EYG9XqeqQx2TuoYj0SnN aO40dpKZ87zUr8lh5uLEncnytmBeGh1UXj5+D66bnVGQihmffrlGzyrxzPiWltcTm7NlyytTadTaR qBesSZoAtxUCbsbn65ehORTCnoN/y3U2WrKfztQEeSSzMJGh5ve2cvQiqISJPHQLfMNSf/wDPvDH6 RJ++sYMu5PPEvTA1T5qg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1v4P-0007L9-I6; Thu, 07 Mar 2019 15:36:29 +0000 Received: from mail-ed1-x544.google.com ([2a00:1450:4864:20::544]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1v4M-0007KQ-5y for linux-arm-kernel@lists.infradead.org; Thu, 07 Mar 2019 15:36:27 +0000 Received: by mail-ed1-x544.google.com with SMTP id g19so13849684edp.2 for ; Thu, 07 Mar 2019 07:36:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=7FMCMEKfEnbJpETgr0p4VyI+09oL5xnXo+j4oOwHufA=; b=q1MU/6RIxopvCXzN1fOt1gQnU8HF8NLvKWL1aCrN/xp+CY1zpP5ECX9ez5gmQkjEHo uhzGESXKaPtOihyNkiND7parnW3hx9+Eg60dGgMTwwbCgDtxuuIElMKd8JRH7nkDqd7k woULA9+NgV6tmo6owMYuBFZQIVl72L6i8dthboIUmgzKhwHd7pbwYdJvFHI2P+dkeirv SFSO1ywjda8LxOi0qbdchEG1dRB8VgJe4n9MCPGzMsQCDtsC34lJWtm1QJ7dwfLE5F/q K+R0a6WfkxHFwFGw9+KCytBOmyuiPl5SVIuPO+4Vj0P3RGvyZEbe3GQ4ZEQLn2Nv/OKE +2hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=7FMCMEKfEnbJpETgr0p4VyI+09oL5xnXo+j4oOwHufA=; b=OpSGqqixJVHQPTpH/cobMDI3G/m/JNMDoOyhk5iqe/rWjv13TSXCXmK9hXAxZgShZQ +Kq7EuxtwIEmQ51jhEcdbcRDycefccE86gsYfwbx2supM/YRVNamRFR5+Yv+Ash1tdQa xmihkHvTxLoUwr3uA3GbOE4m41ogMgr4vrRK9msiygWmsFFHN1yh2VcTwDFc+BdkTKOH 3EnlU8QcVhceo18CG+Ei9cDYsHDuUBPHglOT5NYygJp0HAeIZ0+BzHxBA4n5UaMpCSBT LY0cO6yCTnTpRX1yLxGndDk2LDF7XzN1d/SzKjMstyxTqyVLwZzvRpL10tKRaPslevnc 6LGQ== X-Gm-Message-State: APjAAAVVSaAJtSJdxRgNGbvEsfZzoyOuMMAEf9foHdbPvqzrtg+wqb5M 3Jawa18BUbkIJpqnrcGsy7A= X-Google-Smtp-Source: APXvYqzBsQwbN1JdIYmThWlIv0QFdeqRBftJ5hBIYkOkZxdcDA5XCwT4GyTUdGVepNO3H7gQbGIPDQ== X-Received: by 2002:a50:ad4b:: with SMTP id z11mr28082610edc.157.1551972983594; Thu, 07 Mar 2019 07:36:23 -0800 (PST) Received: from archlinux-ryzen ([2a01:4f9:2a:1fae::2]) by smtp.gmail.com with ESMTPSA id q46sm1408266edd.0.2019.03.07.07.36.22 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 07 Mar 2019 07:36:22 -0800 (PST) Date: Thu, 7 Mar 2019 08:36:20 -0700 From: Nathan Chancellor To: Arnd Bergmann Subject: Re: [PATCH] ARM: omap2: remove incorrect __init annotation Message-ID: <20190307153620.GK20201@archlinux-ryzen> References: <20190307103557.1688556-1-arnd@arndb.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190307103557.1688556-1-arnd@arndb.de> User-Agent: Mutt/1.11.3 (2019-02-01) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190307_073626_250334_6153D443 X-CRM114-Status: GOOD ( 17.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paul Walmsley , Rajendra Nayak , Tony Lindgren , Nick Desaulniers , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Mar 07, 2019 at 11:35:50AM +0100, 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. > > 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 > --- > 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