Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp188088rdb; Tue, 19 Dec 2023 13:21:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IEbiIL8OkqqoMQy12osOLhCzAWztoGxk64texndjGALP4U6ZROnnSiaBjbv+5lOvKrLVdyn X-Received: by 2002:a05:6870:970c:b0:203:b0f3:68ff with SMTP id n12-20020a056870970c00b00203b0f368ffmr5584254oaq.79.1703020916712; Tue, 19 Dec 2023 13:21:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703020916; cv=none; d=google.com; s=arc-20160816; b=PqjfPY38tEPHUliE5+ihyupqhLeTz/SDB/X67VXogzLdKAonMVobsMwjNkWhzT00X2 qmA2DvaNjyp/kdnkc0AiqooGgnUxGpYWy2wYFBJ1ScGZ0TgcD2MCbHf+4Pr7Rpvivsob YMomucFsjFi08RrB7qeCItDJYGvsdofz0e+ZQtXq+E4fkopkuihSTS3tIq6nr271tWgh +t0PzKMLexauW+Emri1QWSnCIKT/L6wn6RMeldB9eczecLMpgrIGpd9KRo6O4gxrzPCM XYr5lNzKupM+nKPI7fG524M8y1TyVODxdGI8gK7bBa1KPxyR7Qm4WeuQjmCN7xduW3pZ vy9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=T6+SsNZScQS1eMrdG8r2jB2esUWxn8xnhRMnIHOnfWw=; fh=4cXt4k/95vHH2qTk6VwtxYJzUTvlh6rD+yi7P1qBspM=; b=M7WPfE7OFNvT50UY7h7sD5YPUnksrusf2+YPOlNH1p8Zf7ruUuNp3xINQVgp/t1nu4 M3e8QhT9fS7TLmb2J5561/cloKlhzDeCRj6Qi1DYTyLsXpccKTxw0rADXCEKaKBGgXYe F/RKPG32si6pKsHQKBwhta6Se0qATX0oFWic8IQglvNvW5luG3yOcbkU8ZCXuFRHiJHP 8uByN3Nzk/RmASjEk+17xemdWz3mwdOrgtEIOFXgdhalrwUcbdohuwJgY2IHbt8/mo74 AVV5GDbUblcm0/uhGXvCZk8a4cS8j4CQH+Hx+YNLXUFxU7m+ysBsDv5TnCAjLS8mVliX povg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=faJ1eSGj; spf=pass (google.com: domain of linux-kernel+bounces-5964-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5964-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u2-20020a63df02000000b005be03f0da7csi20272495pgg.61.2023.12.19.13.21.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 13:21:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5964-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=faJ1eSGj; spf=pass (google.com: domain of linux-kernel+bounces-5964-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5964-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr 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 3F507287891 for ; Tue, 19 Dec 2023 21:21:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 256003C48B; Tue, 19 Dec 2023 21:21:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=inria.fr header.i=@inria.fr header.b="faJ1eSGj" X-Original-To: linux-kernel@vger.kernel.org Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) (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 93D1B3D0AF; Tue, 19 Dec 2023 21:21:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=inria.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inria.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=T6+SsNZScQS1eMrdG8r2jB2esUWxn8xnhRMnIHOnfWw=; b=faJ1eSGjRVU/VL21IliFaaK3hMpLy5Z6vevuC9wkuFeb7Tk9mUrgp2xD glV0dtWhOz4IBfciHRbdzhBiNx8+WPYc9PlEfdOQSv8Fi7Xh00Hp0TgCg nHDTlx/KlSnxkAPKzx4beooZ3ecmKC+VLTiIBqn4fctIOonzCqFiPiG5O k=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=julia.lawall@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.04,289,1695679200"; d="scan'208";a="74897141" Received: from 231.85.89.92.rev.sfr.net (HELO hadrien) ([92.89.85.231]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Dec 2023 22:21:26 +0100 Date: Tue, 19 Dec 2023 22:21:25 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Luis Chamberlain cc: =?ISO-8859-15?Q?Thomas_Wei=DFschuh?= , Julia Lawall , Joel Granados , Dan Carpenter , Kees Cook , "Gustavo A. R. Silva" , Iurii Zaikin , Greg Kroah-Hartman , linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v2 00/18] sysctl: constify sysctl ctl_tables In-Reply-To: Message-ID: References: <20231207104357.kndqvzkhxqkwkkjo@localhost> <20231208095926.aavsjrtqbb5rygmb@localhost> <8509a36b-ac23-4fcd-b797-f8915662d5e1@t-8ch.de> <20231212090930.y4omk62wenxgo5by@localhost> <20231217120201.z4gr3ksjd4ai2nlk@localhost> <908dc370-7cf6-4b2b-b7c9-066779bc48eb@t-8ch.de> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) 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=US-ASCII > As I noted, I think this is a generically neat endeavor and so I think > it would be nice to shorthand *any* member of the struct. ctl->any. > Julia, is that possible? What do you mean by *any* member? If any is an identifier typed metavariable then that would get any immediate member. But maybe you want something like <+...ctl->any...+> that will match anything that has ctl->any as a subexpression? It may be necessary to put this in parentheses to address parsing issues, but the () won't need to be present in the matched code. You could also use assignment operator aop; rather than =, to also match += etc. julia