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=-14.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 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 9C34AC433B4 for ; Wed, 12 May 2021 12:38:38 +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 E72F9600CC for ; Wed, 12 May 2021 12:38:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E72F9600CC 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:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=xBvyrXacvk0/z1/QR5sCjeax8xu9Sa/M3WbQ5O9kzME=; b=ds+c8TXJCfKHRZP+LwD4AtTgw z7bf4Fh89MiXETbPKXiZ0Kykw9qeaRjsYmjo1r276LlxqRR4JmltUNp1FdTUejac62oYRKPQpOS/p fozxouWZs9HeFmdukCaDXZ9KSKiumHy5CjLepySHjPeJuvE9Wo6g0HID3eBKJzIbYUHhmipIRGGZa +BS8l4rTTeAZHFuPF2FGF6KLZxwp85Z2awV3qFzu4H2zAQXWZiROZkx9YK13UVEKeXcH097ifC6zR 1pWoge+eGwns/SeusxrwwLJGIeb7a26QDexqczHlCNcarLp60YS7U6hZG2Gb0oCJJGXwInrN9BJ20 SQf7wEwKA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgo74-002l9m-4y; Wed, 12 May 2021 12:37:18 +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 1lgo72-002l9c-18 for linux-arm-kernel@desiato.infradead.org; Wed, 12 May 2021 12:37:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=1hvrwMEbL8PdOISl8Ke4Tw1BCFS6mhINbv4NcZwq73A=; b=QzO9Rzuv0+5vlMUQZzlXDQZUci a7YME2hEYG0u2Hn6b2zz9A3yMvxtHU9rpIZBHVs3R6EYanwtFNycs5weI+0dru3c1/3k0qhYICj4Y WqUN2AlOgxms5CEENHZrsSlmrzxRrSc60/pImSnR0f9M8aObnYNRYi+74ALP9jc6xHXIvP0+GjHIW 2d3Y97Xt/UDSF7NV+DCYOZTwC5kTmUtpBgHTtbQHkMIrc/cP2nmfMeWqy3VHuMSBEHlPlHYGaL2jT Lvz0JyDu7yUPUghzU4Tk/yCe57yVBm6PEBUIkPrq14H0X3bORdIvfZSHXCt2makC/WiUz5PLt1cGG 8TuzNJ8Q==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgo6z-00ALdf-Gu for linux-arm-kernel@lists.infradead.org; Wed, 12 May 2021 12:37:14 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id EBB34613F8 for ; Wed, 12 May 2021 12:37:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620823033; bh=XkOhrOWbN9AlYoHRLs0Z4W6MIbYTlTq+5/csJR2U03A=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=t3bGUj80jB8H9p4PREvCYiG4tWPnv6JRlOjATU9c5/ex3XJq+UyMYKn1OVa0phTR5 XHH+UY/FbEdTcki5qBmufoWDFxHLTQsudfsxZ+JSugKHC0YUUt8cNxxOpPYUna+RAe OL7d4+4aOENJXqGKlRAWZtiFqgXW7/wGZN9GZC1NY4KGddecaAMMA5ZP+xCpctEeeD tQ3bdG7IgxyYGhsdmSK2Xapx562PcMhfl5HGMJIgI7P7nXYFlhyWGOfO4Z0hd7BRW6 F644u2AgRj2ynO6S+mpN40Gk4OKWIQdiIFzHME4bZy6THx1ne87JRypHRbrqSkWENj wJZPkZxde3AIQ== Received: by mail-oo1-f48.google.com with SMTP id s1-20020a4ac1010000b02901cfd9170ce2so4898796oop.12 for ; Wed, 12 May 2021 05:37:12 -0700 (PDT) X-Gm-Message-State: AOAM532Sp+0baKyTGKACgIfL9UzEcUugOat0kva5CZ0lIQwWxY6J0h6b 3czkMzpsH9CMFh03zzIVoX/EQloqNxK1azm/rZY= X-Google-Smtp-Source: ABdhPJyDJ7BgqLKYiSXC59m2GFplOiaAnO5/BuuTIvDmpCdFpzwnsYtfZSDUJz0LA73a/vGe9quNnNZR1/9Jrx+x5W4= X-Received: by 2002:a4a:8706:: with SMTP id z6mr9894765ooh.41.1620823032122; Wed, 12 May 2021 05:37:12 -0700 (PDT) MIME-Version: 1.0 References: <20210512090047.2069033-1-arnd@kernel.org> In-Reply-To: <20210512090047.2069033-1-arnd@kernel.org> From: Ard Biesheuvel Date: Wed, 12 May 2021 14:37:01 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] [v2] ARM: mark prepare_page_table as __init To: Arnd Bergmann Cc: Russell King , Arnd Bergmann , Mike Rapoport , Linus Walleij , Andrew Morton , Changbin Du , Linux ARM , Linux Kernel Mailing List X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210512_053713_618657_54CFCC74 X-CRM114-Status: GOOD ( 23.82 ) 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 On Wed, 12 May 2021 at 11:01, Arnd Bergmann wrote: > > 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 Acked-by: Ard Biesheuvel > --- > 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