Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp1410455rdb; Sat, 23 Dec 2023 05:54:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IEenEuFNM1SD6EwU0t3SLtoJreWhD22igAv/CwHdLKXWgMehZin3DbDkwgBjcgkzPqHvGSe X-Received: by 2002:a05:6358:7e11:b0:172:b5f0:e904 with SMTP id o17-20020a0563587e1100b00172b5f0e904mr2753760rwm.57.1703339656119; Sat, 23 Dec 2023 05:54:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703339656; cv=none; d=google.com; s=arc-20160816; b=fW7kGAaHju1N4HqzI7JSiCVBhesURv844Yz1narv9NCm5vgbh+kiuOBEg9QJer7Bcs 66UQDhVYISV2a73PhxqAbVfKNi10+VAmWI7nkdZNRGq1yb204BvZ/5OQug20v4a19gXv 7fpkwqyl8/s6begYeGoltBcXwBZhpjZj5tkGccTPUcUqWUyFnRLiY9OJkdHZ3JiXFxGX xoht3y8TKKTyri61beVvcHEyRcrsj5X/S4h9EulvjeU4MuyFHgVYVyPnS3GcvdcpthQL nweA0uaHYEke5or5Zf892GhPQSbd81tXbOSd90mHnmB2+GmcLA85Uaa//YQpaBHiQGjg VnIQ== 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=by06/TN8pXFQoR6SVxc8Q6ov/JUMW9skpGpU5Gayj2E=; fh=lt+h9xVPpWGy3CQ1ZVbEQK4XSH4kmOqIr3aKZar7XWw=; b=AeKFwFbo3nSyxoPeZ842oJeu5dOPlVjBJRpr4sQKS2oQV8An53owftZn+afw+/sj3i gVN098ufPh9XW6OLswxnLCXQkyhLtjVFQ8ReGFIpYa5Z29t7FYwlFtTOR0Xb8zCI7S4L 3X6miXupEcJ1Fbo0ueZF3havjisGuKSMR4pIBYzZV2s1K1Vo3uPwaTUNL8r7X4ToAZOf 8gG7Xup/IsaG27kwSoh4B2tuZ8ptcDChjhschTwfIehGKgYjg2KGXKfxZBYvYR4WJIZ5 T2QlPUpA6MvhNNCfwEehL88PbdM7gUB0423JlHASgDmr5kCXdxl9vEnZVg+5tdjjO7mM hYJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b="qkAK/xX4"; spf=pass (google.com: domain of linux-kernel+bounces-10432-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10432-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u1-20020a17090ae00100b0028bf7badff3si4051618pjy.80.2023.12.23.05.54.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Dec 2023 05:54:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10432-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b="qkAK/xX4"; spf=pass (google.com: domain of linux-kernel+bounces-10432-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10432-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B7CDB281E68 for ; Sat, 23 Dec 2023 13:54:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 720ECD53B; Sat, 23 Dec 2023 13:53:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="qkAK/xX4" 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 1D14CD50C; Sat, 23 Dec 2023 13:53:54 +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=1703339632; bh=Ee0tYNZexbPVXAGBvkDgOutqhhXAAC/AoPNZbvbdlwM=; h=From:Date:Subject:To:Cc:From; b=qkAK/xX4+e5Fm9Cwe7OnOwVnV3kjMEg9u3ylyIVLiBHA3e1ArPhlQtGagyQ2lCdIK HTAfOuwONryfUtIjex6bSDxVWMBj330uWDv1H+TO6tHtyrd0fCxDvz22RMRV2EBWd1 Jji8iFDS7WkCgIZh+BRrcu9IfeAPGdzwKCkO8o4I= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Sat, 23 Dec 2023 14:53:47 +0100 Subject: [PATCH] sysctl: delete unused define SYSCTL_PERM_EMPTY_DIR 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: <20231223-sysctl-perm-empty-dir-v1-1-194edd9b09dd@weissschuh.net> X-B4-Tracking: v=1; b=H4sIAGrmhmUC/x3MSQqAMAxA0atI1gZsK1a8irhwiBpwKImIIt7d4 vIt/n9ASZgUquQBoZOV9y3CpAn0c7tNhDxEg82sM9Y61Fv7Y8FAsiKt4bhxYEHfetPl5MrCdxD bIDTy9X/r5n0/9/DM6mcAAAA= To: Luis Chamberlain , Kees Cook , 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=1703339632; l=1129; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=Ee0tYNZexbPVXAGBvkDgOutqhhXAAC/AoPNZbvbdlwM=; b=gJ/VXmLeL0bESGRyabJyAwZYHRnxzRKg56eMMUH5IRbfzzw5lW+AHQX9vifII3taleCjDsyZc 6Kg/7BD5jDpD/nwKYUSTSJGlNgKSh2r6CXmQydMIHR32kin7ikCdMgN X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= It seems it was never used. Fixes: 2f2665c13af4 ("sysctl: replace child with an enumeration") Signed-off-by: Thomas Weißschuh --- This was originally part of the sysctl-const series [0], but it doesn't really belong in there. To slim down that series as much as possible, submit this patch on its own. [0] https://lore.kernel.org/lkml/20231204-const-sysctl-v2-2-7a5060b11447@weissschuh.net/ --- include/linux/sysctl.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index 61b40ea81f4d..26a38161c28f 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h @@ -255,8 +255,6 @@ extern int unaligned_enabled; extern int unaligned_dump_stack; extern int no_unaligned_warning; -#define SYSCTL_PERM_EMPTY_DIR (1 << 0) - #else /* CONFIG_SYSCTL */ static inline void register_sysctl_init(const char *path, struct ctl_table *table) --- base-commit: a6fd07f80ab7bd94edb4d56c35e61117ffb9957e change-id: 20231223-sysctl-perm-empty-dir-7a71b4e3867b Best regards, -- Thomas Weißschuh