From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=inria.fr header.i=@inria.fr header.b="faJ1eSGj" 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-fsdevel@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