Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2205864lqo; Mon, 13 May 2024 10:46:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXqG5RV/mCu984v9gKvnu59FZoxySmZ0PY0dQf6PzkNcStTQAWhUVnqG5LxHKmZv9S/OMcyOQzUWGm7IbPtbrCeLcR8VGVgz9ZlykzTLw== X-Google-Smtp-Source: AGHT+IFwZFYK8mEo0FW49LcTVih1ilpkUVGxaVLpVMJVSEcvFkwiBgsxorf029q2swaF4bltDIse X-Received: by 2002:a17:902:c9cd:b0:1e8:7906:5be3 with SMTP id d9443c01a7336-1eefa13a1c6mr129994845ad.18.1715622407394; Mon, 13 May 2024 10:46:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715622406; cv=pass; d=google.com; s=arc-20160816; b=dGZ7oju2KOsqcS5Qgv7OUtnghskjSqcgdJdXtswAtxdiELvswVuZjDeVRVoNdycmuf mNdEiqqxKY3+Gx/UHOcCtYTmrIR6f5aPBfQe4IhOoR1VnCA1WDP04t8TH6oFtHocQr2U J3j3uwuT/bnnI+RSt01gHIQRxLmpeS2jUr3qSo25pWIOgHVZcciwEJCvZxxBVLA6VxWU iwduOVJ9HN8RWnM8mpeRcx/7T67Hk7hg5P2X+NLwbaZRYJf0wXFskzaWOpiHMzzXl43y Eo5z14IliJo4Lx91lbTYFWPs/oQqXWDd0JkoUx7R+s5mG08EA39VCck+6xwZwRuJxJqD GPgA== 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=1XoI0qrkb16jr4M55oFmdJGGB7I4eLKt6bnnOAdsEJI=; fh=ixb9tRM5/LVfnyDulMcHSMAQJBjHgXrp+JTesKorGNc=; b=W42gAgcWzzFGc4PqQGInjVlLwwtUi1LC2fEvhY8193mSqcRItdWEK2VcM+Crho41C/ HCtsjXN1ch+78zYt8UJUbGsMM+T1A5QvXtb04e2v5/fg0e1g2PpX6aBzfXPWq9FFnm7f aEAhC+YiOT9WxFp6FIV2KFBNoH2tkycSQXCq4Cr0wXeihRUFYev1dYffVV+lsUoOVPFa LcKCQYQSjvUy6KJFbPAAoqQJb62Wtlac+GtWbv43wgQWZLvJ0VJRTb5P3pFAEcRHDzyE YBRvGjAmCloMOctvRhlIfvOb+793YKpIFaM2ezHPhD/YmaxkRCI/KOrg8o888s1bkMRy ocdA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b="ES/EOgJ9"; 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-177933-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177933-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-634115305absi9153877a12.443.2024.05.13.10.46.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 10:46:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177933-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b="ES/EOgJ9"; 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-177933-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177933-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1C4562869DA for ; Mon, 13 May 2024 17:46:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7DA262942F; Mon, 13 May 2024 17:46:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="ES/EOgJ9" Received: from smtp.smtpout.orange.fr (smtp-23.smtpout.orange.fr [80.12.242.23]) (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 66742224CF; Mon, 13 May 2024 17:46:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.12.242.23 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715622389; cv=none; b=Rf1CLVqhymYGjqMDKsOqrsJAqETRy8/cuujB0MB4YdX1wd4CTwRZ6Dw5j5616JGTq4PD9SmzobP8FrnkBnRC11JnE9vs/S+GwiZAd/zbS7LA9Ib2UThSzHAIWPCbT+ZCHxCdigInpwDWW+SH981AiNTxuxWEv/8I8Nd3qBk2im8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715622389; c=relaxed/simple; bh=WdpcdrePfNwFsbix0el9X+8Z4a1fgWVJwTo9rg3XJJ8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KsFpC4MBEEGxFStzkxtu7t9HJHOHZC6glEZcWi7u7SKPU1WF2AcLhZ5rlsnYGaJf5Y3a9B2tG+QmtgPRU6usucs7GwFn8SWzBhoobTtUezOFX3X5n1R9T6gKucM6SKja6rjDNIN0YVZEzoVsNqwIfKt2jxVELZzp9mEGUH9/igY= 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=ES/EOgJ9; arc=none smtp.client-ip=80.12.242.23 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 6ZcDs0lh7ME2z6ZcIsL80i; Mon, 13 May 2024 19:37:39 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1715621859; bh=1XoI0qrkb16jr4M55oFmdJGGB7I4eLKt6bnnOAdsEJI=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=ES/EOgJ9+o9BPNKuuyYur0AGTIYX0XLGxXu2HluR7bjjtu66uy6rWHVo/iKF3pU6y JKm8sxRQdmfgDD+XHlvwH2DntmE4uF+hgUONv6Fm9DVXj+7xJx/fxE9u4xsDv9LPeS v7BsukwIRkRJyPM1aXye/w95YCk+GS974eSBzFDfL7UVUw37BZBFvLusX7U1Ub68j+ +rZrfOifHQCi6Z+/ddV6+kmhlsmaBFUJT2FHLjGLBTQASPoijThCxFctm3OcdLxOdU TWuJqJCJTUBqR8qdb00OEtPkmTi+UFBkrCfMVMg4IjWlGu9pa38fiHwTr5d0/OrP4o 0UPNRn9pa9/9A== X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Mon, 13 May 2024 19:37:39 +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 2/6] ASoC: Intel: avs: Constify struct snd_soc_tplg_ops Date: Mon, 13 May 2024 19:37:21 +0200 Message-ID: <01de0157088de0475970c79738284d6c86d702fe.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 28046 794 0 28840 70a8 sound/soc/intel/avs/topology.o After: text data bss dec hex filename 28206 614 0 28820 7094 sound/soc/intel/avs/topology.o Signed-off-by: Christophe JAILLET --- Compile tested-only. --- sound/soc/intel/avs/topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/avs/topology.c b/sound/soc/intel/avs/topology.c index 02bae207f6ec..35381a835c93 100644 --- a/sound/soc/intel/avs/topology.c +++ b/sound/soc/intel/avs/topology.c @@ -1889,7 +1889,7 @@ avs_control_load(struct snd_soc_component *comp, int index, struct snd_kcontrol_ return 0; } -static struct snd_soc_tplg_ops avs_tplg_ops = { +static const struct snd_soc_tplg_ops avs_tplg_ops = { .io_ops = avs_control_ops, .io_ops_count = ARRAY_SIZE(avs_control_ops), .control_load = avs_control_load, -- 2.45.0