Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2202110lqo; Mon, 13 May 2024 10:38:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWLrL8fwsmVUhosFl+NzvNeMlTQtAoTomQ4cUj0KOz8xxlhozRvCWaRU2mWf6BBGCvW8odhYzH0O7q8XxACNwei930rjGfLJJvuIUeVSg== X-Google-Smtp-Source: AGHT+IEgv0ho0/s+Kc9cn9pmFtmbgXTx0iLCdN1H24CC5nciDRCcW0o9OP77RuYle1ZvVRR9lpnw X-Received: by 2002:a17:90a:da04:b0:2b3:d512:d487 with SMTP id 98e67ed59e1d1-2b6ccd97a79mr10331594a91.39.1715621888757; Mon, 13 May 2024 10:38:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715621888; cv=pass; d=google.com; s=arc-20160816; b=qxjmZg1g405DeH9TZ7yOcLY6hbDGfT/N6RtJU+WV8mnnGZ4pmUghSihv+uG4LU3vRf xoPCHL74gtHKPqAxQ2hJ0biURoUJS9z37t8SMt2/GdM6CNjZTbRR0LgVy7BH2KJD0q76 mySoJgsOSxlHFgtdPNdBR6KNG4YfiExjwwkEhKFp1cQsbV26fa/Jz80Hi2sJeAgG5kCs BwQzIWCn2eb+p3gBEWBXgEqvQZr7J6oRYjXKeIhBh9UzJ+Cwl7eWh0MglZIBYRe61jKK l0QSd9yEHi30Ll9o7Tod0eimG76jWbl7Xlf4W2UUTRKR6cTxWwghD6VkxTXBlgEzFG77 EMqw== 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=vPx09WkVDSPEOpN7HAXVn6S1kGIy/0oMa/odUP4ITxc=; fh=ixb9tRM5/LVfnyDulMcHSMAQJBjHgXrp+JTesKorGNc=; b=a8eFfp+9bOpWyLZ+QkhpUlohVYSCsPytMo3NXSn1X+dFP9F3KIOaM64Ba+gs8g/EoU CryMXcBUJTafj5fzjx4JZGIJjLmbT78i4saqnwAeSEaZdvd2hCx1mEXxBarNEXdRdewQ Vpd2s4Iegjzy9mplvKG3VT3I2MJLPR8kDumNPXvRbhwkWwXJnHGvmW+CnwXMMLe1REuU tYJQnKRcYRs48F/D+nmadQTc+lzy/rP+jV3FL2xXdc9SpB138MBPLg1Wk0cjN5NUj1hM vw/Q2OWs4Z2ZG4gR12/VyFiNWIEoNYIWmYLifgNBs7fErQTGWnv6P9UwSQUDncz5FGrj e/Vg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=m90FUVvG; 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-177920-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177920-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 98e67ed59e1d1-2b628ea7a85si11897643a91.117.2024.05.13.10.38.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 10:38:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177920-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=m90FUVvG; 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-177920-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177920-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 5E585281DFC for ; Mon, 13 May 2024 17:38:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A0AD92E3EE; Mon, 13 May 2024 17:37:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="m90FUVvG" 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 487372837D; Mon, 13 May 2024 17:37:47 +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=1715621869; cv=none; b=G4r+Jt4DEJfDgGQHVibQE6cbFkm3/IHLcbnMiifCYDl6mENf/8xFOVHufD4I47KtsXHEhUnqXXCcjM9dyHtrbXHZQGw5wBehrLOb5Rj1Dex4TWeikWjIEtWvpJuBlsW32WTmTCOXAc9tRoMSdHOgVWsOLCy+Ol/Kr6oJm3jJ1Bw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715621869; c=relaxed/simple; bh=a0hGDqbnr8QfjOn4UWdQQVFTsm1YKoftP6R8ds04QtU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rXPyHyljk3K9np+kop+2iN6QmUJmvuXV+Gq2aW92oZiRlaR56fJH/dHVV6i5nb4RaS9ehtC7uJ16kGU5TAL536h/5GK4UstXBlbwg0ydcYE6zhHYEHvA7ZkvSWFm9eMNQQKPtRsCOw6jkV0Vy/CW4uHyLyuseAs+TEuYXzLExhE= 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=m90FUVvG; 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 6ZcDs0lh7ME2z6ZcKsL81A; Mon, 13 May 2024 19:37:40 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1715621860; bh=vPx09WkVDSPEOpN7HAXVn6S1kGIy/0oMa/odUP4ITxc=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=m90FUVvGUYAng9KWUEjKYM1eIH1fEklPDwdWolN/ZVlGtl+EpR9oNiMZT/sXgwwhJ oEH/6thb5Alo3o7a9uzF/JMtkmqmrnJm75rObyvke+qoOfymnHbV1IBuD2miuuY4UJ +YzXUW56a9zUu0SMrd5qUoGnbk4iTh3qv6lLA1l6jz6TE5ipLRdqWkp64+byy34C22 yKngk6yqD/8ThHFwNaxSKJbUPiaYoGhj146tVS80EsfD2P3kWMJdHiT/7gOZrUvSKG YDFbRkJkbW0qdW3Z0LbubPyPtgvp3qTmP0AjaUrCgXYh40/5PH7mDpr/wz1y+fW5nd zc0rz5ydwA+ew== X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Mon, 13 May 2024 19:37:40 +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 3/6] ASoC: qdsp6: audioreach: Constify struct snd_soc_tplg_ops Date: Mon, 13 May 2024 19:37:22 +0200 Message-ID: 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 19942 832 0 20774 5126 sound/soc/qcom/qdsp6/topology.o After: text data bss dec hex filename 20102 652 0 20754 5112 sound/soc/qcom/qdsp6/topology.o Signed-off-by: Christophe JAILLET --- Compile tested-only. --- sound/soc/qcom/qdsp6/topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/qcom/qdsp6/topology.c b/sound/soc/qcom/qdsp6/topology.c index 70572c83e101..c15d1a2b6dbf 100644 --- a/sound/soc/qcom/qdsp6/topology.c +++ b/sound/soc/qcom/qdsp6/topology.c @@ -1240,7 +1240,7 @@ static const struct snd_soc_tplg_kcontrol_ops audioreach_io_ops[] = { audioreach_put_vol_ctrl_audio_mixer, snd_soc_info_volsw}, }; -static struct snd_soc_tplg_ops audioreach_tplg_ops = { +static const struct snd_soc_tplg_ops audioreach_tplg_ops = { .io_ops = audioreach_io_ops, .io_ops_count = ARRAY_SIZE(audioreach_io_ops), -- 2.45.0