From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F24E07263B; Tue, 27 May 2025 17:47:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748368021; cv=none; b=noLFfpHS/qdIF0KDjEa4Ya2cuoOugBwMgn6NhisH5ASBtevzMbbmoLNHMglzWclWuPJnDgqTlzYVemRTp8plTUv8SEje0IxFcjhbhqB7ttoyJ41V/UpCJ+w0D1wq+c2RyUXilrW92zbR1o2SjiwlQ34icBjCJsFt589QAL5n0aY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748368021; c=relaxed/simple; bh=N5h2+Hv6w90arEs38g7G0QB+51CfxNLLeN+luvCDsEA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DPH11tDzFlmkBHta3UabRw/FxmlaroZZSTcjX6rLYgG1GgdAhKClQ9ab56CiIfcIdK7esKQo+WrqobVNemyVOG1+okAWjwJLZZl8bFzQgy9R70kupwHFgfGNB0x6AVv5hi/zlbdi7fOps4pnE+1yyPmp86quAWfD0XRiHsgEI9M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OHpK6tQ3; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="OHpK6tQ3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7FA42C4CEE9; Tue, 27 May 2025 17:47:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748368020; bh=N5h2+Hv6w90arEs38g7G0QB+51CfxNLLeN+luvCDsEA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OHpK6tQ3u72Lcid1MXd3ewoEidrUZCKzHzfdpMMtG9ZvFUT8xCIdkg5t30PQmQwTx W4zbA/ERNP+a+G/T5j0Pz7r+0N6KYnurvLVR9RJ/+9w6iGx0v23N4lV6lF2Bw1m+ry PRULx0TjXit0V3Vy3Oj7ob7f1hr3T9BNI9sstja4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, "Paul E. McKenney" , Frederic Weisbecker , Sebastian Andrzej Siewior , Ankur Arora , Boqun Feng , Sasha Levin Subject: [PATCH 6.14 572/783] rcu: fix header guard for rcu_all_qs() Date: Tue, 27 May 2025 18:26:09 +0200 Message-ID: <20250527162536.444266703@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250527162513.035720581@linuxfoundation.org> References: <20250527162513.035720581@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ankur Arora [ Upstream commit ad6b5b73ff565e88aca7a7d1286788d80c97ba71 ] rcu_all_qs() is defined for !CONFIG_PREEMPT_RCU but the declaration is conditioned on CONFIG_PREEMPTION. With CONFIG_PREEMPT_LAZY, CONFIG_PREEMPTION=y does not imply CONFIG_PREEMPT_RCU=y. Decouple the two. Cc: Paul E. McKenney Reviewed-by: Frederic Weisbecker Reviewed-by: Sebastian Andrzej Siewior Signed-off-by: Ankur Arora Signed-off-by: Paul E. McKenney Signed-off-by: Boqun Feng Signed-off-by: Sasha Levin --- include/linux/rcutree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/rcutree.h b/include/linux/rcutree.h index 27d86d9127817..aad586f15ed0c 100644 --- a/include/linux/rcutree.h +++ b/include/linux/rcutree.h @@ -103,7 +103,7 @@ extern int rcu_scheduler_active; void rcu_end_inkernel_boot(void); bool rcu_inkernel_boot_has_ended(void); bool rcu_is_watching(void); -#ifndef CONFIG_PREEMPTION +#ifndef CONFIG_PREEMPT_RCU void rcu_all_qs(void); #endif -- 2.39.5