Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1352606rdb; Mon, 19 Feb 2024 12:27:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX52bhXUOpRNS6h7baSHP0mafex/yUJb61qj1qNN3dZajsU2vzJoEBWZBDeNJjanim0pU04wGy3pHA6Al1ydswpQJNN01E2DjvnY+XXzQ== X-Google-Smtp-Source: AGHT+IE2QXCP6H8azw96tAXMdo7aw5HRG7XtZB7rVT6zHqQZDW6RkFP6Qxi58TUzumDUaWU7LPsp X-Received: by 2002:a05:6512:3089:b0:512:ada6:f218 with SMTP id z9-20020a056512308900b00512ada6f218mr4386473lfd.59.1708374471985; Mon, 19 Feb 2024 12:27:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708374471; cv=pass; d=google.com; s=arc-20160816; b=0uUnVQT3gfKcFobjqckopp9ZSAF7jLho6CB94Caoa/MZvKGD8XYGGFqQY++ZFnzVZ1 OZPwJY63jG+P0zjHUCcxPNEtOxmpeZV2T2YKPb7ClkIR7coBfKWOW8ZnYJdFN31r0RHP qk3qZd4UqVwrND0lQWWnYm+wkB0ufa9gW5+0A44QiaUnx0oquwJog++zQEOMNXibi3LP XDcMBu7IRfdbrKAylmaTjgAyTx2CeMmum7kjiTfFB/mdYDP8/SCve51FQQ42d37C39AG H5yWU9VH8+0O1VpfQY96SPn+eWK6MUObfJptrwHCu0tDOGZyjnerPPKwvP6WtHxK8eVF YN4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=vIuE8vlJ1DHVd+B/Fr/1I2oFaP8kKsTtrLfv4i0F3tU=; fh=mL0lp98nCa/OPvHpjHb1CtZuW34GhYDzI2Ze+Ry5Jg8=; b=gQGhQOgv5yXwHOR78QLUS6INfJ9tY9y2jLTw8i3IWNA2SMmNQdnC+PCw+Nif5u7nkI gSZNJkTuc3Vf2QmJ40OGs4dK98s44vrhJfYyMVNXHbX2+W9o37+plEuvsdd8pdcD9iVm ATRlOCTq5jSkzmBVqsLnmbA3fdBCKI5Jv8xY2i4bfOtW1H8GI/2AFcuP/WP+JKM5fptH Vxo9LwOmmURLuya8+BVYrLEMDvrtVGqLH0VZQyvB4oAMHD15qnTfQQ3mtkSwKQuBY4K6 bYwY1GTMqJgsJh8wKDf057hgiZ6AZzFQL/FBPFs0qKjVTYk+7iAF52IJZJivwoVtjnp8 ajLw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=lkCwbPlF; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-71966-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71966-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 t14-20020a056402524e00b0056447c94341si1764890edd.417.2024.02.19.12.27.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 12:27:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71966-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=lkCwbPlF; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-71966-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71966-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 B63DD1F21BB0 for ; Mon, 19 Feb 2024 20:27:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 769A75381A; Mon, 19 Feb 2024 20:27:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="lkCwbPlF" 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 89450524BD for ; Mon, 19 Feb 2024 20:27:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708374446; cv=none; b=AVKN0+CVLLrrAktQ7rjySW/rUVPnnbfMhwUmCt1RAL+o8ABNR8icbKsM/FZxBWeIaJ68wW0YmIBR9LnbiQZj7RcQj9Wm78DqxQM17oYqNvdOqA7asoV1OO1qWS5q2zgEE6X3ZEc2wFsfqmHwUq0hHphTjv+FJd1ArKUu5eLHL9c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708374446; c=relaxed/simple; bh=Q76MkSwse6DwwFM74aXHBqVgCkUqP3UGGGeVotD5+cY=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=N7h1Mm2NtAUcu+yVpKUMxsdIXC8tAMyYnxQ+bDQ0aLQOHxY/OjC+L6LBwibOy5RLjk/D+XeGww8paS7Ah2GblDREtoqzitmJabyGCZl8yZBMkpam4W675ikEJ6wGomY3BZk8hk4y7trw7qKfzR/H8x6RQXNwU0ZGqvqWYAy5XO4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=lkCwbPlF; arc=none smtp.client-ip=159.69.126.157 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=1708373975; bh=Q76MkSwse6DwwFM74aXHBqVgCkUqP3UGGGeVotD5+cY=; h=From:Subject:Date:To:Cc:From; b=lkCwbPlFXcWo56CfgO3rGZUSzgpxGfPqn0OVl3eUjEjriTF6z+EIfWBBwBVZS4ZIt GvC2I8v9WUxuBWNZo9VJ4v/cE/c4ltFa9bkScwl55QCzLHWBvgcjyC5Q0nknM8P+k5 YSe5D5wsw1828d1v/q+99NECFRYuqo5HwzGFZ8kw= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Subject: [PATCH v3 0/3] scripts: check-sysctl-docs: adapt to new API Date: Mon, 19 Feb 2024 21:19:21 +0100 Message-Id: <20240219-sysctl-check-v3-0-6940d5ff747b@weissschuh.net> 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 X-B4-Tracking: v=1; b=H4sIAMm302UC/3XMQQ7CIBCF4as0rMXAQGvrynsYFxWmQjStYSraN Nxd2pXRuPxf8r6ZEQaPxPbFzAJGT37oc6hNwYxr+wtyb3MzEKAkgOA0kRlv3Dg0V17XAqpS2ka XluXLPWDnXyt3POV2nsYhTKse5bL+gaLkkmsQBq1uq8buDk/0RGTcw217HNmiRfgUqi8BsgBWd 6U4K2GV/hFSSm9iKVLk7wAAAA== To: Luis Chamberlain , Joel Granados Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708373973; l=1348; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=Q76MkSwse6DwwFM74aXHBqVgCkUqP3UGGGeVotD5+cY=; b=y3ImIKH0AEAZP8g9AUrKA/9IzsxNZtZNUozo2WR7KW33UCWencQy8yKbuBj/bviu5aik1qU5E att3GHkbN47CHiLFj0Ck8+rx2Pw0W4oITKVJMASGFnw7eQWwo6hoCId X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= The script expects the old sysctl_register_paths() API which was removed some time ago. Adapt it to work with the new sysctl_register()/sysctl_register_sz()/sysctl_register_init() APIs. Per-namespace tables via __register_sysctl_table() are also handled. Note that the script is already prepared for a potential constification of the ctl_table structs. Signed-off-by: Thomas Weißschuh --- Changes in v3: - Handle per-namespace tables - Link to v2: https://lore.kernel.org/r/20231226-sysctl-check-v2-1-2d4f50b30d34@weissschuh.net Changes in v2: - Remove unused global variable "paths" - Remove docs for deleted variables "children" and "paths" - Link to v1: https://lore.kernel.org/r/20231220-sysctl-check-v1-1-420ced4a69d7@weissschuh.net --- Thomas Weißschuh (3): scripts: check-sysctl-docs: adapt to new API ipc: remove linebreaks from arguments of __register_sysctl_table scripts: check-sysctl-docs: handle per-namespace sysctls ipc/ipc_sysctl.c | 3 +-- scripts/check-sysctl-docs | 65 +++++++++++++++++++++++------------------------ 2 files changed, 33 insertions(+), 35 deletions(-) --- base-commit: b401b621758e46812da61fa58a67c3fd8d91de0d change-id: 20231220-sysctl-check-8802651d945d Best regards, -- Thomas Weißschuh