Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp167240rwl; Wed, 4 Jan 2023 17:08:22 -0800 (PST) X-Google-Smtp-Source: AMrXdXt/72PIWyZ0VBJXxOOJ9kcWAzMPCh9CC7g5f/PSViD6XQU6lY0C7BmgAkdZ2V4+TnTVaJLM X-Received: by 2002:a17:90a:77c3:b0:210:a769:7ea1 with SMTP id e3-20020a17090a77c300b00210a7697ea1mr67753087pjs.47.1672880901765; Wed, 04 Jan 2023 17:08:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672880901; cv=none; d=google.com; s=arc-20160816; b=sDABrjFZ65moPLmwz2O3yZWPzFtefLyNSMe+Aii6h0xLFN4swwEkkrsafXvyGXvQHh dSyWna3m7GpVyhgOro29K0y6ro+JCM7byYVhuQbEJdR9Cxi9YIgKW1nKmdbpx2Lbgnwy n29ax+6gGJFuzwVLXb//0bc1Hr+f20ald/PF3M6ZEkROKIshse+KC7KUhbdtAQwzouDi fk0eWPeASDoOYNJmpLuYidOgWYsFwAzClUIZUXdZE0+iKA5sY07//tbV4ateaS2w91rZ 3ddDt8L2vLIlRJmnmpKRm4XrQMhJQGTIaVnkhvbmOi6PC9xCaDLSe3s0cR1tip37Naye C1Uw== 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=Hpz9O7P1P1dgfzLOYtIRWsYpvlMzumhU+yR5PLF5JfY=; b=nBvFLBHzRDQSY2YApaQHuFxImuIlNnpf9zc2DXz75S1RlFq5E+Js/7BjQgpLcvr0Po B7K8GgC2GZQtoHP/k4q6lQ/UG03XBiSlfKEMrTNKEPwdR2RVh94U69wY6SxAS8kuyfp6 TAlvg1r+N77mwEON9RbIBNYAxzCr58jH0xKEEi93BMy/t09MDQ6vYgrnWbcN1U5HpB4O qn0xIrL7KORCd4+CCIBxd41tIgagi62oo6InDuIjBdTSLoMv1idDCxAZ+0DpUH8w+msB 78RZLxK9f5q5UQsrffg1gV0v/QvWqXcDH+tOsOC7lZexx5BeJIT2yegz8faPGi9OX6yt wABw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rydFqGWd; 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 pq12-20020a17090b3d8c00b00205da45d8a5si422050pjb.124.2023.01.04.17.08.13; Wed, 04 Jan 2023 17:08:21 -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=rydFqGWd; 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 S240760AbjAEAnd (ORCPT + 56 others); Wed, 4 Jan 2023 19:43:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240709AbjAEAiv (ORCPT ); Wed, 4 Jan 2023 19:38:51 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B368C56; Wed, 4 Jan 2023 16:38:21 -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 A21C4B8198B; Thu, 5 Jan 2023 00:38:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC264C4333B; Thu, 5 Jan 2023 00:38:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672879095; bh=mKsNoUjuRkefu8oWnwwhbiT27WpnrGkS6A7pHvB9XEc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rydFqGWdFKNTiCXwXkCtTLgXPrcIws9xkyksZRUmeHArYPiZ6nHJwuMpMhM5iH7Z4 Trs1F6Jjn2SZcJHkq5+A9TYMnJpkN6ugjcU5FugLmAKAJYuktsbkmeOh57I5lbRUSu XkcbAj+g+OP0utYvGrT5HaY1XOL8sdEh0QLl6hzh9O7+J2BBH60JRRYM4MUC9ut8jE zoR2puFlIX2wfvw7HQWj+jIDu1jKHlEaZ6KMQfsAjLro3XOqBtqtVSXxcyQN7bDY4i m4xTZ7+vVbeLCmvPo7nwP2whE1k3DzfE6OpOKjZ4poK9AOMHXun0OMuL3hUdWFE50m jps2Cm/ulA9YA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id E625D5C1CBC; Wed, 4 Jan 2023 16:38:14 -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 Subject: [PATCH rcu 26/27] kernel/notifier: Remove CONFIG_SRCU Date: Wed, 4 Jan 2023 16:38:12 -0800 Message-Id: <20230105003813.1770367-26-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20230105003759.GA1769545@paulmck-ThinkPad-P17-Gen-1> References: <20230105003759.GA1769545@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 --- 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