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=-9.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 6198AC433B4 for ; Wed, 19 May 2021 23:49:31 +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 D9512610A1 for ; Wed, 19 May 2021 23:49:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D9512610A1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.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=6kGbffa+E8Iar+DYtod2Julf1DCl8vP3ISsAC52G6mY=; b=OHy9HYQgYwnL3shqjkkC8lTM5 aFhRs84w3wdWNCKe4rPI3agl0BDTZUAPeRLAdB+T5uR6I+AcswaVfr5csheJ+YKBnvX4KXiUvQ9Pm JEtI0EkoHQerp1JcScubwcclJtcvCe4z9933XsW3FSrEcWZoeeB0Ou5BsYPQ2oMWxLVWXCHA7M9rU X+t2uqLkjjdhM+rge/W4Y/fx03IV0ehG4upzpCyxQOQ4d302mg/agQe6MvoeLn0I41nleAwC3CLNo dltadTFTggFnIcn5lf2eqM3+DUlhgt8PVNMGvPdT8a6LiHlORvaG7YjvNeAUi8jc6Y4tcCipk+CbC HSVSe5WmA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1ljVuO-005NS9-HJ; Wed, 19 May 2021 23:47:24 +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 1ljVuJ-005NRo-RK for linux-arm-kernel@desiato.infradead.org; Wed, 19 May 2021 23:47:20 +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=T9oTbZIyiIaHi1iCf8hX5UcohP9vOgIE4i4KX0bQx08=; b=DBwH1H9jNxhXdaHNg7+/x6Dgjl 6wsRDWfb8u3pUyrSwgplhdau5fedEdOJggwxg0p/1/kcGtT+Zn5UGjdKuRTMe+RFc6fwWXbhMzihQ nEdNEZZ1a1pSasxkc0xxHREKIlgnq1CRifSDrabIPu/GgaGGN2arKm+dWdxxWRYveBB+hCsgfNruA Gkdsh5AX+tr8cUtv2ZGtYP+wnQ92FsLlePTa+l05qouUugb7ybIOb+DV8yhIswmYfUfomwTn9tGo9 IPyghXn5osh3Ao2oskiCX4qCVrOkN1ptyWkSy2oXFplNMyqvEGVn8yfn6OFSSGOhgbrxPefT3FdGY Pjq1Wo9g==; Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ljVuH-00Fqmn-A2 for linux-arm-kernel@lists.infradead.org; Wed, 19 May 2021 23:47:18 +0000 Received: by mail-lf1-x133.google.com with SMTP id v8so16666799lft.8 for ; Wed, 19 May 2021 16:47:15 -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=T9oTbZIyiIaHi1iCf8hX5UcohP9vOgIE4i4KX0bQx08=; b=UjGprNw4xulFbgsqqQIybEukYiuM1x0V4rdOLWAKR2E5uwxhlN0O1EYttfhMy5nfrl Fu7B+hAGiwlvHr8ch8K1TODwS5itX+ZMCfo7S58BL4rducRCh+kZOXUEUoBOfNGnroy+ wFmmT5LtsyRPw3E8zp0p2Qv/h2MJuOFGZl7aLPYGTNbRhSByp6l3owzbhjDaQYvMnj7G GFl/OQIQQWjBT9JnfhKXOb2iWFqdFGSgIqols/8CmAMS/L5Fn1dpSqKTozv1VFXIAG8C nNb+GplESaBmnuiGgWuR+u3efQlvFjQr4mbQDwuUyKnHgT05gTYB1y7mJ44foAwgqeo1 NOUA== 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=T9oTbZIyiIaHi1iCf8hX5UcohP9vOgIE4i4KX0bQx08=; b=ZSRH7iEaiHn9l9lGEKWEeD6t1eqDw3peEc6QSCcGgGScZtpqYNwfzamnOSxrDY4RJm ea5lfkwpBv8cDH3dctazhTUJeWbzms/ya2OkHtaLZ7dbrCLfh2uALo6COpZj1bl1JKda DXCbZe+uu4jzK2Qi1KcGAwwSOLdUlmt1JbR5XTaPcgL1tCA1/bNl8Fvu+8w51dta1VVF I7o/sml6ooR0RH2octsLW2Y/LHxTb1ku/xjE00ogmSPsTD5RtcPYV8r/D4+FzMkR/qjl 9azhUWMtlOPn1qIM4tWTu3V2n3Dt6whI+nYWnTrGMOYcYJO/AaBbc83hFqshP2lkBB6J qUFg== X-Gm-Message-State: AOAM533fKZSA44XWDfZLi86YLVMLQIzyHKBb7Xy82i527A3PCkpNZ3sb FzrGV8xKo+/rlV3kRNxCJrlm3efO0scu769hXDir9w== X-Google-Smtp-Source: ABdhPJyPyRZDgO6BHZT0q0XtE/fVWlYYAV6VdBFeiameE/ZjhNvAO2yWpWKTWGR2FitB3Ge5B6uXGt0C/cnIRrC8meU= X-Received: by 2002:a19:ef10:: with SMTP id n16mr1070975lfh.649.1621468033943; Wed, 19 May 2021 16:47:13 -0700 (PDT) MIME-Version: 1.0 References: <20210512090047.2069033-1-arnd@kernel.org> In-Reply-To: <20210512090047.2069033-1-arnd@kernel.org> From: Linus Walleij Date: Thu, 20 May 2021 01:47:03 +0200 Message-ID: Subject: Re: [PATCH] [v2] ARM: mark prepare_page_table as __init To: Arnd Bergmann Cc: Russell King , Arnd Bergmann , Mike Rapoport , Ard Biesheuvel , Andrew Morton , Changbin Du , Linux ARM , linux-kernel X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210519_164717_376372_644065F7 X-CRM114-Status: GOOD ( 17.29 ) 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, May 12, 2021 at 11:01 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, 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 > --- > v2: remove 'inline', as suggested by Russell and Ard Reviewed-by: Linus Walleij Yours, Linus Walleij _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel