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,URIBL_BLOCKED,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 C8C62C433ED for ; Tue, 11 May 2021 12:29:51 +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 30E546191D for ; Tue, 11 May 2021 12:29:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 30E546191D 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=FUMQLkV3JKcnNlC2lrCmqw2tWQY2tCqYtU9+W0VYOhM=; b=lhY1/gse+gnXEmi7WDgYQxs7UM wQ6yhSyF0UixCOwdGbi1+bRgQ6FFyEXZiE/wjMM2x+aYZgXT9naG+FPeW2K9cw72zzJ2HW39vL/CQ q+fvQ5s1i5F7ycXO53sN/Ya1j6V1RT4oHZ8Vr6HowtTHEuG8BbzZPFZo9TPpuNOLr/Qd3gS980ahB d2VztaQfY3JVIro7gDEj85rKC9Bv1QcirYTMtppO79yXTPNBS0erqfH2XFG+0Umjgkv0EQ7dSq5MG rKt6gcNez4Qlz++zGcqGTj7nIudXYCsB9KwRbWVoXywYwJ59KBZh17WV5rnZxgT54GQ84nIHE7bT5 Bn5zeWFw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgRUu-00HO7i-Lj; Tue, 11 May 2021 12:28:26 +0000 Received: from [2607:7c80:54:e::133] (helo=bombadil.infradead.org) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgOJE-00Ge5c-8i for linux-arm-kernel@desiato.infradead.org; Tue, 11 May 2021 09:04:10 +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=6XILXutiJLtKyaS/ejDH3lflzA8lX0AXbKmUf/JbR8M=; b=mhX4LsxkdkgVsE2TsTFec2mIu4 MTN7hI2iEyusd9dsWMV52MSgreLHitKmfO7XcQSQ2uoXr5ZJxvEGiczuWat55ylTfkFnX/NUiIilR rlXpVMGfI2oU/qbFMuW5ltK1ooWjnRXdy+wLYkMnq3CDm4nR7A1c4olP0zk7PDXAIHZgsUYOv1TvA YnX5jkn2MPd3MHxj8BpiBJ0QFgLZ7uPZwhz6rqkFGqyh2/w4sAqSP4XKERFlSXXCfQGkVx+XXvbVS A2nE0kU/h32OOSAlWcQgIQqX+nVd6eIzs5JFIKzlP4Ss5B1X7x1fWIGzkKPxw+TO/SfqJVdC9FOXD ji67Kxww==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgOJ9-009PvH-Ru for linux-arm-kernel@lists.infradead.org; Tue, 11 May 2021 09:04:05 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id E1D9D6161F; Tue, 11 May 2021 09:03:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620723842; bh=pbA8eDUPg6Mq4QyVblPhji3gPa2YxilPRFhuNV14x0E=; h=From:To:Cc:Subject:Date:From; b=R/Vyn2WATe9G1aKnC5ZzQD5Fw6EVirjYxfLNyYpwUFH2O9A03wX/n9M5ayIDI0OdH tKRjQWdF1i8N/9g8Zq5cN05UEJIUvYvvqOjqVuMGHjNNzHwEMeNMwlmPdzgvzeAtDk cd6kYiRFa9R4jtk/aT6y2i7YDgS9RUCWLCAaiwQdmgTGejzafht5q8Xo/nCElmAeyM 2krDREWFRsEM2B2LVwhqLi0Id26Z5Acgp4Jsvro/k3uBnd+DrizbJ9aNqX9q4q9twV UCX2oYtAnckT+CHEGirkrLwGgglgUFpZglLaxo5TvTIKupes7cU7n/gqi+ZqbAQwrp ZKWxXw5UGfTAA== From: Arnd Bergmann To: Russell King Cc: Arnd Bergmann , Mike Rapoport , Ard Biesheuvel , Linus Walleij , Andrew Morton , Hailong Liu , Changbin Du , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: mark prepare_page_table as __init Date: Tue, 11 May 2021 11:03:13 +0200 Message-Id: <20210511090318.478586-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-20210511_020403_964881_8FB1AAD7 X-CRM114-Status: GOOD ( 12.38 ) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210511_020403_964881_8FB1AAD7 X-CRM114-Status: UNSURE ( 8.54 ) X-CRM114-Notice: Please train this message. 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. Signed-off-by: Arnd Bergmann --- 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..5220b8147f40 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 inline __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