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 A348BC433F5 for ; Mon, 27 Sep 2021 14:21:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 708CB60F46 for ; Mon, 27 Sep 2021 14:21:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 708CB60F46 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=7ak8S2xMPGXWy4H+hERvMOwkG+qcLGCQkUncakNPuDQ=; b=HH47VgBuJa/Xer /zo8O4bZlC0jR43jMcVwVANcrBHf/KAIUN0X76UiQ+jHOXsXdUluASnlvukI/VE7eiTecTgIWABH9 OEZ+LboNY27rPa9ZOYgtx3eHnOdYgB92Z0M0iiAcaiEydktI2B64t5ZY1Mv5eGLvSquvYXYnWH+pj DtVEw5xwoiq37qMEylXUmPC8MCN3tNkjlXbgAsxJ4QlZO95keMlA/yL+8/Pf4T4iNo9HwPp+u+UEf chyZE+SbRFrBasG7lg2gdN3UEcdvs2PP3YNlnVOTSwU+ZhfrQ9RpDJx7enUdFAxzBVaegV3HfdXL7 DMu9/0qF/I1KwKxFHZ9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mUrTd-002seH-Hn; Mon, 27 Sep 2021 14:19:29 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mUrTa-002sdj-Cf for linux-arm-kernel@lists.infradead.org; Mon, 27 Sep 2021 14:19:27 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0F24060F46; Mon, 27 Sep 2021 14:19:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632752366; bh=5kMOQOUkx1xtG9jmMqZdHT5odd4WM6bFcjvYnw7ZgQc=; h=From:To:Cc:Subject:Date:From; b=WbHPGtF3SakJPF5u2KRwcuzkmC0EQhIjo4OVMzQocu1T46FIshSgwoc5TiLffiJj0 y+TdOq+FeXK1bij8WvQC4Gb64kJoixYkN8uHvXSdkAxImsxiXERQWU+gxcd0rqTwQv WCNJd7CKr9c+oCrw8rvTE/PLwIXzmCgymqbR1OyCLoyhA+XcEF4u2oFvHkR/Bv703B +IkAp7SlLNipT22bLkE4ogDQasqxcadV4BuWMWSVP2iQ9g2CDxyuBG4kJe7K5e02NI DO5mmZq1nm4zF1EzcdsQlsY85n8Dl3+enEJycc/vEe6nJHMv94X2lIF3ai6IceMpgA qsHvGeFYnuXAQ== From: Arnd Bergmann To: Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , "Rafael J. Wysocki" , Len Brown Cc: Arnd Bergmann , Catalin Marinas , Marc Zyngier , linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] acpi: arm64: fix section mismatch warning Date: Mon, 27 Sep 2021 16:19:14 +0200 Message-Id: <20210927141921.1760209-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210927_071926_471623_B2A56861 X-CRM114-Status: GOOD ( 12.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. Signed-off-by: Arnd Bergmann --- drivers/acpi/arm64/gtdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/arm64/gtdt.c b/drivers/acpi/arm64/gtdt.c index 0a0a982f9c28..c3ad42470a7c 100644 --- a/drivers/acpi/arm64/gtdt.c +++ b/drivers/acpi/arm64/gtdt.c @@ -36,7 +36,7 @@ struct acpi_gtdt_descriptor { static struct acpi_gtdt_descriptor acpi_gtdt_desc __initdata; -static inline void *next_platform_timer(void *platform_timer) +static __init void *next_platform_timer(void *platform_timer) { struct acpi_gtdt_header *gh = platform_timer; -- 2.29.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel