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=-6.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no 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 B137CC43461 for ; Tue, 11 May 2021 14:42:27 +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 610B861396 for ; Tue, 11 May 2021 14:42:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 610B861396 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=armlinux.org.uk 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:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=y3nlIP4wArce7iZBrSERhm+KR2QcsJ+8bKwYV3Jy2gQ=; b=cxkmwaMDyOyLsGO+ARzCvmksA 8gutdmt6lttgC8B2xux29X3B4kGKSRiMcLi8zfnfzEDq990dI5uUJFmdPaYeg5Tev99jv3V8KHfPQ /vQ92ymeG8B8hy/qqwornd06QjNdTFwkR2LLa7fvWjrgeMir8fWPtbusJg2XHwif6GXiKclTMZCjM QmpRKLppUko0cHqF9JisgO/YxDeKYWLzoEuiqCfWPzYe4U4JYWg763rXvxZC9//HMLDziGGXimyp7 eKqm4JGQERsbycU+ueIsIj+Lw87EDtISr9txgSZxCBSrsPUFZ6V+p/QOqKqGFv4Cs/G2NDfi6olJR 45Nym9NwA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgTYj-000SuU-FR; Tue, 11 May 2021 14:40:29 +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 1lgTYf-000Stx-1o for linux-arm-kernel@desiato.infradead.org; Tue, 11 May 2021 14:40:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=DiD4PYOAZotxD7EMjb8IDN4lhvwYB03jaL8Cc5l1R6Q=; b=hGo6EWkoGkuCEais/aIGS4Ya2Z +ky4zOorcLibgxinY6goxBfodXJEUOCPmtk33WiOw6Vic9yLe+lj1ONv23Et9a/ncu0avUwUyN6HN VDKEPsQBX/r+EI+TwdhXsXuo57oS/L3Mnlq/mbLuclKarFVwv26r0xMfHDK19YT7a/LBIKHlSJfcG +wIyH6RnUQopWISVxfX9Zu6JhYH4zDg/mlcAc5e74KxRfmEouldQRUeR3PRx4mclwvuXbuczTugr4 M/KFbgXECf7B3NXSPj2GPb2ZpEuHqaNRvON8p7++sJLpRiViNlyrnBzTK/DV9Nj20YJRScqj8rNyi S8vLI+2A==; Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgTYc-009g9S-9w for linux-arm-kernel@lists.infradead.org; Tue, 11 May 2021 14:40:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=DiD4PYOAZotxD7EMjb8IDN4lhvwYB03jaL8Cc5l1R6Q=; b=GRda7b/YKuTLA3kQQ1V0ii2hF Vyr6MijmBwewwfRTyzYiQxUAsPAC/QcBrBGj9xz4yIKXo3jqbvwSedLcSoL/WsYTGiKTYA/1UYNlN kFTpld5NAFtSs/RlTtlL8ZjORLV7y2PFEq8Y4vKlS6dDXkhZnTny1yMxdVK7clS5rNR5t1RXp1VY5 7MKTlR95RtFiKxl9YqQODD7AooNO/8L2H9Z63zSwtLc1UyRr2W6xedkoPVaRUZIaLDxwAHsf8QQVS gLwnXqczqH2yttPwo5HB+pkN4TM2Yihapy9uVY2p4Gx3O0j6K4ZmvOPN6FLvbDx1clByY0qGT3kdE JawHGxubA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:43860) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lgTWI-0002jF-NN; Tue, 11 May 2021 15:37:58 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1lgTWD-00019C-4d; Tue, 11 May 2021 15:37:53 +0100 Date: Tue, 11 May 2021 15:37:53 +0100 From: Russell King - ARM Linux admin To: Arnd Bergmann 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: Re: [PATCH] ARM: mark prepare_page_table as __init Message-ID: <20210511143752.GK1336@shell.armlinux.org.uk> References: <20210511090318.478586-1-arnd@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210511090318.478586-1-arnd@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210511_074022_363604_5CB260C5 X-CRM114-Status: GOOD ( 15.62 ) 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 Tue, May 11, 2021 at 11:03:13AM +0200, 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. I think if we're doing this, it would probably also be a good idea to drop the "inline" as well, and just let the compiler decide? -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel