Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1755102pxb; Thu, 16 Sep 2021 14:58:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGQucY08GOt6cnxEIhTIstJQbZyNDZuF0JU7cNps/rD3dacBT8xRJB49J7Uh22uK9cbJsS X-Received: by 2002:a92:194c:: with SMTP id e12mr5611757ilm.3.1631829535668; Thu, 16 Sep 2021 14:58:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631829535; cv=none; d=google.com; s=arc-20160816; b=KEClAAd5RWto5OGxnRtwGwEJVHU0q2EqObIh8d5dHlnltLPpNJP3A63iR9xJjtq/5t qcGM5KefEuV+EWKzIFImKFWTWK8FzvFeWgk1UKSyca1dm6q4O2z2zeDnVmNYk4T4DHI+ 8jb+Q4nN7qNFj1akR0bVK8x3FoCcQQGO0/6Fn7mSASVOnre0i7T1eIu8YBmnKKUv4bcN XX91ipTCE0DFtWGFloVIoWlES+QPno5gtLhNQi6Unzzsev8PwY9UPZ+gg+sU67GZ/SYS L6yK8JEQvlXNG4z28lR0JY/VS3DEAs5UJwShRa1CD/gk8GbXhQ00zQ53Tj+CqhtAD3lJ ZT2Q== 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=b5CRMWjIUMCcobx4UGRJRnJxkN3jn0+jfipLlEH9HX4=; b=XhMJWvfrVp6p61z5Roazzd4GVrjZh5SxrrWdFqc3zUkwOUc4MSS41UAXlUyOXqzvTe T1dMQ79G1IFOoe5WC+rpV/r9HSdzPBmbLa9xtzj8Ke1e3xYl1dORjoIdEZzGVaRctrht 7Jz55YX3y7gT81GEFHghXo4eAwWJp5jAPlsgEVgHREoihAeOyin2ROfgk2g5qQng/cto y45hAZZ7yue3t/q7CkCS/OQIF+LVOHPoAAAdI7dV/D91Q9bc+t4e+m01u92ZEqFHsnVt dOCI1qb8SrLrJE1zilpXnwMNqVVT4OFf20fuE1C1e/HhFxsVLQDUVtP1a54zXf4Fqdpl /uVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oaHbQR5e; 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 i4si3765103ila.157.2021.09.16.14.58.44; Thu, 16 Sep 2021 14:58:55 -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=oaHbQR5e; 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 S243391AbhIPQkl (ORCPT + 99 others); Thu, 16 Sep 2021 12:40:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:43910 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244120AbhIPQes (ORCPT ); Thu, 16 Sep 2021 12:34:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 174C761872; Thu, 16 Sep 2021 16:20:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631809257; bh=4XLyxolhrMLjNIFlyN8qlI7yuJw7mrGBG65yOjX38Uo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oaHbQR5eQmfDnPoCIffzGw6ZrGMR5RSfWwPnvQC9H1xYhyf/yGznAs2TiDOwvNPPa bH9NXDwo6KJaQIqQu3vTACe3KXV1rUQXhlXkBjhlcqHdxr6qc2wnhDdHutNZ08i6/B bw0iQVvdysLmo/cOqNE0TG7DfmuS+eWunPqCPpzQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , Michael Ellerman , Sasha Levin Subject: [PATCH 5.13 089/380] cpuidle: pseries: Mark pseries_idle_proble() as __init Date: Thu, 16 Sep 2021 17:57:26 +0200 Message-Id: <20210916155807.071391219@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155803.966362085@linuxfoundation.org> References: <20210916155803.966362085@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: Nathan Chancellor [ Upstream commit d04691d373e75c83424b85c0e68e4a3f9370c10d ] 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 Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20210803211547.1093820-1-nathan@kernel.org Signed-off-by: Sasha Levin --- 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 e592280d8acf..ff164dec8422 100644 --- a/drivers/cpuidle/cpuidle-pseries.c +++ b/drivers/cpuidle/cpuidle-pseries.c @@ -402,7 +402,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) -- 2.30.2