Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3017010pxb; Mon, 18 Oct 2021 06:40:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpYrf7lBH2IYsSgMhTe/Bi6rtJ4oS+KDiS4cy4iOkaM8GsZMuc8ph6mD9bNvkAj8U8nKx9 X-Received: by 2002:aa7:8d17:0:b0:44d:3593:2c1a with SMTP id j23-20020aa78d17000000b0044d35932c1amr29210024pfe.3.1634564456517; Mon, 18 Oct 2021 06:40:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634564456; cv=none; d=google.com; s=arc-20160816; b=ELj/zkdVUp9Zi4lgp6dFbAM1vx4v8OKiYQe3CX2Q454DfjSSQIG9DLhpikiAkz8sp6 QOuzV3cbnPT6/eCtNCJkHMSCnN/vqLKzAXFRJvtLRdJz4/TWp+PSBDdY3TWRcUqQV1sr ODQOUjOppJHnjG/VVznzOdTDq6iXFOPdQFx5DTBYIXGn8yICJ/Qi4Fjx1yuG8LFqXWS7 Seskr31TyVtoydpvMDDs9UQaKmH5GG3j6yRLb8kNeJnAUCLKkh7Ef0SrBXG7FqFGwWcJ 2FVc1GZAiKU6Ynm/TXFpVIIIblPB+A75+QihpVrFZ2aMtJDyKqDcW26tafwT54nBA+74 6Qow== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xbodD4ypKyOlCyO4ItTvU9jNUJRdRKrSDL4KJWsAOzo=; b=QxZA+iEuU06Gx5y+EHD9sXquUI6LfebkhTxwKpYvkTKKhM1xtPkXZdnLdBDLiLv6z2 91N3a7ScgTLP17TFF7TeGuETs8lMzzGpf+08QHd1yHbycRScgDGiVdw69w6IsvYxXZwc I4mrgtLYdaRn3g64/HYFRPjavEE/SsS3P3VvUd8BRAuX6n4Y0x+wAwLTlyc1fzE6vEtU AlKT3tPiIyW8f5WU5XS1g1LElOIxXDPc9fz05XVxL4n8oshL4ReKzLYDIWoG0fTiKoAE Uz8rWeaRQ9oxYHAO6wm4CS/enng504PTbTPZMlNmJ3qP5qKAYYTK8+rT8XJ/FixBCcqF y7jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uynTItFb; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t3si15295769pfj.78.2021.10.18.06.40.42; Mon, 18 Oct 2021 06:40:56 -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=@linuxfoundation.org header.s=korg header.b=uynTItFb; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233521AbhJRNkV (ORCPT + 99 others); Mon, 18 Oct 2021 09:40:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:55246 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233409AbhJRNiO (ORCPT ); Mon, 18 Oct 2021 09:38:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 22636613D3; Mon, 18 Oct 2021 13:31:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634563914; bh=VIdxFtqdmZjsJnavCV+3i8M+BDIPD+wDhXUWr5cD+xA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uynTItFb8UmtCtGrgYnndGn+hOHvmWF+KaHmKYWlDeYWhkYoKwNkuUyjdeeqygehn ddAZC77aNOi7l9YIuU26IP3c38+CbYnIaDeDmKu/wTc8ZPT++AHq+XRfnok6pmrS1X CtstI1C209n7urwtz0K4INGRlrNfwyRHrVoywSxk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jackie Liu , Hanjun Guo , Catalin Marinas Subject: [PATCH 5.4 65/69] acpi/arm64: fix next_platform_timer() section mismatch error Date: Mon, 18 Oct 2021 15:25:03 +0200 Message-Id: <20211018132331.625566608@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132329.453964125@linuxfoundation.org> References: <20211018132329.453964125@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jackie Liu commit 596143e3aec35c93508d6b7a05ddc999ee209b61 upstream. Fix modpost Section mismatch error in next_platform_timer(). [...] WARNING: modpost: vmlinux.o(.text.unlikely+0x26e60): 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. WARNING: modpost: vmlinux.o(.text.unlikely+0x26e64): 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. ERROR: modpost: Section mismatches detected. Set CONFIG_SECTION_MISMATCH_WARN_ONLY=y to allow them. make[1]: *** [scripts/Makefile.modpost:59: vmlinux.symvers] Error 1 make[1]: *** Deleting file 'vmlinux.symvers' make: *** [Makefile:1176: vmlinux] Error 2 [...] Fixes: a712c3ed9b8a ("acpi/arm64: Add memory-mapped timer support in GTDT driver") Signed-off-by: Jackie Liu Acked-by: Hanjun Guo Link: https://lore.kernel.org/r/20210823092526.2407526-1-liu.yun@linux.dev Signed-off-by: Catalin Marinas Signed-off-by: Greg Kroah-Hartman --- drivers/acpi/arm64/gtdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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 inline __init void *next_platform_timer(void *platform_timer) { struct acpi_gtdt_header *gh = platform_timer;