From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 203521C2DA2 for ; Mon, 13 Jan 2025 17:53:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736790810; cv=none; b=YTe4Y9jFkfOOuArFp1aUvh7vM5Hxkgr6x6PUS6wxrhc2JYsGpGcdzunDbIVbXaCi5bYdUbZl9XKgqnFICF9Z/m4tioZIrEOn+LV6EypBmIn42WnM1OvXv5zI42KnlBQgzr7uPVHY+p2UJQFBCmAnGzPdnVhRVvmENB689F1uLrM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736790810; c=relaxed/simple; bh=Mbaqz/iL9+y+LbYxvbXxmpMiirddhpJkYFEMZRIxN4g=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=kQ65AQhq1fpnhXakn8xYAxIhydjUmJmDKO2IxVS3hex8SLRLSR6+k53TSpB8dmurz9tAL1zORwtFMphNuvO8rM7E/YWP2osEoXiDXiNpJFbhz7QA8RUa/rnRPJWA0QwyVXZZbh08WNUJZfZsNGYRd9u56Rkzjw2l/OkKwqlrR6I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=d3NcD6x4; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="d3NcD6x4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5136CC4CED6; Mon, 13 Jan 2025 17:53:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736790809; bh=Mbaqz/iL9+y+LbYxvbXxmpMiirddhpJkYFEMZRIxN4g=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=d3NcD6x4k14wUkN/0Cv23DtM53T1/jRUnqOy81HomBcukfpiKRNO5HmJGz45JxtG9 DRPLfrIT/J5+YxTceFcL34R7Z2lRFtj8nw/IxNaCNPWFKrpvzCEceWflrABRYq/9Ko YsrZyt2P2MoNnTTM5CjnkeGStcSsFGM6bHWRk73GeKleQbKc6iXcdAb23ttbhta4rs fUJV3WGsiuvJtYaWENhFy1UJ16xfUYIWnRLj2Hfk5q6kIvY4kehj82DJR7mE0AqNYH 2Xp6qaBAcb2rNCqVzudiblSJzZXPgD1zB1QvUl86SwhMhKDnWJMtUs8uVbOiDcZky8 Hsrq3x5e/TfxA== From: Pratyush Yadav To: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= Cc: Tudor Ambarus , Pratyush Yadav , Michael Walle , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mtd: spi-nor: sysfs: constify 'struct bin_attribute' In-Reply-To: <20241222-sysfs-const-bin_attr-mtd-v1-1-ee13140a4e9b@weissschuh.net> ("Thomas =?utf-8?Q?Wei=C3=9Fschuh=22's?= message of "Sun, 22 Dec 2024 21:15:55 +0100") References: <20241222-sysfs-const-bin_attr-mtd-v1-1-ee13140a4e9b@weissschuh.net> Date: Mon, 13 Jan 2025 17:53:27 +0000 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) 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: quoted-printable On Sun, Dec 22 2024, Thomas Wei=C3=9Fschuh wrote: > The sysfs core now allows instances of 'struct bin_attribute' to be > moved into read-only memory. Make use of that to protect them against > accidental or malicious modifications. > > Signed-off-by: Thomas Wei=C3=9Fschuh Applied to spi-nor/next. Thanks! --=20 Regards, Pratyush Yadav