From nobody Fri Nov 22 18:00:00 2024 Received: from smtp.smtpout.orange.fr (smtp-20.smtpout.orange.fr [80.12.242.20]) (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 F13621D5AAD; Fri, 15 Nov 2024 17:17:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.12.242.20 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731691078; cv=none; b=lB5WcyHFvOuXeyn7w6RTuLUQSrsqRUpZ0mQGSqHo43SEN8e12et9d5BeemqCaIqI8dNT82Ctut+heROqfP55Ld7GTI2Tqpw9Q4KLv3OQjU9+gP53SJ8z4pByRecxnvFjIMJVD7DKoytAzhgUYMNQDD8ykLIrZqv1MHPZ1no6kSc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731691078; c=relaxed/simple; bh=A3XfQLWFeEI3B8csH2YJxU0EFPGKWtOEhtBvLgkdqek=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=vGBhhAwJaZm1o5hOL8m5zp6X69J2vVgS7cdRpAX83LbDvh+J90gXiWEPsCd1zeHWG5TVI23leibQK3NKrHzsohOqFPEhy+rCQE1Ed8zQWVoN7mPTntLziXrMI5qHMR0PsP4kFYfyry8iMW44qYh8HxNnmtygXuh641yygY1B9VU= 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=oBd6nc/Y; arc=none smtp.client-ip=80.12.242.20 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="oBd6nc/Y" Received: from localhost.localdomain ([90.11.132.44]) by smtp.orange.fr with ESMTPA id Bzx9tMAAh8AEMBzx9t85Ul; Fri, 15 Nov 2024 18:17:53 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1731691074; bh=ISPrq17danPOpPQ4NpNMvjghXiy3pfLupLJvQtzC6JE=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=oBd6nc/YARXreRA3M9Pq2t+jvnNX3qzxwdqosxR/EPoYRzBDDWOAMc/bbXjeB4EuQ ZuUvWnIXFQVccJm+/ga018jdZdcvZ0o/LBC4b3ldYFA96bLHSxncOHAUJYJhab5f4z 8KKQDI6kn02UkBesWS9NBz0zqBxvEc9wemi91qkcuzHXT20PRU34FuJHvuyt9uEbvv dU+0/Dewjp2a4C2P7bmG6pBBlH2nAXoYtjBiQzLOleC9jk4QrUIA4WIFD36cNMRsvp XxvOhp8b8y9ny6Vl4ySHm1aZcJcqpQnlThMSTDlJfbaj5jjhIqjY65dDZAcguqtQ6L h/F6Nf3jNXWtA== X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Fri, 15 Nov 2024 18:17:54 +0100 X-ME-IP: 90.11.132.44 From: Christophe JAILLET To: linux@weissschuh.net, broonie@kernel.org, lee@kernel.org, Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , dri-devel@lists.freedesktop.org Subject: [PATCH v2] drm/i2c: tda9950: Constify struct i2c_device_id Date: Fri, 15 Nov 2024 18:17:27 +0100 Message-ID: X-Mailer: git-send-email 2.47.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 i2c_device_id' 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 12136 822 0 12958 329e drivers/gpu/drm/i2c/tda9950.o After: =3D=3D=3D=3D=3D text data bss dec hex filename 12200 758 0 12958 329e drivers/gpu/drm/i2c/tda9950.o Signed-off-by: Christophe JAILLET Reviewed-by: Thomas Zimmermann --- Compile tested-only. v2: fix missing const :( --- drivers/gpu/drm/i2c/tda9950.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i2c/tda9950.c b/drivers/gpu/drm/i2c/tda9950.c index 82d618c40dce..5065d6212fe4 100644 --- a/drivers/gpu/drm/i2c/tda9950.c +++ b/drivers/gpu/drm/i2c/tda9950.c @@ -485,7 +485,7 @@ static void tda9950_remove(struct i2c_client *client) cec_unregister_adapter(priv->adap); } =20 -static struct i2c_device_id tda9950_ids[] =3D { +static const struct i2c_device_id tda9950_ids[] =3D { { "tda9950", 0 }, { }, }; --=20 2.47.0