Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2161968pxb; Tue, 12 Oct 2021 00:07:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4ejw6N5ybompUyn72fMTcglEDJ/fbclAvA7LKtxU1pStR0Mx2YAts9ATTbpoEUPKKXTIL X-Received: by 2002:a17:907:6283:: with SMTP id nd3mr30266407ejc.362.1634022473412; Tue, 12 Oct 2021 00:07:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634022473; cv=none; d=google.com; s=arc-20160816; b=DbLVrFLziIFcPP0ln1hGyja+zHYS+Lsigc3DqpPLP5xYadUSIuWcOeLG1c02mMStmo e0sXKOJMs+5/6dMJIL1i/eYU+JF7Oyj81AzNlCwOPZDwbb7r6o3h2cIh75qT/20U9UYO Wbz0aqbxYqg+XRyIcsQskxxPoFYctzFiITxoxbS4L0kuYquw2g1XPRRYg9VtfmghzAjc 7LoxJJ2i+q58QEQszG3As6qwCumSIPz8Huv03oQ7Cax/eSX7HSmC+8zCJ7EknHYjzsie 2FeWWLd9JWFNxAnaZMtuVg9409NRhIhD1arL1y7G6PAkSmc1UUFE5zJMTtKlzITZZ9K4 NIuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=9iIlMKpzfy3JJ4cnlNjgV4bb4/bVzIJlhajsq+OtjM4=; b=Lb+nWMTRzqy+S/Ivg8Zd5N0EyYyxpM5BKbfcn6TyphTevq6VWkcaBmE/3ypdzwMjbh 2Hwsf1q5wsDUbcp5cYFkRV/paP36p9AyEW31Acv1MGvLmSfEN0O3Y3DpWqpLQhUwjjku MAhGxp9L10MQf/QrvDMO8IMay+2BaWRDQOKKDOYUXQ/AL7Heh27N0DKUA0Cowof0GArF Rx4c2hJQdVj/vG7piLl27wSBTlnYLi8E/StJohZR6UQR2QTcci02XZsCVfLqalrCsKed k1/vVSBRAfasAanMOgQOuFs3kOfSu7EbAposQHBO0RMpkNqnpHDkaSKYXFKviYZ0/H+Q ZUIA== 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=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d1si3145685edm.449.2021.10.12.00.07.30; Tue, 12 Oct 2021 00:07:53 -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=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233456AbhJLHFe (ORCPT + 99 others); Tue, 12 Oct 2021 03:05:34 -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