Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2169829pxb; Tue, 12 Oct 2021 00:22:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJ6uV5WZuY4i5fxeEOI02TtRvO1x9ir/zY7ZPSUBMMUYUTxxJz3GjeGDAgVbjSc7sbdNN7 X-Received: by 2002:a62:15c6:0:b0:44c:74b7:14f5 with SMTP id 189-20020a6215c6000000b0044c74b714f5mr29887749pfv.80.1634023334913; Tue, 12 Oct 2021 00:22:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634023334; cv=none; d=google.com; s=arc-20160816; b=mn55e4kahjDH6VHsGbuvVxxnrni8FDJPDnyV0cvVjMfL9FI+FJ6zFOggIWTcyEKRFY FCp4XZbnqNQB4+LDESfIhRTCMxtSXcc+elYLmhCQyj+0+lRnZrDHqti2ETIu6FLmfSU8 Uk5PqEicjbhP7GBvunwv4Fq/AsxWE2sXPdNw7PaBbxJsMuxieZ1VCZJeeg3yTPEK/ITm UrkGqvrO2i426pBPkaDcwr3KZSdaeIwv9oh54Cbl5sZU/DyHy7lVqlhfWvVbAbMpjyMR ntSJ2EgJs+EkSpADp96nr8xxOpvOZ4fBM91TuxcTlKkV3ActJE2n1v1t0nQJeQbUG+3r dw0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=A6YFK4VMT+LlkvmnAddBTIfpvAVaUp1IEfxUcMaqNOY=; b=Zklg4TwtRIngeayUswRusTWYgR1ngBTEjLJAdDWtbtWP9ah2CfaI5u96d0XgdoxSAE x+kE5LowId7gCtW9U0yrTU+IsmD5oaFfncvoh6ijSa7TnPoUYCukSgT9t+hRBfTTAm40 yIDiq5tymN0c0W3T+YHBAFmysnV0evd4J4A/pUyTCCSgk2tEftXH04zNPLipqZHLr9bX 6Usvfu/CNB/Amz05wwbK8ChQnuU2nHFRUqBWNVDRzz8FWu2nZtImkeBVjuN6595kY4WS OFk4EXtgGu1HmTfW5ANgVA6bxqKYKLBP8b7XrKudDwCF+Dx4UHpaBhycg47qi5cx3079 SXFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ULzzgcQR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h8si2838774pjq.2.2021.10.12.00.22.01; Tue, 12 Oct 2021 00:22:14 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ULzzgcQR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233658AbhJLHW6 (ORCPT + 99 others); Tue, 12 Oct 2021 03:22:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:47514 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233507AbhJLHWz (ORCPT ); Tue, 12 Oct 2021 03:22:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 360266109E; Tue, 12 Oct 2021 07:20:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634023254; bh=8jaIstSCV92d2Xt7MjVnIrZ+TWYeRa/yWVKjnGK6Ftc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ULzzgcQRRkfT7/FxruT42ePHeHsCOGgMzUC+j0GBdmvoPq0BlepZ8CN8RLkKLYDAL ziHwFEtHvZsBFPzBA+UhynS32skfrAKVOc33gbTgjN/uNo/aOLhOHo82+b8CMp9Xos bcoCbxaPhD5MGwjEj4wIWQFNmzfFVkiV0o0hRizl/lNyOf443LiMwwkac0PQ6poIuK Z1BYmBm95i9/u9Ma7x8RcgdgPAEQC0C3TE/mRToFQyvdr09N31UaZnMDP507q0gA0x CrmDBs128fruP3m8KYnDQjfCD7qHKiYodmE4IUe16OXBPfnK/d0J0FBvHlNARwNUm2 MPl4txxXToOiw== Received: by mail-wr1-f45.google.com with SMTP id e3so30196657wrc.11; Tue, 12 Oct 2021 00:20:54 -0700 (PDT) X-Gm-Message-State: AOAM531O4dC2RiRTVTXNn553eFVvOaXGl7/5FESYrakMVBk8ya3QW0xe 93Trp2ujgmExpdSKbmlS6nnu4Aum/TWelJUrNvs= X-Received: by 2002:a05:600c:1548:: with SMTP id f8mr3855879wmg.35.1634023252673; Tue, 12 Oct 2021 00:20:52 -0700 (PDT) MIME-Version: 1.0 References: <20210927141921.1760209-1-arnd@kernel.org> <988fa24c-76d2-1c9d-9761-b356efb0576c@huawei.com> In-Reply-To: <988fa24c-76d2-1c9d-9761-b356efb0576c@huawei.com> From: Arnd Bergmann Date: Tue, 12 Oct 2021 09:20:36 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] acpi: arm64: fix section mismatch warning To: Hanjun Guo Cc: Lorenzo Pieralisi , Sudeep Holla , "Rafael J. Wysocki" , Len Brown , Arnd Bergmann , Catalin Marinas , Marc Zyngier , ACPI Devel Maling List , Linux ARM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Arnd