Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2202285lqo; Mon, 13 May 2024 10:38:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXImBBgP2BYxgIiryQfBJazzLdE90pjCo8NacP3RGnMjLwT+LYt4JoI0eLufhZ9LI5eoYur92SQr2HxMTJWFsJBJ/T3SUriUHy/bUuQXA== X-Google-Smtp-Source: AGHT+IGxHnW8iEw0H+xxxhKps/Rw6Mymj07nn3bUzg41me20jcaaeiPbT1p0+Zq8cGP2bCDqO0I3 X-Received: by 2002:a05:620a:3711:b0:790:98ba:67c5 with SMTP id af79cd13be357-792c75ae6d9mr1417071385a.33.1715621908849; Mon, 13 May 2024 10:38:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715621908; cv=pass; d=google.com; s=arc-20160816; b=flp4TKf1uvPmsOWxfkkPli1vMOHQBefc54YoQzMKijZ64+ApK2HpcoHYi12OTgQSLw a+1h3LPS8meEwBMFUq1EtbJKewwOxqI/PPoy3pJeCI3GcW75lStwz1WMGaZfQ2YgGOj3 gXwTmCN86rwF1vTyz7LVif0OcDMDsJDfQchynZ3QwQroiFRdtcQdAEj+ZRkibOQ+kd9L qdx7KmriEGi6aFomVcqnis+zYW+QjxHfMywrAYRQ0mu6OEcF7v8n7dEM4jjKz0z/p4no c30ihdnpXxY3diWJspDmloRSfmBjnvWrvxqvr0JbQIkYZJW2ctbcFK8IL2dBiyHjlYeI B1EQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=A26Rl7MtM3B51oWgHFeoUVOcPLJ5BY3Z+dYCWIU7CTA=; fh=ixb9tRM5/LVfnyDulMcHSMAQJBjHgXrp+JTesKorGNc=; b=ZHmXRSNMHkGiFbI9d/ZTbMkAnldf+ASjx174xJvB8tbXDJ/wLJHINrDuGbn4O8kQmF pufRAJ7yE1ICrOe2xJbTX10qacUuSGjGA2zNkYLq+lLZZtshrHZ3xQ+6WI9oruMO+lPX qWF4iRbQpuhI3aop+7/o39pPCoPJ+rHfXSJ0vkHqcBS4L0hhJIwkKC1roVv4hXBP4x6Q +D8QAxAlcTkf28PJTyFj68GL/t/xhhgOn6OEv3SnbgL63FxeSjz2O2bE/Rxnk4I443Wu K8wEl+ODg40FnKyFbPS++y6CxYHeYx9eYqfbw8kDUugdjWSdT7mYtBqlYGs7oGFvg6Mg yjJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=W1sQ4L4K; arc=pass (i=1 spf=pass spfdomain=wanadoo.fr dkim=pass dkdomain=wanadoo.fr dmarc=pass fromdomain=wanadoo.fr); spf=pass (google.com: domain of linux-kernel+bounces-177921-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177921-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792bf29716dsi1074379185a.167.2024.05.13.10.38.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 10:38:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177921-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=W1sQ4L4K; arc=pass (i=1 spf=pass spfdomain=wanadoo.fr dkim=pass dkdomain=wanadoo.fr dmarc=pass fromdomain=wanadoo.fr); spf=pass (google.com: domain of linux-kernel+bounces-177921-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177921-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8E3801C23248 for ; Mon, 13 May 2024 17:38:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3305C38DE5; Mon, 13 May 2024 17:37:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="W1sQ4L4K" Received: from smtp.smtpout.orange.fr (smtp-24.smtpout.orange.fr [80.12.242.24]) (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 718DF2C1A0; Mon, 13 May 2024 17:37:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.12.242.24 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715621872; cv=none; b=S6N90BkYAG23yY+KI5lQyjP/lJzXc43dFe1uKhj0mef7axoDecNH//G9NIq8OOU0qItYfRXnR8vnpFPUdYBMoYz6wEA4D1rWVSCVJjJAQEnbM32T76hEL2bSLralmFb36kSrfpf7d+jQRCTb4b/U99hUehES5RQ0dd7lL2rmW5U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715621872; c=relaxed/simple; bh=mmp/3E5t0JWgl4/OYoYB0/Z3Zg7EBCcBulwzfpIlR2g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ElQzqRw7btoLi+SnmGpQB3mnisaDzAtjFXyixbe0QlNUcuHWavL/2D/eM3rigul1d1fGlckWoA2CDB25O8cBYmYJqTX6cjQIzOytsdBYyUK6rjyMSZkEV3DoZi9BN+qMG7ZBYd8rwv5flq+alIZsUrsbm4XMbidrpBNOoJLtyzE= 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=W1sQ4L4K; arc=none smtp.client-ip=80.12.242.24 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 Received: from localhost.localdomain ([86.243.17.157]) by smtp.orange.fr with ESMTPA id 6ZcDs0lh7ME2z6ZcMsL81f; Mon, 13 May 2024 19:37:42 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1715621863; bh=A26Rl7MtM3B51oWgHFeoUVOcPLJ5BY3Z+dYCWIU7CTA=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=W1sQ4L4KZKDLj0JG8sMTDYYCXP31N2hT7k41A6sBY2Z8c0LmZkf9HmTV/yO2SncVE fgorRdt1du9JSEGgtxOsjW91X/7ATkARIMK+pmfb4WbV5x5hzRPtusgNdtVHouDF3L OqZrK0UvU6SQ01Fi6g0FG6FOTaZCiJYN0Gf9HnzRQi9gSWxCC0eUxSXeKuAXU4mWy6 4YJe+ZsrlXunh3/sPF2VAAlGiwUES0zAWQEt38sO9Ba/mnlhnzUWeKbsfmSIp373kF bygSM8HADDUbJfdv1hbyvQ+HVlzyFBhQ6LoWuQd0F44GMSmFGRJHgiwtSqXZQVu79B mp4n6S/LpS+PA== X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Mon, 13 May 2024 19:37:43 +0200 X-ME-IP: 86.243.17.157 From: Christophe JAILLET To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, cezary.rojewski@intel.com, pierre-louis.bossart@linux.intel.com, peter.ujfalusi@linux.intel.com, yung-chuan.liao@linux.intel.com, ranjani.sridharan@linux.intel.com, kai.vehmanen@linux.intel.com, srinivas.kandagatla@linaro.org, bgoswami@quicinc.com, daniel.baluta@nxp.com Cc: linux-sound@vger.kernel.org, alsa-devel@alsa-project.org, sound-open-firmware@alsa-project.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH 4/6] ASoC: Intel: Skylake: Constify struct snd_soc_tplg_ops Date: Mon, 13 May 2024 19:37:23 +0200 Message-ID: <48f096b6dc617ecf3ca53211c2a696a4df33b21a.1715526069.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.45.0 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: 8bit Constifying "struct snd_soc_tplg_ops" 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 58844 5282 56 64182 fab6 sound/soc/intel/skylake/skl-topology.o After: text data bss dec hex filename 59004 5122 56 64182 fab6 sound/soc/intel/skylake/skl-topology.o Signed-off-by: Christophe JAILLET --- Compile tested-only. --- sound/soc/intel/skylake/skl-topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/skylake/skl-topology.c b/sound/soc/intel/skylake/skl-topology.c index e27f0fc3d897..602ef4321122 100644 --- a/sound/soc/intel/skylake/skl-topology.c +++ b/sound/soc/intel/skylake/skl-topology.c @@ -3470,7 +3470,7 @@ static int skl_tplg_complete(struct snd_soc_component *component) return 0; } -static struct snd_soc_tplg_ops skl_tplg_ops = { +static const struct snd_soc_tplg_ops skl_tplg_ops = { .widget_load = skl_tplg_widget_load, .control_load = skl_tplg_control_load, .bytes_ext_ops = skl_tlv_ops, -- 2.45.0