Message ID | 167951125196.5837.18123258541770428595.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2518331wrt; Wed, 22 Mar 2023 12:12:34 -0700 (PDT) X-Google-Smtp-Source: AK7set8aGoVBh/K2IEuDWihnnMQOF15cDvgBXv5DDm2x3yGk8fqupA2IIPxcTfuQ6etIQk5Slru0 X-Received: by 2002:a17:90b:4a92:b0:233:fdfd:7122 with SMTP id lp18-20020a17090b4a9200b00233fdfd7122mr5260124pjb.37.1679512354363; Wed, 22 Mar 2023 12:12:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679512354; cv=none; d=google.com; s=arc-20160816; b=FEqPjtE/OYh83SoSIbcqX1AUfRdV5y1wVxa1oVGNFdaIRgmL9iMOKW+2SToHL7eULP wxERz+C7B5o60lfq4jvz2QDtr1DB2WlNmkvKN/E2Ck4UN+xqk3zuQ2MDFGHW6i0UVACE m5VDgYuZvmzDngtojrqPBwWjx3hpOACG8Qu1GlbkkXKbu/6t/bekrUO/l3n7zo7A18R1 0SnwsSemy3z8f+MBcCUE2+//fdFjKpfmtI6PYHuOazB2HGXGteMiidK3DfOy0IXfI+79 nZmv2skDSdWkgLH0HT2thdlAaCRh0kBsM22nZBKwPhq7mXg9wLXPmVpNMfoDgyE0SIwe K1fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:cc:subject:to:reply-to:sender:from :dkim-signature:dkim-signature:date; bh=5GJf10FYfpAZrTDKMhvIyel8utBrLE4EWcSh0ltNPLE=; b=BzKikvqFLyJ08YI2vnV9kRjvTyPB0mNSCYWfXFnbjUyoR0THMojnjgL+LHXqtdAOrw /EVthDtf49/T7+VnghzrgC09wqG4kC2GmVkwTvhvoqxHUI0cv41hG5+5pB2q+GpbONJ2 2NsZDcUZ6idwBwUHS5NBIvK6+DYkwoCy5S6LBVjWaJVejc85zUWHjkI04m6fJBEf+jeG POmTd8P6wK7OywkUNLUFvpULmktQHHEnNNNIJ9aNvwMMpjI2WeuXnnRQjpKL838zXfVg WLITSzjq2YiSO+87V6MjyaER4CE+zJnAZyCZPurSTzYVI2gFqt6pye8+yadzGZtUvaBG tYkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=3KLRq8Gy; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lw7-20020a17090b180700b0023fda10867dsi6818109pjb.130.2023.03.22.12.12.21; Wed, 22 Mar 2023 12:12:34 -0700 (PDT) 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=@linutronix.de header.s=2020 header.b=3KLRq8Gy; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229496AbjCVS4N (ORCPT <rfc822;ezelljr.billy@gmail.com> + 99 others); Wed, 22 Mar 2023 14:56:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230262AbjCVSzS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 22 Mar 2023 14:55:18 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B2CD69CE7; Wed, 22 Mar 2023 11:54:19 -0700 (PDT) Date: Wed, 22 Mar 2023 18:54:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1679511252; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5GJf10FYfpAZrTDKMhvIyel8utBrLE4EWcSh0ltNPLE=; b=3KLRq8GyCfVV6dcFj+GSN5SSNHeVZRmbr6smykZRmpRP1ofDqp8+A8IjTTOhoxgUa1WDdl mPBwK95aKa7TSrLQEqBWjDvwtRt63JOpJT1W8fSZkowYan721y8Ae9+rpoiRtvvii9TvXj 1xnfAZQm7XELhIgXjxswonNpnignqJe3QP/YDZr4IK/J6tHr2JXY8RAdhZto/ZRcU0ml+X skLOQwadSgd17LlNF4WOGAhV9dCV32RimB6Oo2aZYjyXIhgJJ/dqvmlk+sg59jUzpKxQOI iQgUmj3xu3E22MeX/PrMlaJcqEvZ5mzdVW87mTz2QohAdGQN1rzbRaGHg16+Kw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1679511252; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5GJf10FYfpAZrTDKMhvIyel8utBrLE4EWcSh0ltNPLE=; b=ywG0YpRMGv9zZsD7/eflE8k7V58LjgBxKOBOECq13kztkPJf8fFtCh7Y0QMHNSw5oxWu6Z TzX1DkOZv7NrlKBw== From: "tip-bot2 for Luis Chamberlain" <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cleanups] x86: Simplify one-level sysctl registration for abi_table2 Cc: Luis Chamberlain <mcgrof@kernel.org>, Dave Hansen <dave.hansen@linux.intel.com>, x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <167951125196.5837.18123258541770428595.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761096346533143956?= X-GMAIL-MSGID: =?utf-8?q?1761096346533143956?= |
Series |
[tip:,x86/cleanups] x86: Simplify one-level sysctl registration for abi_table2
|
|
Commit Message
tip-bot2 for Thomas Gleixner
March 22, 2023, 6:54 p.m. UTC
The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 3f6cc47f5eb40d96ce8cf443282a2c29fd629a76 Gitweb: https://git.kernel.org/tip/3f6cc47f5eb40d96ce8cf443282a2c29fd629a76 Author: Luis Chamberlain <mcgrof@kernel.org> AuthorDate: Fri, 10 Mar 2023 15:32:47 -08:00 Committer: Dave Hansen <dave.hansen@linux.intel.com> CommitterDate: Wed, 22 Mar 2023 11:47:21 -07:00 x86: Simplify one-level sysctl registration for abi_table2 There is no need to declare an extra tables to just create directory, this can be easily be done with a prefix path with register_sysctl(). Simplify this registration. Signed-off-by: Luis Chamberlain <mcgrof@kernel.org> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Link: https://lore.kernel.org/all/20230310233248.3965389-2-mcgrof%40kernel.org --- arch/x86/entry/vdso/vdso32-setup.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/arch/x86/entry/vdso/vdso32-setup.c b/arch/x86/entry/vdso/vdso32-setup.c index 3b300a7..f3b3cac 100644 --- a/arch/x86/entry/vdso/vdso32-setup.c +++ b/arch/x86/entry/vdso/vdso32-setup.c @@ -70,18 +70,9 @@ static struct ctl_table abi_table2[] = { {} }; -static struct ctl_table abi_root_table2[] = { - { - .procname = "abi", - .mode = 0555, - .child = abi_table2 - }, - {} -}; - static __init int ia32_binfmt_init(void) { - register_sysctl_table(abi_root_table2); + register_sysctl("abi", abi_table2); return 0; } __initcall(ia32_binfmt_init);