From patchwork Thu Oct 18 00:56:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Chancellor X-Patchwork-Id: 10646665 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 7CB3E13B0 for ; Thu, 18 Oct 2018 00:57:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 73F9728866 for ; Thu, 18 Oct 2018 00:57:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 66EBC28895; Thu, 18 Oct 2018 00:57:03 +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=ham 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 1B3E628866 for ; Thu, 18 Oct 2018 00:57:03 +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=aGBX7fz1mRpJ2whPe9gcBSlPFHQ5K3dgG9GngfIhd98=; b=TXxiCBJoftLkAt hjAWtquWo9FYJeuuRweXCTtqPfGJC288xZ7D2lxgtdGMm3EFojwHoVSfCz18HVlVmLxWfVUG/1Qu/ 2NyTpac9mnlOG0a2saB9dtpi2SbCnqoYxV1IpTfYWSbfLCnq8GWaPTzUnggqOyX/q7p23Jmp0IWGx gxjFnRvnBuB5V+ABYchLDE+b4xWUZXyX3nf3OVGGtrsMaNm/QMSb38XUCUoof1bHzne+FSILXuyoT Olj3Pznc22PO3iBYb9tkCxhNCF02E0TPvUieUY10DXhgmitjfWlGM2VVoaxS07MCrAON29FJ0DU5F B+akiE4BjY2d2J3sPnnA==; 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 1gCwcP-0002le-GY; Thu, 18 Oct 2018 00:56:53 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCwcM-0002kJ-6i for linux-arm-kernel@lists.infradead.org; Thu, 18 Oct 2018 00:56:51 +0000 Received: by mail-wr1-x444.google.com with SMTP id y11-v6so31629541wrd.4 for ; Wed, 17 Oct 2018 17:56:39 -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=2SWToVUA/ql3233vIUowK3fXJtf4wFVq/XsDPcJE7KE=; b=fllIh0FsjWnA6fxDBhADTWP/h42AfGKwHG3sZ+6Ft+QlOqLeyV7QMhQTKLxZZwoIAI ke1dPi+wwiAMtc2XW2cfyVaXQDpGoElmw4x9DTEK+CarT5BRgpV/zuCt/VqsEx2O/Pal /gvUjwzWZQhk5jTitvuQOw9svAz/bh5p7/Sb7akZA4TXya8UysMf7INYOka0WD5/bw0i Kbnzyo5sdP3QAmNBstPylcGe6HEyRe+jev5guVgph2s5VwqUMTJB4YHwEoCGstgxM+Oc K67Tb4/neDR5IqkrBxmldpjF3TipZrANpwtCRFc1DXhJNPVpG4roqi76nxNi7FGDigPS 6HVA== 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=2SWToVUA/ql3233vIUowK3fXJtf4wFVq/XsDPcJE7KE=; b=mrRBGkuIv69c/IWs0vWMdqRMJ+J3zBUYwQm8PWkok8wMwzIkpLNzIsrYl0OcafoHXv 5pECfqNIwiLDgnr+a2pSjXoXUv5UNAxQc4IPnq5hx98zL7aaVom4XvMuHg24aV6PllS8 t1h7Nq2obJ+j7SzilZyUN7gh5xJgGVmpEXA9zLKPhP+JRsr9LI6r2i0ORaMwudAl8S2q 0MAetY//XghcDS/HfGgskynB5YaLChmvpuReKb/ilWPu5pUfcK64YoFRggDQB1/7Cz1l WhKqlywYEh6+QVWYsBdFb3Y7JFJ4BCPYjVFiWBAkHTeq+RWaY61VnMAef/RxkLUcoiuP bTUA== X-Gm-Message-State: ABuFfohFv4btKn2dtfpxdxDCtHgJwHElfrFmWT4qsS55eLGIErg2PkWW 9ptAvQOmRhW4SYzMKPzJmq0= X-Google-Smtp-Source: ACcGV60MgTk47aKYFjsTozyoU/epWE3b7PK7678Y/dmiLXHsTpWGCkOhxaS3I4K9qTIGnza1lWEpxA== X-Received: by 2002:adf:eec4:: with SMTP id a4-v6mr27354128wrp.242.1539824198103; Wed, 17 Oct 2018 17:56:38 -0700 (PDT) Received: from localhost.localdomain ([2a01:4f8:10b:24a5::2]) by smtp.gmail.com with ESMTPSA id i7-v6sm23112559wrb.30.2018.10.17.17.56.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Oct 2018 17:56:37 -0700 (PDT) From: Nathan Chancellor To: Linus Walleij , Lee Jones Subject: [PATCH] mfd: db8500-prcmu: Fix some section annotations Date: Wed, 17 Oct 2018 17:56:28 -0700 Message-Id: <20181018005628.8295-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_175650_494116_ED599E02 X-CRM114-Status: GOOD ( 12.66 ) 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-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.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 appear: WARNING: vmlinux.o(.text+0x7239cc): Section mismatch in reference from the function db8500_prcmu_probe() to the function .init.text:init_prcm_registers() The function db8500_prcmu_probe() references the function __init init_prcm_registers(). This is often because db8500_prcmu_probe lacks a __init annotation or the annotation of init_prcm_registers is wrong. WARNING: vmlinux.o(.text+0x723e28): Section mismatch in reference from the function db8500_prcmu_probe() to the function .init.text:fw_project_name() The function db8500_prcmu_probe() references the function __init fw_project_name(). This is often because db8500_prcmu_probe lacks a __init annotation or the annotation of fw_project_name is wrong. db8500_prcmu_probe should not be marked as __init so remove the __init annotation from fw_project_name and init_prcm_registers. Signed-off-by: Nathan Chancellor --- drivers/mfd/db8500-prcmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c index 5970b8def548..aec20e1c7d3d 100644 --- a/drivers/mfd/db8500-prcmu.c +++ b/drivers/mfd/db8500-prcmu.c @@ -2584,7 +2584,7 @@ static struct irq_chip prcmu_irq_chip = { .irq_unmask = prcmu_irq_unmask, }; -static __init char *fw_project_name(u32 project) +static char *fw_project_name(u32 project) { switch (project) { case PRCMU_FW_PROJECT_U8500: @@ -2732,7 +2732,7 @@ void __init db8500_prcmu_early_init(u32 phy_base, u32 size) INIT_WORK(&mb0_transfer.mask_work, prcmu_mask_work); } -static void __init init_prcm_registers(void) +static void init_prcm_registers(void) { u32 val;