Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp80518rwb; Thu, 12 Jan 2023 16:17:54 -0800 (PST) X-Google-Smtp-Source: AMrXdXtVT+pzzhW7sM+wUh7xhRsP5PQVwUZsem48+UX5z1KMDNs0S4dSYFJlxFRSooaPkmY1pZwB X-Received: by 2002:a17:906:6d0e:b0:7c1:8f78:9562 with SMTP id m14-20020a1709066d0e00b007c18f789562mr1163017ejr.50.1673569074805; Thu, 12 Jan 2023 16:17:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673569074; cv=none; d=google.com; s=arc-20160816; b=Gc/gFPNbDiJ8mhKzxVGNmXPHwpTjatl9/Qx2HgKgOrtphbVS0musedh472GA7rC0WA H4jOhEvXP35GolFkHYbqdzjnaIZpt8bLZ4cc/x1693VcN46TYljwnbvHO2Z3B4bNKuS7 OAX4XWSdApdJ1yB/QZZWQRi+0nkHU230Uc7cvlHnfReIPhmat9vVvI6Jh6z8iaG0T/XX wj+ViE5+9m4KJDzR+g5Tn4cE2BJkBfx/DnJgtFRrB8sM0RpiCcLuDJAedJVk8r146IsU WrzuCThEuQpAD20/UMkD5r3xRomMsRSnlHes/85PBmbsX/k32iZkLdq7pGMCElByrh4D T8wQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8pbfCc799htJPkhQRnmecZxfFBlCL1EmZ1mxuDiYaAs=; b=ggVqGBx8MN/9D44nNFcA8CsoZw9CQ9jOp6eAj/+kJ07yhrnte/hM3gRLLzQ+erQVDj QA6mcP6JgrJsK91U+3upEKljtvUu1QVC6wwGPQouRZUdGlU2C3CeUA0Xyc34xJGrelOy vXDTbZwZSWQMKL0OaRnRZnLiKov32s5pzTJq7TwmBBpAhMJfHQ8ifvx47wYCwVN22xB5 MLLCZDnLWfWZPLON+DPxhOSeLA1dYil04f98Ibx0a7Zhy7TX65lB+I/e93ZYWg5zKp9R 55Lxp1gorbVe9eyo51CtRzQagfzcjIMTaqBK9QXcUX+D9cn+Q4gLlL3eafMGAJIeCCDY f8kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Pu1GHzx6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di12-20020a170906730c00b007c0fa80794fsi21452861ejc.733.2023.01.12.16.17.42; Thu, 12 Jan 2023 16:17:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Pu1GHzx6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231833AbjAMAMz (ORCPT + 50 others); Thu, 12 Jan 2023 19:12:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240232AbjAMALn (ORCPT ); Thu, 12 Jan 2023 19:11:43 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E24B51183D; Thu, 12 Jan 2023 16:11:38 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 87B99B8203D; Fri, 13 Jan 2023 00:11:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75EFCC43333; Fri, 13 Jan 2023 00:11:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673568695; bh=ayQf6/xuyFF/w9FwFq9nQMwEr/uyhaCZ6dQYnnXBdS0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pu1GHzx6RhryUp+w67SMaQOzUnW4yEqUj5+ss639mrruDEt7nk5aGgfivBAZXPuwh SZe+c6EEGOHwFDTDNltElL2Y1p+dmq5X8mK8iL2SyOot0p3ZIsbTmeUfaKdxftZLTj jhG7k38wBltfpGOYJvIQH4EbgYfCOTxCn9zp0fhEnYI1LjaBCKA9OSAfT+Idq/LzJD Jd3Icev0UPGhGH3+0os5umGJbSOQCKZE5KvhUjYxOJZcP58yEfzNoPBUU4AkUDRmY0 uA3MT8Drm3cQelgkC28D8Sj8VUgeVlkb/FRO1afsyepH7tW2N0hiSLFiFsEeqVz05G 0azsh9dHR98xQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id B2AD25C1C79; Thu, 12 Jan 2023 16:11:34 -0800 (PST) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, "Paul E. McKenney" , "Rafael J. Wysocki" , =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= , Borislav Petkov , Alan Stern , John Ogness Subject: [PATCH rcu v2 15/20] kernel/notifier: Remove CONFIG_SRCU Date: Thu, 12 Jan 2023 16:11:27 -0800 Message-Id: <20230113001132.3375334-15-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20230113001103.GA3374173@paulmck-ThinkPad-P17-Gen-1> References: <20230113001103.GA3374173@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that the SRCU Kconfig option is unconditionally selected, there is no longer any point in conditional compilation based on CONFIG_SRCU. Therefore, remove the #ifdef. Signed-off-by: Paul E. McKenney Cc: "Rafael J. Wysocki" Cc: "Michał Mirosław" Cc: Borislav Petkov Cc: Alan Stern Reviewed-by: John Ogness --- kernel/notifier.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/kernel/notifier.c b/kernel/notifier.c index ab75637fd904f..d353e4b5402d7 100644 --- a/kernel/notifier.c +++ b/kernel/notifier.c @@ -456,7 +456,6 @@ int raw_notifier_call_chain(struct raw_notifier_head *nh, } EXPORT_SYMBOL_GPL(raw_notifier_call_chain); -#ifdef CONFIG_SRCU /* * SRCU notifier chain routines. Registration and unregistration * use a mutex, and call_chain is synchronized by SRCU (no locks). @@ -573,8 +572,6 @@ void srcu_init_notifier_head(struct srcu_notifier_head *nh) } EXPORT_SYMBOL_GPL(srcu_init_notifier_head); -#endif /* CONFIG_SRCU */ - static ATOMIC_NOTIFIER_HEAD(die_chain); int notrace notify_die(enum die_val val, const char *str, -- 2.31.1.189.g2e36527f23