Received: by 2002:a05:7412:a986:b0:f9:90c9:de9f with SMTP id o6csp29422rdh; Wed, 20 Dec 2023 13:24:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IFp4URap6/oIAuLq03cxdOuUXf7017XJD//kzpkZqkV+gBgDyBGy9tdgCaGhfxLcemU2Acx X-Received: by 2002:a17:906:7247:b0:a23:5fa8:6ec1 with SMTP id n7-20020a170906724700b00a235fa86ec1mr2034121ejk.19.1703107442048; Wed, 20 Dec 2023 13:24:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703107442; cv=none; d=google.com; s=arc-20160816; b=ex7gXtSowqjZ0afm90C7w1Nwgl1lcgO9OiBwC22qP9N9lnoFAf9TKWHc+gvTtkezLy zEKjYPMKpKDZZZCF7h2nGUeFEYhRG5kHBLn4eihqCFAxjFw55iae6WE8hnCNsNVWBbRZ 2kYBSpEqMlHhMslMSmxTblFo9XlCkDBEbG8z4u45PLhNuUEyY7TOnz0Gfah1tS/Z3CxM HT5C0nzv6EwSsQhwfJOLKjr/XNLeVxaHUqDS2fS75FNNFLq08OcxUq/Jwd+kM2MNpV15 MvH/CsYQFEp2drx2J0sCCE/JwAMWqHE44DWKDoxXCGl4C2dk0znn2y/ZCNU/mfxMXPS4 rNCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=4Kc4icrsUMnQZlrOFfi+Vx4TKkQfvlnWIAoUuxXUGQ0=; fh=YyBCRfuiwA/58S3TNyTs6kZAsMoedIswW27W6w2fk9g=; b=JOposYyzxOFsqI+G0iO30H4maqqX4uHoK8YNKYpG+SqcerjHCC/zb23P8QhV46nLeS nWqEB2FzguvZRyBcFecnWxuKM881wxKmy3MLCYzLkNVDJZihQN27SkJ3L2LrrPqnIfwK 9lPwX8fWC9vuzdFy7PSvKRX4KIlmaapc6LC6vjs6EnSMiqBdNyTLSvLP6yHcfG5OMuFc tP3DE51TAmqyOLN94QSvWmC8Y4hHnxqVq15Gs7SaInKWzIEN7xIAERSCcZuZuBX43LuK a+ixAM51lgLGvVPM/lZBtiEYUJMxVBrPLr3qrbHy8sbaxdgtl0L9DpDoHex9/w0NFNaq UVJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=oj0k0QMO; spf=pass (google.com: domain of linux-kernel+bounces-7449-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7449-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f12-20020a170906494c00b00a231220a9c6si186208ejt.617.2023.12.20.13.24.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 13:24:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7449-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=oj0k0QMO; spf=pass (google.com: domain of linux-kernel+bounces-7449-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7449-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C9BD41F24006 for ; Wed, 20 Dec 2023 21:24:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 892EF48CF3; Wed, 20 Dec 2023 21:23:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="oj0k0QMO" X-Original-To: linux-kernel@vger.kernel.org Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (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 87FAC1EB5F; Wed, 20 Dec 2023 21:23:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1703107415; bh=eGxGqbgZVGIrrxZL930kVfU1Amr5jFALwZNRXLWU63g=; h=From:Date:Subject:To:Cc:From; b=oj0k0QMOV9GFZVIpf9VqELx6KED+CigzpIisTwuzySWkPIU9qTkchVSWnMFy7xi6I SRC6XScGpix2e7dK3K2ApuEJE5vwBduyQNL6mw7zp3QE4DMUwEFOjZzs/VnIXzW2RN +RZIeNMOOB+MHOy3NfULEIs2FtxibfXNXh3gFhEc= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Wed, 20 Dec 2023 22:23:35 +0100 Subject: [PATCH] sysctl: remove struct ctl_path Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20231220-sysctl-paths-v1-1-e123e3e704db@weissschuh.net> X-B4-Tracking: v=1; b=H4sIAFZbg2UC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI2NDIyMD3eLK4uSSHN2CxJKMYl0TcxMzS3MLU7NE4zQloJaCotS0zAqwcdG xtbUAw0yA014AAAA= To: Luis Chamberlain , Kees Cook , Iurii Zaikin , Joel Granados Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1703107414; l=1160; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=eGxGqbgZVGIrrxZL930kVfU1Amr5jFALwZNRXLWU63g=; b=hydLABjfaS/oS5Pmgp2zJLXbW3W8u1NPMgqS/2oT15ZCRbIv8QPw+Crgq6dn+CB/TeylU7GvM ABjLgtGys6QDSrYuNRnQKkWGOWGNduUVpTbm+4MxLfiqXDNxk5JZ16E X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= All usages of this struct have been removed from the kernel tree. The struct is still referenced by scripts/check-sysctl-docs but that script is broken anyways as it only supports the register_sysctl_paths() API and not the currently used register_sysctl() one. Fixes: 0199849acd07 ("sysctl: remove register_sysctl_paths()") Signed-off-by: Thomas Weißschuh --- include/linux/sysctl.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index 61b40ea81f4d..8084e9132833 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h @@ -210,11 +210,6 @@ struct ctl_table_root { int (*permissions)(struct ctl_table_header *head, struct ctl_table *table); }; -/* struct ctl_path describes where in the hierarchy a table is added */ -struct ctl_path { - const char *procname; -}; - #define register_sysctl(path, table) \ register_sysctl_sz(path, table, ARRAY_SIZE(table)) --- base-commit: 1a44b0073b9235521280e19d963b6dfef7888f18 change-id: 20231220-sysctl-paths-474697856a3f Best regards, -- Thomas Weißschuh