Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2606995pxb; Tue, 12 Oct 2021 09:48:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGWgcENtUQPod6eDhyVe6LJKTW7rHjEO74fVqAgdgVb42HzQzSV7vb/8YpvYjwPTOS11Tx X-Received: by 2002:a17:903:283:b0:13e:f38c:2282 with SMTP id j3-20020a170903028300b0013ef38c2282mr30090715plr.82.1634057302556; Tue, 12 Oct 2021 09:48:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634057302; cv=none; d=google.com; s=arc-20160816; b=LcaERVGAiUTgUsMPMAO47gkGtjLthzRAnq4MusE8IGeOqSYsLk8qatZRA2h5SH6Fat NWbAFVa2eC1FdRBBqFlmwtUTadwtzdzzyDUl0/awiR05f3/dYXD3Oq8yi++ZctTGHWTk tuqIbgrKxLxqaCn1WlvCsT05bq1Wd40RhojlhgB8jM1+fCpm7dpAaND6nQVpiTwKdY3L 2qEm3bBm8ooVmjjZ6hdsghmKfV5bHNgj2uwt2Tx3reg1iLL+vQdFCYyJaJJarpvYkhYJ NHlqIHrzDuFPckpk2b4IneUonOlznYPTGFjmExreAdY4sqwWMihb7S6vqTEz+HLLnw1w PBBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=X3S6nEi/gt5x2ZovePrzWUOH14K1ydSY59+TCDNAkqQ=; b=ePn1c5ybGhVAyVptAkQ45TjOMhr2WRovcF/sf5KkeuynM4XM+bwOq821e7Gv5ir5R4 qk3jReAhnN02mhL6dPc8ydtrn175R4HPzE7UQuqncrJ4eEtipOTGUsfbxj/66Yr9hong cZ5u4ueKyDJN8Il8+Hqk0rehPoXdBApTreA698AymIBpS78iLcmaU338lyk2EzxbN7PX 7v5XJEL3eT9FdrZ11HCfQ/nKcixpM6gQ3nuJsGzqQgg4vyCZ7voqjT1KdOmHKKmhyumf cXEBPdYZxJFcx+NhDDOaqxwyhI8XOJvPMxc7JSGnm7kVgwBBirgRn3EQR0bgZGJ68mGN ufag== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u10si15653582pgp.253.2021.10.12.09.48.08; Tue, 12 Oct 2021 09:48:22 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229510AbhJLQrt (ORCPT + 99 others); Tue, 12 Oct 2021 12:47:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:55142 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231622AbhJLQrk (ORCPT ); Tue, 12 Oct 2021 12:47:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D801A601FA; Tue, 12 Oct 2021 16:45:36 +0000 (UTC) Date: Tue, 12 Oct 2021 17:45:33 +0100 From: Catalin Marinas To: "Rafael J. Wysocki" Cc: Arnd Bergmann , Hanjun Guo , Lorenzo Pieralisi , Sudeep Holla , Len Brown , Arnd Bergmann , Marc Zyngier , ACPI Devel Maling List , Linux ARM , Linux Kernel Mailing List 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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 12, 2021 at 04:16:09PM +0200, Rafael J. Wysocki wrote: > On Tue, Oct 12, 2021 at 9:20 AM Arnd Bergmann wrote: > > > > On Tue, Oct 12, 2021 at 9:03 AM Hanjun Guo wrote: > > > 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/ > > > > Right, either of those patches should be fine. > > > > Rafael, can you pick one of them up? > > I can, but arm54 ACPI changes go in via arm64 as a rule. Queued as https://git.kernel.org/arm64/c/596143e3aec3 -- Catalin