From mboxrd@z Thu Jan 1 00:00:00 1970 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 40ECF27B32C; Fri, 17 Jul 2026 15:35:30 +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=1784302532; cv=none; b=aP69cQAUEdVN3oe4WLr4YisUgE2UvARuPts2RKOp9UaQRKmIAe1e5p3zrbfQBPKby2d04uriWMYeJmfzKlApnWzwvMos2P58PvSvdYtze7L+SFWk8fHFl0nqwOcmZeAIQRl7R6X7/njuvD2Fj+c/q8L8ICRwFV5sNXcOnTCr++c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784302532; c=relaxed/simple; bh=gXtoOXom+SZ6fQtLujthmE72o636wo7yJ2Varaquo7k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dD9FKMk4oCh/iq91XKT+T+5eXQP0rdehWQk0LbFYWo4619Ux9zxZXj1kj6M51S8YvmoHpYzzPaG0RhKBLPIwuZLg/lglKogUiwqjZtTYDniEwcHAuxbC8o4LIJMzYGh8b4NGeex+6RdYkw/4azG0UdK0t7C+GMMgebd22zxk6ns= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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=C7A3hx32; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="C7A3hx32" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1784302527; bh=gXtoOXom+SZ6fQtLujthmE72o636wo7yJ2Varaquo7k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=C7A3hx32jx895MFvzYe4hAelAzoV5JrxYVL5DhNvu226PRfs8EQMVKcO32Fi49mK9 tGyECjWnZYRjaZD4Nz2T0lbWZlMiWVBTMpBzfOX6pAMH4c9VyX93D9RRVVUZVDAJfO rczg1jxOtPUk6bzpwTVQHSQJpUtGM37XrH0HxaAk= Date: Fri, 17 Jul 2026 17:35:27 +0200 From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Breno Leitao Cc: Andreas Hindborg , Miguel Ojeda , Boqun Feng , Gary Guo , =?utf-8?B?QmrDtnJu?= Roy Baron , Benno Lossin , Alice Ryhl , Trevor Gross , Danilo Krummrich , Daniel Almeida , Tamir Duberstein , Alexandre Courbot , Onur =?utf-8?B?w5Z6a2Fu?= , Matthew Brost , Thomas =?utf-8?Q?Hellstr=C3=B6m?= , Rodrigo Vivi , David Airlie , Simona Vetter , Dan Williams , "Rafael J. Wysocki" , Len Brown , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-coco@lists.linux.dev, linux-acpi@vger.kernel.org Subject: Re: [PATCH 5/6] configfs: Allow the registration of const struct configfs_attribute Message-ID: <91f5e9dc-1ba0-4e20-9f1f-5100aaaf0a88@t-8ch.de> References: <20260716-configfs-const-base-v1-0-c545a4053cb5@weissschuh.net> <20260716-configfs-const-base-v1-5-c545a4053cb5@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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On 2026-07-17 01:43:36-0700, Breno Leitao wrote: > On Thu, Jul 16, 2026 at 07:09:30PM +0200, Thomas Weißschuh wrote: > > The attribute structure defined in driver code never need to be > > modified. Allow them to be marked as const. > > > > As there are many drivers which use these attributes, prepare for a > > phased transition by using a union of const and non-const attributes. > > How many drivers need to be migrated? Isn't this a mechanism move? The actual constification of the attribute will happen with a central change to the CONFIGFS_ATTR* macros. But all users of the macro will need to be prepared to handle the constness. I have a branch with the full conversion here: https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git/log/?h=b4/configfs-const 73 files changed, 241 insertions(+), 248 deletions(-) Most driver changes are really trivial. But a few do more interesting things. My goal is to heavily reduce the amount of patches in this branch by merging patches to the same subsystem. The last four patches will be the finalization going again through the configfs tree. Thomas