Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3338545pxj; Tue, 11 May 2021 02:06:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1yaVDlCdM1oFy0r+T67ulH9Er/Oo/jD05gCQgFjIpj3TFX+urw/78L0tzbDLjHv+4CsQK X-Received: by 2002:a6b:dc06:: with SMTP id s6mr21801077ioc.130.1620723983795; Tue, 11 May 2021 02:06:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620723983; cv=none; d=google.com; s=arc-20160816; b=fIQ98Rkl8Twg4ugLJlF2OUSdSKx8uVmrI2G466fIwgfxD9N8knnYngoInQieg9CGGO te+VVDA7eUP4MunVRVufSJjdZCJbcO4yT8rWsRh7D8x66bWOrIwaWl26/Mcb//3P2GJ9 zMmUMiiKI1PuFkKrQQTVkJM4r4t/FQL5v+LHlY2SLbpzTYoz55uMNFhVEyeFni08L+6R VNF8arSH7HzAB5V0it5AjUGm2NirCmpzQJhOVli2/GBVcXEErcIQ7eMNQdwI3PP+5FrN vXtvgacEO+SCYG8AqsMehqL/OmEfN5P4p+Va//806d0ziNlgzkbZ/gZxFOnlAx1eEA57 nc+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=6XILXutiJLtKyaS/ejDH3lflzA8lX0AXbKmUf/JbR8M=; b=Z95suVBcny03xm7MxeJYaoYtG9WOFQRRC+2k7cxPlfmEOOC/8/RSwZWTDK1I4MEZKR LjBmn8n+2uqQ3xzqqxR0XIOJOHhqiClkqki3IXhpYKOTfmJ9T4V/jyN0mnJhu6HDTWKq FIhIvjR4SZ/m2xqm9WaUrBcdJ2epbXwOWD+Qe61Wx1uUDa4E7/qvsP6fzB+8Tx/ltYB3 6gCmyNcbm0dL1Mj97HdJIL96jWxmRJAOjv4zr6xSU+Zo1jsOQFKdZbeuE4NcWtrFM6K6 CzgbKKK2G0l5JnCLrWNyR/L1ILcOYUC7N/4itBPdghbFWENW2FxdI1o2s0JPtJcXrWEH yk+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="R/Vyn2WA"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j1si18321054ilo.38.2021.05.11.02.06.11; Tue, 11 May 2021 02:06:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="R/Vyn2WA"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231221AbhEKJFI (ORCPT + 99 others); Tue, 11 May 2021 05:05:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:59176 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230445AbhEKJFI (ORCPT ); Tue, 11 May 2021 05:05:08 -0400 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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