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 A7D25C433EF for ; Tue, 12 Oct 2021 07:03:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8B3A860EB4 for ; Tue, 12 Oct 2021 07:03:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233553AbhJLHFf (ORCPT ); Tue, 12 Oct 2021 03:05:35 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:25176 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232499AbhJLHFd (ORCPT ); Tue, 12 Oct 2021 03:05:33 -0400 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-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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