Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2510786pxj; Mon, 17 May 2021 03:23:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9k16VtJIpJlwVMmqtIGc6JyQO9S8JdFcYVvUfyqSjCp6GqkeWH4oun7XnBC5/ZMOuSLT0 X-Received: by 2002:aa7:c782:: with SMTP id n2mr72241921eds.77.1621247031519; Mon, 17 May 2021 03:23:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621247031; cv=none; d=google.com; s=arc-20160816; b=lScU4JxH3SIlSj8kuj3UmN+vFoJBnoYGb67wtwI6ws+jBS3RlwI0Y0gqZRBzJDI0TV 2puTTli7pWfAIDnpF1XGKufh/laf0ZxY/vThQBaV5njOSCgU8W+UW+QALV/vuLC9rltj kkJMDjZuo0Ii5XjhJ1Ii8/cDe5jk72BskMjC2yzW1GThDNhkryCD127z4knSFFLk0FMj awFI6xsTrUrjGbPbex7/VCGJRE6ur10SPyV4Pvgt/8sIP5EPs49dxBMQtKQ1kv/AB9F1 CPLAEWBuX53Ity39VX/eqpViwnmN7yE+Xy9eoWk1RNl3aWYrRAjKUJ1J29coZwiDuvCN LFQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=GAW9u6WixqqPIeGw05JLtcm5cUUUK2Xv8xLSrk94EGQ=; b=q2ln4lL/q0HWtsOASxrb75O8YXoXO6mKWMNfQ2MuWWxi+qeJjoLR2ykNEz2JmT9P18 3RChgMzmS42Ja/bVG6WQW9TDaPDsSOfr2T/HYBLm8DYMqu7PzcLRAiTUsD6SyMatG3Sl trKUF/xgVsGVSFABAyyHz5GScdCCuQXA/D86weLSeSd0JppW3sad7xBFJLRXhZTVTnN+ Tm55ke/u8nZhoWwy7QyGByztB3T0GIO27gZq98hjcEs5+5RoIR6JMYrkqyZDjXbO0oAC 2r6Wzvh4XmgQRTMEP56eQ9a50Iuqay+ui3Hxunixx8ZUORTsXmzJdjw/6W6qB77Ttau2 AjRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H7Kheoim; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n3si5469069edo.13.2021.05.17.03.23.27; Mon, 17 May 2021 03:23:51 -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=@linaro.org header.s=google header.b=H7Kheoim; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236319AbhEQKX2 (ORCPT + 99 others); Mon, 17 May 2021 06:23:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230248AbhEQKX1 (ORCPT ); Mon, 17 May 2021 06:23:27 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1C5DC061573 for ; Mon, 17 May 2021 03:22:11 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id j6so5326792lfr.11 for ; Mon, 17 May 2021 03:22:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GAW9u6WixqqPIeGw05JLtcm5cUUUK2Xv8xLSrk94EGQ=; b=H7Kheoimq2vnIYcfEU57WPjOJJCza2qo7ZnqMBjedS3mI69AhkeDkp56BsF+92Srxd bdnAiXfx+GvrsTEd0hb7EsTQHmL7cSiy/n4bii7ZLR14Bco6a3qJtFY5jLkrhpVWWzqg bLkH+5wQTwnl7rQF+E7rGZp0C2p/tXrlnW54J5ai9cora/NOEdaA+T1p6LZn7c01ejsC qbwgNVj6gLopAq47YD+oc9VQ8ULjGpg6lNvbpJ3JvPpgocfvHcXa2v7NtEnsPXXlhuSB vWhM/+YtNe35RviL0CEA5wOCTpKcwYpKHYEGesN+jKpkQKChYwqidduSn8Q+ty0suaeC eppA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GAW9u6WixqqPIeGw05JLtcm5cUUUK2Xv8xLSrk94EGQ=; b=Z8ERTGCZAz4IhOYHssMk7/I7/Vn4fyPI6mfScIk0ESSKMqsf1f/fEEy4cAKY4EOQnw mPH25Zy3RZw4kljTax+3WRaU5GP2js/4F/iKKnnim2ShsAV7+qutGPF18MzFQaz3UPF5 PTLiDygKo29UqeU92rlw099qhENgaDuL0Bi/ahkbc984FBdMANJ/2dz4nKB3B1zLLdy7 VqMpZ2qj66A8J44PNk/KmCaeZHCr4CQaCzIYbRQzXoFQH50i2ij2wBS2Wg7F+nQRZRrM OW2jw6Uh4gTAWAggs1/Yy5lJV/Kw3IY8N215qmes3RxMRtAKdZggs555xx5fZ/WoZOIU GZ9A== X-Gm-Message-State: AOAM532JQ7+lZ+vTq+MhkdSZAevklR5shV0MLREA86yLe8/O3VCaGgxP xkOVMsd046JWYz3QQqw2v51ujowfZzvsVopw0cD+Wg== X-Received: by 2002:a05:6512:49b:: with SMTP id v27mr12770921lfq.29.1621246930198; Mon, 17 May 2021 03:22:10 -0700 (PDT) MIME-Version: 1.0 References: <20210511090318.478586-1-arnd@kernel.org> In-Reply-To: <20210511090318.478586-1-arnd@kernel.org> From: Linus Walleij Date: Mon, 17 May 2021 12:21:59 +0200 Message-ID: Subject: Re: [PATCH] ARM: mark prepare_page_table as __init To: Arnd Bergmann Cc: Russell King , Arnd Bergmann , Mike Rapoport , Ard Biesheuvel , Andrew Morton , Hailong Liu , Changbin Du , Linux ARM , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 11, 2021 at 11:04 AM 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. > > Signed-off-by: Arnd Bergmann Like the others say, drop inline, with that: Reviewed-by: Linus Walleij Yours, Linus Walleij