Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp120294iob; Tue, 17 May 2022 20:53:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx60/NR59ydaExjtLP2ah6NqsOQKa61OWvwWdpfn35wNshcLzh3Kpm+GhPzq6B1gKTp4wd2 X-Received: by 2002:a17:902:f7cd:b0:161:7287:11b6 with SMTP id h13-20020a170902f7cd00b00161728711b6mr13605976plw.70.1652846038930; Tue, 17 May 2022 20:53:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652846038; cv=none; d=google.com; s=arc-20160816; b=pKF5SbUsysqvG8iR1Ee9Q5vPU7cC1kU/bV8kqqzRnE97LdvVnRhQM+fykcgepe3id7 TRY/ois0RcWZ6b4+XnncZFI26JRxrEdoL6+oqnExJndRZDDS51Hhq/5yrk6GLJ+HfQXI p+eRAnVEFkOqGDr84rMNllw7TLzTQW0FKhz4WYJEVDpuIZ8kkDF5KNVrNhLSPp7pEwBE Mg4KBSnLKA+9bxD/rFzbDY+NRRaxiKgk7s/BpC6NSAtoxTfWPvDiaYQ3PQBP1bTUTXs+ yQ5NZ3fQVq5my41IR7Is5KDQ5GEV8F2jAPBIxzUYyRoP0pUL9Ziw8JGxF94mt2EICtYj f0Jg== 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; bh=7mJ5nCfgywuL7hZc+WdFdHaOlhQhuBc0iFixbaQFBzk=; b=gfVW9w09WF8guQPpdYxBNCIDnVSAHBahDgSZTIeCDhnPZjSQUCJK0uuqdUp2odRSSY Go0/XevXKh239Ee9CF5mLHSgj3x6uFHdf/iDvvU4tmj8qUnJUycXWHHweXNLkPvXFG4u XB7meczu7AWUAGgCUW7l/SJekkNp3lLZ1shzdFGrUCO0YZKK4Ha6uoZyuB/9VSM31kAc iEXAKWp1ZTtW2ZI8o60I/MmtU0UVQ37+gbnuBGmes8hTKZ6J/yGdwmwo8o247eLlmb0I KJkCSDrArHJpKS26b/1nwrOYJoWY8ULAMn1bJzSc5acfsRjOG3hF9DrHgX7H4QtNeLsq fGvA== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s17-20020a17090302d100b00153b2d1646asi1390796plk.114.2022.05.17.20.53.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 20:53:58 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 61DC795A34; Tue, 17 May 2022 20:34:54 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238266AbiEQPHy (ORCPT + 99 others); Tue, 17 May 2022 11:07:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347338AbiEQPHl (ORCPT ); Tue, 17 May 2022 11:07:41 -0400 Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE4B33BBE4 for ; Tue, 17 May 2022 08:07:36 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed30:c0f6:7ccf:c217:5f21]) by albert.telenet-ops.be with bizsmtp id Xr7a270090nFbBY06r7aqB; Tue, 17 May 2022 17:07:34 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1nqynN-000huY-Qg; Tue, 17 May 2022 17:07:33 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1nqynN-004NOP-CH; Tue, 17 May 2022 17:07:33 +0200 From: Geert Uytterhoeven To: Luis Chamberlain , Kees Cook , Iurii Zaikin , "Paul E . McKenney" Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] sysctl: Merge adjacent CONFIG_TREE_RCU blocks Date: Tue, 17 May 2022 17:07:31 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 There are two adjacent sysctl entries protected by the same CONFIG_TREE_RCU config symbol. Merge them into a single block to improve readability. Use the more common "#ifdef" form while at it. Signed-off-by: Geert Uytterhoeven --- kernel/sysctl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 82bcf5e3009fa377..597069da18148f42 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -2227,7 +2227,7 @@ static struct ctl_table kern_table[] = { .extra1 = SYSCTL_ZERO, .extra2 = SYSCTL_ONE, }, -#if defined(CONFIG_TREE_RCU) +#ifdef CONFIG_TREE_RCU { .procname = "panic_on_rcu_stall", .data = &sysctl_panic_on_rcu_stall, @@ -2237,8 +2237,6 @@ static struct ctl_table kern_table[] = { .extra1 = SYSCTL_ZERO, .extra2 = SYSCTL_ONE, }, -#endif -#if defined(CONFIG_TREE_RCU) { .procname = "max_rcu_stall_to_panic", .data = &sysctl_max_rcu_stall_to_panic, -- 2.25.1