From nobody Tue Sep 29 08:26:18 2026 Received: from smtp.smtpout.orange.fr (smtp-66.smtpout.orange.fr [80.12.242.66]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE61D3ADBA2 for ; Mon, 10 Aug 2026 13:12:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.12.242.66 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786367526; cv=none; b=gZylKkqvHJBro594Bv91f7f3VYejiWOtmIEcyAgZm2MLPdG26KsV6cTySk+CmDJDs3baMV1c4GGuZxWAakCsshawXc5C1va2z85WbM13lNZ+UCU+9lwxodnSrW6icxp8G2FDR6S8ZMyaJcHZhV3D+h8UM66xZSQVADAZL+4/5yc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786367526; c=relaxed/simple; bh=4HSfdKJYU02RHTdZL9Ny3hH4A3XjtsJ0hBfuxaKqtd8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=D022hierm4aPiLqWhTI20jR1tRY+W5ro0M5VIt8My8bhg7WEGOjkLKwdziG7fQJ6afssS8v2N3D046ARjfbFYip6Iv0hvwBM/4IzzLLQWiDONEHVnyfOwvh1IJwA9EAePxvjDI/4K2h3K4/X+znv8K+1n0klrhe3oIBRg6wqgiY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr; spf=pass smtp.mailfrom=wanadoo.fr; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b=UEYzhaPl; arc=none smtp.client-ip=80.12.242.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="UEYzhaPl" Received: from device-101.home ([10.65.86.56]) by smtp.orange.fr with ESMTP id tPmGwmRMOzFXntPmGwGzjS; Mon, 10 Aug 2026 15:10:52 +0200 Received: from device-101.home ([IPv6:2a01:cb10:785:b00:6128:9b8c:c203:905]) by smtp.orange.fr with ESMTPSA id tPm7wupkZj7gftPm8wexGk; Mon, 10 Aug 2026 15:10:45 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1786367445; bh=Mqst24K6Pm7iTM7Gbhg8zqi2bFNkFpVztNiQ2fwwjKY=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=UEYzhaPluzTyUTw19Vsrgjg07ywDGINFVHpwKG5xwyJMmO0WIpAQ7gN2TgMLbUKVe 5+YXS22mLynJQysnZTLH1qYlwtkspwxPqdzVlMKUparHjK3FjNqny6ioPFq0xOGJh+ +6lZFAcc/ZCJPPH2glqNrMePmDD6TRZV1uZr9UdoZpG3qEY1MrLd655UzNCwGpd77L 756LyMlIhb2ol5H29yOfYMeHlBkTb2OxmbyHWYUElFXAxtO6CwCt1OjbcWaQKITFKl IVgq1xLMvlusVYgYSoVrTcGcc5RGOYBZ7quN7veBY2pwJLm66EmYAxchJcjwuUKjfV NnKhJzalcgUwA== X-ME-Helo: device-101.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Mon, 10 Aug 2026 15:10:45 +0200 X-ME-IP: 2a01:cb10:785:b00:6128:9b8c:c203:905 From: Christophe JAILLET To: Arnd Bergmann , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH] sbrmi_i2c_regmap_config: Constify struct regmap_config Date: Mon, 10 Aug 2026 15:10:40 +0200 Message-ID: <4b1f177cf2967ed27dd0159b3fcefeb96d2bde0f.1786367419.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 'struct regmap_config' are not modified in this driver. Constifying these structures moves some data to a read-only section, so increases overall security. On a x86_64, with allmodconfig: Before: =3D=3D=3D=3D=3D=3D text data bss dec hex filename 5776 3472 320 9568 2560 drivers/misc/amd-sbi/rmi-i2c.o After: =3D=3D=3D=3D=3D text data bss dec hex filename 6544 2704 320 9568 2560 drivers/misc/amd-sbi/rmi-i2c.o Signed-off-by: Christophe JAILLET --- Compile tested only. --- drivers/misc/amd-sbi/rmi-i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/amd-sbi/rmi-i2c.c b/drivers/misc/amd-sbi/rmi-i2c.c index 463a9a757464..3ed0a4244be7 100644 --- a/drivers/misc/amd-sbi/rmi-i2c.c +++ b/drivers/misc/amd-sbi/rmi-i2c.c @@ -86,12 +86,12 @@ static int sbrmi_common_probe(struct device *dev, struc= t regmap *regmap, uint8_t return create_misc_rmi_device(data, dev); } =20 -static struct regmap_config sbrmi_regmap_config =3D { +static const struct regmap_config sbrmi_regmap_config =3D { .reg_bits =3D 8, .val_bits =3D 8, }; =20 -static struct regmap_config sbrmi_regmap_config_ext =3D { +static const struct regmap_config sbrmi_regmap_config_ext =3D { .reg_bits =3D 16, .val_bits =3D 8, .reg_format_endian =3D REGMAP_ENDIAN_LITTLE, --=20 2.55.0