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 57D22C433F5 for ; Tue, 12 Oct 2021 16:30:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3DA6B60E05 for ; Tue, 12 Oct 2021 16:30:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231165AbhJLQcn (ORCPT ); Tue, 12 Oct 2021 12:32:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:33540 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229495AbhJLQcl (ORCPT ); Tue, 12 Oct 2021 12:32:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 447F761074; Tue, 12 Oct 2021 16:30:38 +0000 (UTC) Date: Tue, 12 Oct 2021 17:30:34 +0100 From: Catalin Marinas To: Hanjun Guo Cc: Arnd Bergmann , Lorenzo Pieralisi , Sudeep Holla , "Rafael J. Wysocki" , Len Brown , Arnd Bergmann , Marc Zyngier , linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] acpi: arm64: fix section mismatch warning Message-ID: References: <20210927141921.1760209-1-arnd@kernel.org> <988fa24c-76d2-1c9d-9761-b356efb0576c@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <988fa24c-76d2-1c9d-9761-b356efb0576c@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 12, 2021 at 03:03:29PM +0800, Hanjun Guo wrote: > 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/ I haven't seen this one, it was on linux-acpi list which I don't follow. I usually rely you, Lorenzo or Sudeep to ack such patches and cc Will/me. -- Catalin