Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2764575pxy; Tue, 3 Aug 2021 14:45:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrXtWP70lRvHQzjAwlBXzi0n9S/ueemHP8PZXCBss7HRumjUNtp3mVGxb5ljLG+ZqH3dBi X-Received: by 2002:a92:cdae:: with SMTP id g14mr674159ild.123.1628027106185; Tue, 03 Aug 2021 14:45:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628027106; cv=none; d=google.com; s=arc-20160816; b=b95uqyTVm/DYvnqjHhieSPCdlArNFE12GRItO4vCIYO7hVpWsdWRPFRpBF/o2UUPnG 6/3ZMB2nKZ61EVmy1ZW6tAZo53JGh3XAvuVdLVjNyteJOnHEYQw6q57jXPGr1BJ8cGaY ZaMqgYI5RWlx5psUC+yQ0hp6HWKIMSjkZf7IaK6Q8ZQc7go/En8D30lcCpG+TDbbWTGG JGUkkFOQbYnbAxG5atVKG6z/jNQfaqE6MuV2xP/R9Jtv3e0BA9bAp3pyRpbZ+wcOdVW4 whmVF0rX08IgIixndQtBDmffoL3Rqoqddjog/KhpDR9d4fNPWdLiBKGLzW1W9ouP5L7G ouMg== 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=OJs0PqkckE8ymSIEc2HUlj/+2SVYdf5KfxuCIGo6MXg=; b=mUTWPUHH9cMHMohUPlB7VemjwVatq4c919/kKW7hliqBvdsBEQzfWqyfEStysq+SIt ay2Z8rUAUHXr9QRS4INRv8idBEkbB/fDoHRKJqH4EiIQDow2wutGRZpuFRKibSUrR0Wb CBg5L+ZWiA6wtCruUGecJ4hgTAt5yhj3DZVmwG6tQdUa0weZkhfS1tBBDFFKuuU4eZV9 DPkXT9T816AZdtoqyjLKKEZKol9jWv1Qmoj6ye+iMD+MJw/k5K2R+M2SE2Iq3bpFAFTq l7++LI/2/0uBUfM5NAKSTJcUWNCKYejtl3A0OclVjyCccci2KPwtv7/jOmamrOYvGkdM QQOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D7Z+CKbg; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t25si16822680ios.38.2021.08.03.14.44.54; Tue, 03 Aug 2021 14:45:06 -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=@kernel.org header.s=k20201202 header.b=D7Z+CKbg; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231969AbhHCVQN (ORCPT + 99 others); Tue, 3 Aug 2021 17:16:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:40846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231519AbhHCVQN (ORCPT ); Tue, 3 Aug 2021 17:16:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E3A1A60F0F; Tue, 3 Aug 2021 21:15:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628025361; bh=hzGVYpSoT4c8eD9xIvtVELfHC2qZ9qRppSvQ6vReMyk=; h=From:To:Cc:Subject:Date:From; b=D7Z+CKbg2Z3xrAEjI8SCn68xBlte0yJcYGNFV212KyjPRdf6vuWbwxSE61SEMRw9j nc7Z8FpXxEVtIA4kNg+PkGkHfaCJRVhJlzKo8RXJGXeSlpUK9G8LpwBNZkYcGVoB11 BmIzYXXJlKoop/0GwA1/d7+ryoouWpOw1UtZcbyF8hslz+LigrSBt3dNRYdZqaa6NR MAwDjI/q1THimh2Tl7OA2Qim/0t9BEGOzcqyiSF72T6HczXbExcnGHyYbfmaGuieLf tGQDP1cdDZVVPmc2zVukorqiqIAH1Ek9cpMjBENGR7t/aCJo6qYy1wTrZgWz67jhYP WHi0dVrOKTg+Q== From: Nathan Chancellor To: Michael Ellerman Cc: Benjamin Herrenschmidt , Paul Mackerras , Nick Desaulniers , "Gautham R. Shenoy" , linux-pm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Nathan Chancellor Subject: [PATCH] cpuidle: pseries: Mark pseries_idle_proble() as __init Date: Tue, 3 Aug 2021 14:15:47 -0700 Message-Id: <20210803211547.1093820-1-nathan@kernel.org> X-Mailer: git-send-email 2.33.0.rc0 MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After commit 7cbd631d4dec ("cpuidle: pseries: Fixup CEDE0 latency only for POWER10 onwards"), pseries_idle_probe() is no longer inlined when compiling with clang, which causes a modpost warning: WARNING: modpost: vmlinux.o(.text+0xc86a54): Section mismatch in reference from the function pseries_idle_probe() to the function .init.text:fixup_cede0_latency() The function pseries_idle_probe() references the function __init fixup_cede0_latency(). This is often because pseries_idle_probe lacks a __init annotation or the annotation of fixup_cede0_latency is wrong. pseries_idle_probe() is a non-init function, which calls fixup_cede0_latency(), which is an init function, explaining the mismatch. pseries_idle_probe() is only called from pseries_processor_idle_init(), which is an init function, so mark pseries_idle_probe() as __init so there is no more warning. Fixes: 054e44ba99ae ("cpuidle: pseries: Add function to parse extended CEDE records") Signed-off-by: Nathan Chancellor --- drivers/cpuidle/cpuidle-pseries.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpuidle/cpuidle-pseries.c b/drivers/cpuidle/cpuidle-pseries.c index bba449b77641..7e7ab5597d7a 100644 --- a/drivers/cpuidle/cpuidle-pseries.c +++ b/drivers/cpuidle/cpuidle-pseries.c @@ -403,7 +403,7 @@ static void __init fixup_cede0_latency(void) * pseries_idle_probe() * Choose state table for shared versus dedicated partition */ -static int pseries_idle_probe(void) +static int __init pseries_idle_probe(void) { if (cpuidle_disable != IDLE_NO_OVERRIDE) base-commit: a6cae77f1bc89368a4e2822afcddc45c3062d499 -- 2.33.0.rc0