Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp172486rdb; Wed, 21 Feb 2024 23:09:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVyx45B4Gi+ix9G3K+No7VmKolOrxdzRpgcHmb0sO+dQx0/9WB47fKiYf1NWcTInBoHo5ImJdamBGUTGIDCRXVMisCaaM1WrARyd79S8A== X-Google-Smtp-Source: AGHT+IEILAHwpsPvH2/eYjcs8NT3M9z3oN4UULo5uyqLUIhMcCCUcy0qpkJWiV/E7rCLbH7i8OHE X-Received: by 2002:a05:6808:1403:b0:3c1:5c16:71bd with SMTP id w3-20020a056808140300b003c15c1671bdmr9631827oiv.43.1708585742493; Wed, 21 Feb 2024 23:09:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708585742; cv=pass; d=google.com; s=arc-20160816; b=FHqcFjSRBhSQQ37nsdadX1sw8bnw2AznFR+WE1I5K4vi0etbTP+ehsvL7D9ZVoiNG7 KcDypUW+oWEA0SzgsKZNPCQe0kx1ssuRBp44chV0zID6+tyEPEueLSDf70CG75zyzFl/ BdiNL6MVAyU01ujQLABPMRhtuUCm2fl4F7j2tCQsg8UX9EZU6RvsQxVdfc44Yp50D9Er yp20MZ8O7QWnzF79sxGKi1P5xEt59Qgnn6c3hTizGVaSlhg9f3xEVZQTcef1I7uTq7aC lM8pGEAscsrmRGn2wADTw5U3e4K/MJ/9fylHNYz97nXCgomRZ4nTV7aXklJtvIFdN1fg jE3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=X71Sy0EjKNS6NzXCYgApzwUmlel8VsTWbVPWdtfUJ9Y=; fh=bv1xmQMLoUkjMaBG31+T8n2MW2r2VJMdwGgIEDt2AwQ=; b=VFjU2mb3/vBgas0cqxOqfKI7ua9LuwfKo6Suke61NSnfX1XwRbLtEWn1GJ8ksSoxLY lCJ61R2buA9YOQ5XbUEKcHXUrQ0LHchDcxjV70hDMT8idY2F59zG25eAwM7AxZw/rEwk n21NFhdljtLe0IATY5jWyGBTexLbCF8Au9O8FdIlFNfk7yzjTVL5OluvdqbH0bAocQID aeWW3T8cV+LIUUxMqUMF86xprPGpe00XM2qxylUjHpXLhBZA6R7g91EQF6obJaXrqOPZ eOWBL9UTwKjv460GzbDuQESmdPy8RoYIyw0tIQR5pc773N5xHUs00PrEl1tjCFMqRD2M WUWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=kfpfrpSn; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-75999-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75999-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 31-20020a63145f000000b0058974d3c296si9778182pgu.815.2024.02.21.23.09.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 23:09:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75999-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=kfpfrpSn; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-75999-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75999-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 507CDB238E7 for ; Thu, 22 Feb 2024 07:08:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D00BD17C67; Thu, 22 Feb 2024 07:08:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="kfpfrpSn" 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 536F4FBF4; Thu, 22 Feb 2024 07:08:21 +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=1708585705; cv=none; b=fmU1zrJOudW0bPtaMZadLdgkSLprR7tYKkge/XFmqPcput0cnbjEDYfogjI+u+04OC10zvEhU0uLQJ2kzwLEiK8KmkRjgH5Cp/R5id6zryxy2v6l793trWN/SRGCPn3hNlGHS8UgxkXeMTA73p/BULKfg9ViIKwhqaxBIvYeedw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708585705; c=relaxed/simple; bh=4zCBJsh7fJS40bmuhRJsZyTvqmWDnPyWNdh+rXA5TBE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PNN/hJkXbVU+9gzBgDnwsGZAaUVn+lWvqGhd9R4hhbjNX/Wk5m27/ATumhNgd0ki7tnzeZYB8WIXORPaqWMD/GYjHS+Ufx4uZwHxnl1lDuXKqE4y6maCZv+4wdM+QhSVfAW48uSBjDn7PY0SyECc/wAhm80XfP37aSboSWc9qJA= 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=kfpfrpSn; 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=1708585697; bh=4zCBJsh7fJS40bmuhRJsZyTvqmWDnPyWNdh+rXA5TBE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=kfpfrpSn5Sosahn9w0/N4Hwunvz/qC0SqCcA70XH9LYfF11Y1Bvyz/e2FzgXTVI80 D89tkTexwvJib32t8Nl+fWegmBEnjtoxweReaKb2iXzisfkAraIAMuHBgU9eAfTww1 u7QLIfFaam4nk6FIYvVD656XrP7G0Uta9mIg2B0Y= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Thu, 22 Feb 2024 08:07:39 +0100 Subject: [PATCH 4/4] sysctl: remove unnecessary sentinel element 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: <20240222-sysctl-empty-dir-v1-4-45ba9a6352e8@weissschuh.net> References: <20240222-sysctl-empty-dir-v1-0-45ba9a6352e8@weissschuh.net> In-Reply-To: <20240222-sysctl-empty-dir-v1-0-45ba9a6352e8@weissschuh.net> To: "Eric W. Biederman" , 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.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708585698; l=791; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=4zCBJsh7fJS40bmuhRJsZyTvqmWDnPyWNdh+rXA5TBE=; b=WV3z1hGVhUXi4muzHz37oKOsSKmI58FcQqf5wS6HJGnQ+1+6bAHJbYjCw1dcDstuNx872V0W9 QP2m1pZzqyFBT/bAmcNoZ6/2Z3Nv6g6kx4zPCXWQul/wG9igeJlNI6V X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= The previous commits made this sentinel element unnecessary, remove it. Signed-off-by: Thomas Weißschuh --- fs/proc/proc_sysctl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index 4cdf98c6a9a4..7c0e27dc3d9d 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c @@ -30,9 +30,7 @@ static const struct file_operations proc_sys_dir_file_operations; static const struct inode_operations proc_sys_dir_operations; /* Support for permanently empty directories */ -static struct ctl_table sysctl_mount_point[] = { - { } -}; +static struct ctl_table sysctl_mount_point[] = { }; /** * register_sysctl_mount_point() - registers a sysctl mount point -- 2.43.2