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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F56CC433EF for ; Tue, 12 Oct 2021 07:05:52 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 2FA9D60EB4 for ; Tue, 12 Oct 2021 07:05:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2FA9D60EB4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:CC:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=S7/264yCfEQm4BR5AIXBhpTZpU0o0e43MTbZZ9r8nLM=; b=yFbql9CGBSt/2dDTMCVAqzLa1F 2wkDzGvVSMEEROUehLfa/eR9qL4CxDO6czyZgOZqlmJOCkCLW0FyMDUQL/Mb7z5GTWtPpyxpVBe18 g798QJK2941HYfJmWj8jdy3j7igs4uCZEVWKceCxs80ac8pevyszhJPHRFI01gEcxeTv/wednGDqr oMwe8KeBSreUUI39ryfZBfKrP8uiN+2lJnbmrMZPEK5uVzzl7OgY16Je9LcksBDyMSjtuSDTFYhl/ HE2pRO14peLO2XT+FlCumx/KM6mq2BeibQ2kDit64QkExMnNpz1294UOFLfPEHft1br5fU5sz3SnC yII620gw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1maBp7-00BjNv-FR; Tue, 12 Oct 2021 07:03:41 +0000 Received: from szxga03-in.huawei.com ([45.249.212.189]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1maBp3-00BjN8-H4 for linux-arm-kernel@lists.infradead.org; Tue, 12 Oct 2021 07:03:39 +0000 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4HT66m73Mzz8tbZ; Tue, 12 Oct 2021 15:02:24 +0800 (CST) Received: from dggpemm500002.china.huawei.com (7.185.36.229) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Tue, 12 Oct 2021 15:03:29 +0800 Received: from [10.174.178.247] (10.174.178.247) by dggpemm500002.china.huawei.com (7.185.36.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Tue, 12 Oct 2021 15:03:29 +0800 Subject: Re: [PATCH] acpi: arm64: fix section mismatch warning To: Arnd Bergmann , Lorenzo Pieralisi , Sudeep Holla , "Rafael J. Wysocki" , Len Brown CC: Arnd Bergmann , Catalin Marinas , Marc Zyngier , , , References: <20210927141921.1760209-1-arnd@kernel.org> From: Hanjun Guo Message-ID: <988fa24c-76d2-1c9d-9761-b356efb0576c@huawei.com> Date: Tue, 12 Oct 2021 15:03:29 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20210927141921.1760209-1-arnd@kernel.org> Content-Language: en-GB X-Originating-IP: [10.174.178.247] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm500002.china.huawei.com (7.185.36.229) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211012_000337_789093_7EB6F798 X-CRM114-Status: GOOD ( 10.60 ) 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Arnd, On 2021/9/27 22:19, Arnd Bergmann wrote: > From: Arnd Bergmann > > In a gcc-11 randconfig build I came across this warning: > > WARNING: modpost: vmlinux.o(.text.unlikely+0x2c084): Section mismatch in reference from the function next_platform_timer() to the variable .init.data:acpi_gtdt_desc > The function next_platform_timer() references > the variable __initdata acpi_gtdt_desc. > This is often because next_platform_timer lacks a __initdata > annotation or the annotation of acpi_gtdt_desc is wrong. > > This happens when next_platform_timer() fails to get inlined > despite the inline annotation. Adding '__init' solves the issue, > and it seems best to remove the 'inline' in the process seems > better anyway. There was a patch to fix this issue as well [1], but not merged yet. [1]: https://lore.kernel.org/linux-acpi/7f29a149-e005-f13f-2cc4-a9eb737107e1@huawei.com/T/ Thanks Hanjun _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel