Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3011446pxb; Mon, 18 Oct 2021 06:34:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsUreRT95Kvsk/udFaExPix8iBkkybUHH4q7qULe/YCgGStGeeEITWsYtYYZCYj7xAhXu+ X-Received: by 2002:a05:6a00:c8c:b0:44d:c583:9b45 with SMTP id a12-20020a056a000c8c00b0044dc5839b45mr8275008pfv.28.1634564059955; Mon, 18 Oct 2021 06:34:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634564059; cv=none; d=google.com; s=arc-20160816; b=j0pj413LwR1ebEAn1wiLZFelEoturL+M3TOyU+2ltdUTzF3bVzpzUxtG4l9/vOmRuC D3t4AI+MTFTJn7de1syadMYaloYc49d8Uxfg3fTbsgVBm0CpJZP6eHXOO0aVizWG1Fmd NqMXDLxWdmM7IrLqdd5gzrboSzyrwwAWiavF5i9lbL9Z787iZmJ1CYMWaOnOVGYRAlAl xAiivOWcPN5fXQzO+SEbQn4nNU3D24+6OciN35e2xv/mBMTukkbf0Q2b4ijmCUBXOOH5 diSVruK0vi4rNJ+UO/j/uw7H8/uB/MR8Z45noaQSuOQ5ZoGQcVggelu2MFVByHhdwU0Q ISwQ== 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=TuJuHYD83aY2O9TUvJe3Jky7cEiyB4P75gXJs2umdSw=; b=QYWsXRAwmgiYrlq5aYZK4O/t+O+r5bAuSEQhQNsIoZUq2f+7qMv+NdYk38w+NhsOpY JzwmZ444NkcNyIu+m9eVpV9pN3SI1kg3b7iySwi9V4cIJVPAvS44Ud17TZqm+4QXkrJF 0uTVhBGheFBRZvhVy4SsgNhSCuOlCITr9cvs805Ni0KpXjsfIpBz1Hk8w2D79p+pMKvh VdCXyTt7/pFN585KAZt1C+hO5NQvxgFGA+MVJ2J3nJTgD2ECaoyQbAcMLe9erhQiO8yK OMjLw0o7Mak1knEeAqxhuYql+jQFHWwWRX4xWLhl6AstYSvLAVqxwCAzVRyJmSjZQsKH I9nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ACnw8DO8; 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 j2si15107810pfu.4.2021.10.18.06.34.04; Mon, 18 Oct 2021 06:34:19 -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=ACnw8DO8; 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 S232185AbhJRNeD (ORCPT + 99 others); Mon, 18 Oct 2021 09:34:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:42612 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231836AbhJRNcP (ORCPT ); Mon, 18 Oct 2021 09:32:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 24E986135F; Mon, 18 Oct 2021 13:29:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634563744; bh=Xj/vs6k2tHEXMwpnBSl0Xpc3tvuJ7egNp8+d17y/x3c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ACnw8DO8DQwor7QXGNlrMeFn7jf86xQSMt+P1F+/AQI5kdDRcKptlS1cmP8W3UfHj KbZfy7jtphPmc8mntHFgzmK8RE0OqzNRbCrQLPEEB+fyXBRLayoqR2z47p5pqPHk5A 7hfXON1e+ylqXv8ywsnc4Q2+3Zkz8sWgMiJ9N7cM= 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 4.19 47/50] acpi/arm64: fix next_platform_timer() section mismatch error Date: Mon, 18 Oct 2021 15:24:54 +0200 Message-Id: <20211018132328.075578920@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132326.529486647@linuxfoundation.org> References: <20211018132326.529486647@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 @@ -39,7 +39,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;