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=-5.7 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_NEOMUTT 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 578A2C31E5B for ; Wed, 19 Jun 2019 15:06:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2C72B21874 for ; Wed, 19 Jun 2019 15:06:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lixom-net.20150623.gappssmtp.com header.i=@lixom-net.20150623.gappssmtp.com header.b="oqMO/sHA" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730240AbfFSPGZ (ORCPT ); Wed, 19 Jun 2019 11:06:25 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:42077 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729179AbfFSPGY (ORCPT ); Wed, 19 Jun 2019 11:06:24 -0400 Received: by mail-lj1-f194.google.com with SMTP id t28so1350994lje.9 for ; Wed, 19 Jun 2019 08:06:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=nDfkV8NBGFiURwassxD7ytfC0t1CNDepFq+TNmyLZT8=; b=oqMO/sHA/5NxzzT0yRXmVS1fov/gCBmlfxV3B0SZ3ubCH3qvBQq6dq2bhZA/OUg3Xv 1mwhfi7d8DblOgSZg2KH27JNOEFCkUGTmTIjqBQa5tkKbJRLWZLzYFT16hcJh+j/Syp+ 29LEvGQIXavrXVXrXbaS/KFO2Wit0+kCy7JgfWxWX69KL6iZth0DCR3slFQqOx6/HW4V LdXg/GimvZP4Ccsge79zv2H1Ozk8Mif58qENy+l8WgHm4+SvduSJkkwCYioICI7g0ggr 6dyQdufK1G3ho2rZBJi6gxJqSqooFfquIN1xmQ/iAGtGW0gnqs1RAE2rGfofviAc1my7 wvMg== 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=nDfkV8NBGFiURwassxD7ytfC0t1CNDepFq+TNmyLZT8=; b=cpqijaWhrp7tz/TsSQ5AYSI6jS5vlkK4z3gYGLRpv1SVhUgVWNkjDJezXG7tmnLpXW Q7ruySISHQRRNnLPpPAkWvLJJ00TFOECoxmGuRh9c2IOsdNIReeI5DNcVhUOp6DJ/kvP 18EgzrGH2Ozm+VU02+zPt/EKanXsZOYg/xv8kSQuMGoXqvTKEPghwUwHC96lk2bozhHv 97SIblh0YmQdsZeke5NqRdGuoEyCdnb2VqNxH7zA1hy5xvron7wUwcDUu9fHaA9ACBsb vwnELv2Vz4HGeAmxHATt5QAhBHY4MJQjEpM+SUdBS0uz9prJEDz1WUKV/w2m5MAlLqpD kGYA== X-Gm-Message-State: APjAAAVHDmWICMcTelGZSqHedbZWVIw5I6Jpk6m3PxFqaey7ByH4rJsR jfFryWCW74G8S2cHDTmMYBRWFLYB++PRrg== X-Google-Smtp-Source: APXvYqwiPMgPFpFbn6wMYwgtQdGcIZYTj3+AlxXKYiQQRRTPfzxTxIpULnMpbXQpRHYQpiV76HJLNw== X-Received: by 2002:a2e:5b0f:: with SMTP id p15mr48417670ljb.82.1560956783120; Wed, 19 Jun 2019 08:06:23 -0700 (PDT) Received: from localhost (h85-30-9-151.cust.a3fiber.se. [85.30.9.151]) by smtp.gmail.com with ESMTPSA id p2sm1747407lfc.89.2019.06.19.08.06.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 Jun 2019 08:06:22 -0700 (PDT) Date: Wed, 19 Jun 2019 07:27:22 -0700 From: Olof Johansson To: Arnd Bergmann Cc: arm@kernel.org, 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: Re: [PATCH] ARM: omap2: remove incorrect __init annotation Message-ID: <20190619142722.hsujtf3svd7p2pt4@localhost> 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: NeoMutt/20170113 (1.7.2) 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. > > 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 Applied to fixes. Thanks! -Olof