From patchwork Fri Nov 15 16:44:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 13876622 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 921E0D68BCE for ; Fri, 15 Nov 2024 16:45:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D87F310E8A4; Fri, 15 Nov 2024 16:45:04 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="UHJnlDmt"; dkim-atps=neutral Received: from smtp.smtpout.orange.fr (smtp-21.smtpout.orange.fr [80.12.242.21]) by gabe.freedesktop.org (Postfix) with ESMTPS id A602E10E8A7 for ; Fri, 15 Nov 2024 16:45:02 +0000 (UTC) Received: from localhost.localdomain ([90.11.132.44]) by smtp.orange.fr with ESMTPA id BzRKt9S50PqyaBzRKtzdae; Fri, 15 Nov 2024 17:45:00 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1731689100; bh=g8Wzp5+7fJS/vNhoxSgPrU0/wiW6HwJG9NHcRVskjnA=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=UHJnlDmtghCt+DMn9DMXGCZ7Gil6JVGU9YC9L3LHs7vp6stA5ABULWORq+tDjWDlw Tc4k1iYJCnvJHpZD8tilknCJL9DQT3JmzL5vnh4AbRRHTWMbm/RacwVf8l4k8Uy3X8 Iu0GEF8mqrY9diLsqMWhGMQBajm0fSJ3Ee5/XJAVqaYsL6T0IAgK7yFdlSFexSt7zr OpKOcULXJ8/koIo0CnIHn58bDrihkcvdLJiOpoa69IlIHqTRCPnKH/fNDt1NeMq1ZF ee/dedxkmslMOTKhNNYCvZNtd+9KOeI/Ium9eVKuwJ4Y4LQWbZJbtg1IiWoYcmrwol HP+nNmdwBza1g== X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Fri, 15 Nov 2024 17:45:00 +0100 X-ME-IP: 90.11.132.44 From: Christophe JAILLET To: 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] drm/i2c: tda9950: Constify struct i2c_device_id Date: Fri, 15 Nov 2024 17:44:27 +0100 Message-ID: X-Mailer: git-send-email 2.47.0 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" '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: ====== text data bss dec hex filename 12136 822 0 12958 329e drivers/gpu/drm/i2c/tda9950.o After: ===== text data bss dec hex filename 12200 758 0 12958 329e drivers/gpu/drm/i2c/tda9950.o Signed-off-by: Christophe JAILLET --- Compile tested-only. --- 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); } -static struct i2c_device_id tda9950_ids[] = { +static struct i2c_device_id tda9950_ids[] = { { "tda9950", 0 }, { }, };