From nobody Wed Dec 17 15:36:52 2025 Received: from smtp.smtpout.orange.fr (smtp-15.smtpout.orange.fr [80.12.242.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B713A152515 for ; Tue, 9 Jul 2024 20:38:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.12.242.15 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720557483; cv=none; b=FE3w4ZaJdvz3PHTBql2Vy+ybUF/CPDCs4kkWZkyKU97mw0IiFNuVLmqWScc5PvbG8XnEnofyNtPtCKW/uU82Iq7cNwLyZ/mctbBtZk00ZeKh+/U5XtddWSJLmG8iDyCGZ0DhYJ130whlu/drl4tKWhko9Zo/HnMB7db+I2UlHQ8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720557483; c=relaxed/simple; bh=llFZ5aPJDx2WrJXH1NObb7neLFOzkO7dYUOOKAZtZ0I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=t7PwU1PHFhuZnG6Ea0TyEsgPRVt24fAbibVOOi2Qrf8BL0Or8InNkn9BzwMAwsrEI9exo3qwlLzGEIFsXIaRp7LYda7bqexkdpRaO9XyX2jf0ZC3K5BUyTkLRQQviImLB24Qo1VzmTV+LpA9O9iuR/GOKFWRCIaYtOGqm7fDAlQ= 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=AbY2fAmZ; arc=none smtp.client-ip=80.12.242.15 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="AbY2fAmZ" Received: from fedora.. ([77.130.249.53]) by smtp.orange.fr with ESMTPA id RHavsh9C6phyvRHazsZbXS; Tue, 09 Jul 2024 22:37:53 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1720557473; bh=+me7JYfSesC2CWqSWLCbwjuqC3c9WAmwPVCVuqT+erw=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=AbY2fAmZ6eUgGUwipFLztgOcs6AFrYXSfOah4P30/5H6N4YZU83PTd3gmNVMuXs9x KEzYhrhxb8m2TfNUZeAuhD+LzM5t0bmOj9ZRJlE4KTz7UK8HxHZOsHSAQUMEdpwVDA Xame6nsUg851+J87XF9amVcXLb+/CCasTdxZKvyJZrBWF+eHP+SnOf5HZYLjxlLF+G SOjkkv5aXHlOBu32vanOoGo7ydg/qr3qXHjWbnrN+oVrhzm4flUmNJhSqymX3uYCSY T4J3Ny5tiPs8nA1dlZnFlG+TJH3gG2sL/BV7sj7j6MEpp/OzhskrjDO7DcTaNFcIh4 2Como0q/yAY0g== X-ME-Helo: fedora.. X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Tue, 09 Jul 2024 22:37:53 +0200 X-ME-IP: 77.130.249.53 From: Christophe JAILLET To: linus.walleij@linaro.org, lokeshvutla@ti.com, nm@ti.com, robh@kernel.org, tony@atomide.com Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH 2/3] pinctrl: ti: ti-iodelay: Constify struct ti_iodelay_reg_data Date: Tue, 9 Jul 2024 22:37:44 +0200 Message-ID: <40d6e67ab4e73d2cbe7ca0060ac27afc894fc415.1720556038.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.45.2 In-Reply-To: References: 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 ti_iodelay_reg_data' is not modified in this driver. Constifying this structure moves some data to a read-only section, so increase overall security. On a x86_64, with allmodconfig: Before: =3D=3D=3D=3D=3D=3D text data bss dec hex filename 17259 1788 16 19063 4a77 drivers/pinctrl/ti/pinctrl-ti-iodel= ay.o After: =3D=3D=3D=3D=3D text data bss dec hex filename 17355 1692 16 19063 4a77 drivers/pinctrl/ti/pinctrl-ti-iodel= ay.o Signed-off-by: Christophe JAILLET --- Compile tested-only. --- drivers/pinctrl/ti/pinctrl-ti-iodelay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/ti/pinctrl-ti-iodelay.c b/drivers/pinctrl/ti/p= inctrl-ti-iodelay.c index 451801acdc40..65f9439d0d5b 100644 --- a/drivers/pinctrl/ti/pinctrl-ti-iodelay.c +++ b/drivers/pinctrl/ti/pinctrl-ti-iodelay.c @@ -783,7 +783,7 @@ static struct regmap_config dra7_iodelay_regmap_config = =3D { .max_register =3D 0xd1c, }; =20 -static struct ti_iodelay_reg_data dra7_iodelay_data =3D { +static const struct ti_iodelay_reg_data dra7_iodelay_data =3D { .signature_mask =3D 0x0003f000, .signature_value =3D 0x29, .lock_mask =3D 0x00000400, --=20 2.45.2