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=-17.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 9ED49C433ED for ; Wed, 12 May 2021 09:03:43 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 43734613FE for ; Wed, 12 May 2021 09:03:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 43734613FE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc: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=WKCSJFDdNEr62FrqZCaJgkBMY64mq0h8xsHDEeV+BaY=; b=CJyHxQzgqge7jIwfvgZISfxrF5 OhvmoKkTlf4nyJmMe0BVBhVZ642QhYgNVJTGMCrhVseGY+o8AyhUQgGF5Vjf9W9jseUWw2HSsY+mM s/H64wgLtk1SQoG3mS36d2HYzlqNPiCV4/iS8CSVOXjDMc9Ge+UfqXNev+adxOmXazbFwpkuq1fIv tfnVHeYTCln9zC60wPR4iSpp6RDoW/nNXtJXEfHaGtOsQDT8RkGqLzU5Av4v37C+33PA6lfLpXyXz Dv2zqp7o8+8sRRUQlnblxb5lXNihzHFTj9apWQBRB+mNEidXCRSmnHG896PuuH90nLOfDluYm1b/N sGwAVirA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgkkN-002O31-ER; Wed, 12 May 2021 09:01:39 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgkkK-002O2Y-OL for linux-arm-kernel@desiato.infradead.org; Wed, 12 May 2021 09:01:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=JVWuXhIm1b07xNpJzPhsje9TNjz+0qnjO6M7xE4IxXM=; b=PKpAUfa7kU3te42YLnw736MEA/ oQT9kSgGrKYNTxskk1bvqTWGZm7N6SrrN7HtAlIt6DmrLbNtAkBTinwXMGQ5644Do+ZkZCyKFrNwI H9TzYJp3ZgSS7bZfiUpkOVvqdens2qIcWWlG3BG9X1C+aSdHty0PewP6pl4sQVqTI5UBECfbzQ5qP lsrPjID7zkl/XRAJmJr+dNy1WZ8Jnzv7YKf64q9eXqycWm44kU+4waa/T6t4YrdYD0EdUETLu1bx8 uVwcdoo5heN9d0EYzPfxuAKLbJi7VmxDy2cy71t3prd4o0l2j3YSel3WEq5HbaSMR2PIAb11499ib tWYcNC5Q==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgkkI-00AEeh-Ac for linux-arm-kernel@lists.infradead.org; Wed, 12 May 2021 09:01:35 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9FEDF61403; Wed, 12 May 2021 09:01:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620810093; bh=zG9OP4EUNrKHbg0lDClVXB7imXazcWV3M6RxRM30/B0=; h=From:To:Cc:Subject:Date:From; b=Td7SRIdSsGHyhuayIkYNwak11j2m/4FOJ85kSV/oyueaB18U9WQrRhAEEGxV9gBO7 qze70HHr0sSi0HjBceE4O0YHfI2bJz0pGlrObkk0eQujgBMmAcunIl7f6Lis0o0lMN FZ2zQXOUpWFUQCjng+DssUZAqLrfmEwPS8tdO3ThV1UM5xj3D/Nrjd6IuWHpySMc83 eWYybrFXaModi8Uy6esqUk5mGujB26AZBvRaz1Ia8h6XQkQKyTHntJwgw4LKbpyfeJ +FaEjmR14mfJPPkMMd1WUFuMhMyg1L2uhH9tlGJxbIa0nMLodTZhUdpLm57lisqlle Ea+Dt6uVv9qVQ== From: Arnd Bergmann To: Russell King Cc: Arnd Bergmann , Mike Rapoport , Ard Biesheuvel , Linus Walleij , Andrew Morton , Changbin Du , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] [v2] ARM: mark prepare_page_table as __init Date: Wed, 12 May 2021 11:00:42 +0200 Message-Id: <20210512090047.2069033-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210512_020134_421848_7C8B5AA3 X-CRM114-Status: GOOD ( 13.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arnd Bergmann In some configurations when building with gcc-11, prepare_page_table does not get inline, which causes a build time warning for a section mismatch: WARNING: modpost: vmlinux.o(.text.unlikely+0xce8): Section mismatch in reference from the function prepare_page_table() to the (unknown reference) .init.data:(unknown) The function prepare_page_table() references the (unknown reference) __initdata (unknown). This is often because prepare_page_table lacks a __initdata annotation or the annotation of (unknown) is wrong. Mark the function as __init to avoid the warning regardless of the inlining, and remove the 'inline' keyword. The compiler is free to ignore the 'inline' here and it doesn't result in better object code or more readable source. Signed-off-by: Arnd Bergmann --- v2: remove 'inline', as suggested by Russell and Ard --- arch/arm/mm/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 051f4f82414b..40a1fa5ec93b 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c @@ -1246,7 +1246,7 @@ void __init adjust_lowmem_bounds(void) memblock_set_current_limit(memblock_limit); } -static inline void prepare_page_table(void) +static __init void prepare_page_table(void) { unsigned long addr; phys_addr_t end; -- 2.29.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel