From patchwork Mon Sep 27 14:19:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 514720 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp4166099jao; Mon, 27 Sep 2021 07:19:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxA7vea0NGgGdZtKSV2AfQ7hfnCkaqvXroOH6/Y8pK8Gbz6fcbvKyPSq21upxJ5czWFMq9r X-Received: by 2002:aa7:9816:0:b0:447:bdf9:eac2 with SMTP id e22-20020aa79816000000b00447bdf9eac2mr169320pfl.31.1632752367729; Mon, 27 Sep 2021 07:19:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632752367; cv=none; d=google.com; s=arc-20160816; b=AToiiM0q9fsSsULo4zhG/Tscrrb/reqc1JPFRwbCNMV0i510TqbNpB68k3o+VlIXNJ 2pjd7Fwx3OfT2PahWtcT1s4UhpzR2OjHvZjyQShIupzD1yA6z18X6a/0y6h72bhNbZcC oXKYtPgR/6fP7DVl/HC3YxBWdOvLZaGtnKSUWJMtWJ/Jfj4s7REuEduU6c6rVEZ8Tp5t o77a1bsxQoI6QlYk7Y/zWDOYYOHbjjRX7evfSGjv2ibI5DVZYlE3VvDYPDtaTKg1CFDU EDhvCvtpWYLbQjug0POsL338eqCM69bNNHEpOgY6m9I94pGV4jQyRTX6itsR334k6aZ/ G0Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=SZ1PPAskqQjdEJBgFmXH665JGe7niPMWagPycQsPl3Y=; b=AM7lkY60bMOwn3eYyXixq+LiTkqEoeTrLJWR51FYd8FA6U7HTDssfJARZ29EjVGpx7 gbdtyrRS9P9F0JEQXH3b8EdndccJ6oL+GnEgp+sPGNNU7x7s4Ild2QIxQuRahB3vXFtH UEL99A4xNRcfJUexcXytXJbf6G1jl4FIPAwpZPD4LdpGyTg9uUc9jsqWziVB89TPycYH djBScTIFYQTQjrTqmcSyr2auRd39PesrwHkxxNbIIjtHM6uVAcCIbXUurkEDQjxEwINW GNS9rCnQ+XLiK9hq1XA01M+LrZAISFTK70uYUFKmQtIYPVHMQ1adKdu9gD68sumQtTh9 azUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WbHPGtF3; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-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 z19si21675616pgj.281.2021.09.27.07.19.27; Mon, 27 Sep 2021 07:19:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-acpi-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=WbHPGtF3; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-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 S234679AbhI0OVE (ORCPT + 2 others); Mon, 27 Sep 2021 10:21:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:33146 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234763AbhI0OVD (ORCPT ); Mon, 27 Sep 2021 10:21:03 -0400 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 Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.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(-) -- 2.29.2 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;