From patchwork Wed Dec 20 21:23:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 13500455 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="oj0k0QMO" 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-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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?T?= =?utf-8?q?homas_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 Reviewed-by: Joel Granados --- include/linux/sysctl.h | 5 ----- 1 file changed, 5 deletions(-) --- base-commit: 1a44b0073b9235521280e19d963b6dfef7888f18 change-id: 20231220-sysctl-paths-474697856a3f Best regards, 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))