From patchwork Thu Oct 18 00:52:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Chancellor X-Patchwork-Id: 10646659 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 38BBD1057 for ; Thu, 18 Oct 2018 00:52:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2D331285A6 for ; Thu, 18 Oct 2018 00:52:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1FBF9288DA; Thu, 18 Oct 2018 00:52:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B8BAB285A6 for ; Thu, 18 Oct 2018 00:52:53 +0000 (UTC) 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:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=RTDlIn2FTU1i2Flhouo56LdsNjsoWaZaHW3vAooe0Rw=; b=pXGR/dTAzH+xGT 3+URyfNeloJUxl7M7zszBReRlimXMZNrhHeijOQv5U+N4aD40etjTpKObFnUuxO8iF/9Rup8QyCjQ 6HD1FxuLRqWxOz16v/WGTn/43lIlIHLEWC/XeM6niAV1eZ+8XhknylyoIrZZgfQUacenCSG+8egkL HMVEGopBBMhVADRicrOOJX9fBCEgD9AXdqPfPmndXhfw5NJfgCw6gk33p20j6Qf3LDwsZNhy9Asxx bre8FZFqNsHvB2Y4JUJZY4fhZkqpx0Gu1Dv8CgVfb/+pu21tN96+JuQJ5b5MVZtiPfXxwPATO/vlv XG0CtXyrMtzXXS0p+a5g==; 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 1gCwYM-0000XG-PB; Thu, 18 Oct 2018 00:52:42 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCwY9-0000Rf-4N for linux-arm-kernel@lists.infradead.org; Thu, 18 Oct 2018 00:52:39 +0000 Received: by mail-wr1-x442.google.com with SMTP id n1-v6so31658964wrt.10 for ; Wed, 17 Oct 2018 17:52:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VCB2xFu33zZBuG0YJc6qNP5Gz5dyMINDtebvPwjiXZQ=; b=XTihYKiy/y9w+lBb4VuW6nLFseAN/o1YQFOD3X1cFUGFIGqXp2qPYJw5TLqMba5HdT RvtTRGCdy1lPIptoHWRc556fyGyBcrXNcFRwVNWd1SOneCB0IWz4DMAWktN/vi8M1mmy 1Y5cAjL4CsCAnpyHAZHNimLsWpBgjP5pYflq9jGt52dyNUCGpZC+jdSFZZd0HuEJ8C5G ++VJ82YBuzSUiH2iiX9K97ZAqTIvdulCc8iGyM2KxGqWfO2pooxzgTMRzxqavqkUCLLq uTZv2OZUnPXysw+RUoVcNlOtoIfLZ18ZqPA1Yg6GxKqoX7r0XRWmDopBJ7nG0YNZNPwm 33DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VCB2xFu33zZBuG0YJc6qNP5Gz5dyMINDtebvPwjiXZQ=; b=Cx7Zd0oDkn4CNcxUOW0ReC02a/quweTJezFZnQow+5DUR08ABCO/Honzpr3oyCDffM 0LnZO1qEMUEzbIEB7onxg+Rl/wzH0oIHJldLIiOk1eXJMtknTMv5kkVyDhQS7nWHzMBt 8VK1lt0btWwirlEI4kpRsE8GShBsIEzM+cbMMo4hhBxYPLKfaIb+WEKn90VsXeuZxz73 T8w7qDlN3dVam0rNddefEUuB6Y+R9ts2oIsXPIgW0uYQfLE2g4346r4VIVn9UxYlR+Jy YDJC0Ks7/dH4NDOSXJTZEH2b0pSlra3wR56Nk3Ygg7bbSBZ2tMrKq2azLlTRzdBXEwz1 19aQ== X-Gm-Message-State: ABuFfogJgGMnB9mwLdQ+2uPglzkVauT6AqaiT8Dyc0BWA3opEte/Lwmz Z8B6GmhIFzOxfgPE+tUPryo= X-Google-Smtp-Source: ACcGV63hEi6BEhaTPZtOPAaK/Saxq4fQcy/42a8jf9lb+lVghnPRFOVxI9DXKrf02bEI1GNetpSbKw== X-Received: by 2002:a5d:680b:: with SMTP id w11-v6mr24205756wru.186.1539823937009; Wed, 17 Oct 2018 17:52:17 -0700 (PDT) Received: from localhost.localdomain ([2a01:4f8:10b:24a5::2]) by smtp.gmail.com with ESMTPSA id 91-v6sm5542139wrb.95.2018.10.17.17.52.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Oct 2018 17:52:16 -0700 (PDT) From: Nathan Chancellor To: =?utf-8?q?Beno=C3=AEt_Cousson?= , Paul Walmsley , Tony Lindgren Subject: [PATCH] ARM: OMAP2+: hwmod: Fix some section annotations Date: Wed, 17 Oct 2018 17:52:07 -0700 Message-Id: <20181018005207.7201-1-natechancellor@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181017_175229_228536_8F95077A X-CRM114-Status: GOOD ( 14.46 ) 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: Nathan Chancellor , linux-omap@vger.kernel.org, Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP When building the kernel with Clang, the following section mismatch warnings appears: WARNING: vmlinux.o(.text+0x2d398): Section mismatch in reference from the function _setup() to the function .init.text:_setup_iclk_autoidle() The function _setup() references the function __init _setup_iclk_autoidle(). This is often because _setup lacks a __init annotation or the annotation of _setup_iclk_autoidle is wrong. WARNING: vmlinux.o(.text+0x2d3a0): Section mismatch in reference from the function _setup() to the function .init.text:_setup_reset() The function _setup() references the function __init _setup_reset(). This is often because _setup lacks a __init annotation or the annotation of _setup_reset is wrong. WARNING: vmlinux.o(.text+0x2d408): Section mismatch in reference from the function _setup() to the function .init.text:_setup_postsetup() The function _setup() references the function __init _setup_postsetup(). This is often because _setup lacks a __init annotation or the annotation of _setup_postsetup is wrong. _setup is used in omap_hwmod_allocate_module, which isn't marked __init and looks like it shouldn't be, meaning to fix these warnings, those functions must be moved out of the init section, which this patch does. Signed-off-by: Nathan Chancellor --- arch/arm/mach-omap2/omap_hwmod.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index 083dcd9942ce..921c9aaee63f 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c @@ -2413,7 +2413,7 @@ static int __init _init(struct omap_hwmod *oh, void *data) * a stub; implementing this properly requires iclk autoidle usecounting in * the clock code. No return value. */ -static void __init _setup_iclk_autoidle(struct omap_hwmod *oh) +static void _setup_iclk_autoidle(struct omap_hwmod *oh) { struct omap_hwmod_ocp_if *os; @@ -2444,7 +2444,7 @@ static void __init _setup_iclk_autoidle(struct omap_hwmod *oh) * reset. Returns 0 upon success or a negative error code upon * failure. */ -static int __init _setup_reset(struct omap_hwmod *oh) +static int _setup_reset(struct omap_hwmod *oh) { int r; @@ -2505,7 +2505,7 @@ static int __init _setup_reset(struct omap_hwmod *oh) * * No return value. */ -static void __init _setup_postsetup(struct omap_hwmod *oh) +static void _setup_postsetup(struct omap_hwmod *oh) { u8 postsetup_state;