Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3249989pxb; Wed, 13 Oct 2021 02:05:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7VkBwVw5HB9ykag/nmoNJIKfMACvkXboB7NRlBkc0bt7A+e4TaLhQAPfG8dKSX2EEYrD5 X-Received: by 2002:a05:6a00:ac6:b029:374:a33b:a74 with SMTP id c6-20020a056a000ac6b0290374a33b0a74mr37048423pfl.51.1634115912257; Wed, 13 Oct 2021 02:05:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634115912; cv=none; d=google.com; s=arc-20160816; b=qlI4C+r6NeckuCbHzB5S58YXu42u4mWTAZthcP07oIF6+RzotpXahR4IemALjTbKVR Xtc1od1Zz0Fq61iqX/YflruWvG+BKiP2PHr/bX1gYmE8ZlJA3mfoBi/233ArN+nrYvsR D0mqhtnyeHSFiynK9t5RJXaQvUjhfNHDmalIpKUfvMW6vQM6C+GV8sgWjpC0cdCJi1ds 5lePIBZCqfj4Uk2wTCsbNFp9qBB98mH3Gv0XMqz9eswJm02bZ2uw8q0+qtuJPrXHUH8T 5ZHGX3LPFiz/Podt42am8bYvkGsPedIA/rNGCdi7X73jd9w/VVxCRlV0QnoQuzG8hcqV HFDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=0QQV17zgXD8BCn59ux+MAvqR5nG9H5DLDEGuFOd8mzw=; b=i94wk71WvG/15VAilOCkFx2Ecx57AVssFJQOQZzXH6PAcs5VNo75MaXjQrRkpMAamd CZoDbVTsQmDEWWqfgCby6KrAYREORlCAFtQmvP5gJA/Fc2N8FFrM1IH5KG5Djvd9eruU v9vYcjIhUIa0akk3FSYtbNHtuzd19JBQY2WVIYE8PVIofWfES7JesAHrd8Z3zNMrO8+k kS9Rawtog1fJB8MWaOP3KRBKDE9muzw05Rc8hkhSrX5CaDNWsI4jP0WvkvXXa9XLrCn+ UzfXknwYniwIz5KgSCM13+W+rMFS7Hc2DcvjsgpHKHQ4y7b0RztYHs4bPxSnvxOzLndB mydg== 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 o22si29569476pgu.544.2021.10.13.02.04.57; Wed, 13 Oct 2021 02:05:12 -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 S238932AbhJMJFF (ORCPT + 99 others); Wed, 13 Oct 2021 05:05:05 -0400 Received: from foss.arm.com ([217.140.110.172]:57444 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234117AbhJMJFE (ORCPT ); Wed, 13 Oct 2021 05:05:04 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 34C2BED1; Wed, 13 Oct 2021 02:03:01 -0700 (PDT) Received: from lpieralisi (e121166-lin.cambridge.arm.com [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BC43E3F70D; Wed, 13 Oct 2021 02:02:59 -0700 (PDT) Date: Wed, 13 Oct 2021 10:02:54 +0100 From: Lorenzo Pieralisi To: Hanjun Guo Cc: Arnd Bergmann , Sudeep Holla , "Rafael J. Wysocki" , Len Brown , Arnd Bergmann , Catalin Marinas , 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: <20211013090254.GA9901@lpieralisi> 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> User-Agent: Mutt/1.9.4 (2018-02-28) 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/ My bad, we did not coordinate well - I noticed your Acked-by but as a rule we should also CC LAKML and Catalin/Will (if they aren't CCed) on the reply to make sure they can actually see it. Lorenzo