Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp159804pxf; Wed, 7 Apr 2021 23:19:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoPGx8695Qyj2HHUwcbYzIgOQ4Go8ds59v6HFiKVOAlsPvwbKyVBYFO+TBJNawC+oKBWaL X-Received: by 2002:a05:6402:206d:: with SMTP id bd13mr1996785edb.38.1617862799197; Wed, 07 Apr 2021 23:19:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617862799; cv=none; d=google.com; s=arc-20160816; b=J8pt1/C5R3N/Gq0JqCCxsowotDrEMhOXzPu2ZDllLvV+zS07GrTMdoFp6QhVbTZrwF LCOPp+n+fJqPzWfODY3h6HUMz6xIvPC27TimZNqF5x60bv8DYaQl8dW+lsKKCP5KNw4v 8gQMwx1BzVpur859jbBNAa7BeRhuDRQXsTzkG46sTo8UzRuyLiJzs8or7fOJzWuCICre WpjplAIZe39B7DrU4B+UQxtxPFBZzeS3LNLSRIBIVrkecsBrOd5QNBqIanZ220UMEnnu Q/cHJaswUKc8K+Oly/4xloRnhxfrb78kO50P4grfaW6T/sbQA94AeIPlIRFrppOjFCOq MmOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=qXAbcazhCMmyVuHqfO6VPKHwdHM5dglyQF4Z6qEAfAc=; b=KtIVlDQXrNhwuvTuXSzc0ZRbOzuC2tY0N5pExTl2Vt277x5JrgyrzHGFwxgfKj+97Q BOR6tDKJbgm0HvhlAj4imlidfLCZ580QzqE0gKQpyfSHLI/dvo3HW5iC+hKE1Q3tarey 9uijhhITfk2lpTtx5CxFxpW3VsRd5wR7Jtu6FGZAb82xbnKGHc7xOONPC3M6qt2gTxWU CBd9/BWq1R8PUfV8152HO0ySHAYvqZx5AlhyHjQIBtKkgMH7lXpGrFCMjOCGoA4jyFvy HOpjk+Yliv4gg9dT2RfGQeKKj1gTSovLtMUU3AXVJE/PKR1kYwcwEB5ilTOrzdlz2SWA iJIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a21si20625428ejd.654.2021.04.07.23.19.36; Wed, 07 Apr 2021 23:19:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230088AbhDHGSp (ORCPT + 99 others); Thu, 8 Apr 2021 02:18:45 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:16822 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229886AbhDHGSh (ORCPT ); Thu, 8 Apr 2021 02:18:37 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4FG9xm3MD6z93Zp; Thu, 8 Apr 2021 14:16:12 +0800 (CST) Received: from huawei.com (10.175.127.227) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.498.0; Thu, 8 Apr 2021 14:18:15 +0800 From: Ye Bin To: , Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai CC: , , , Hulk Robot Subject: [PATCH -next] ASoC: codecs: lpass-wsa-macro: constify static struct snd_soc_dai_ops Date: Thu, 8 Apr 2021 14:26:42 +0800 Message-ID: <20210408062642.802846-1-yebin10@huawei.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Originating-IP: [10.175.127.227] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The snd_soc_dai_ops structures is only stored in the ops field of a snd_soc_dai_driver structure, so make the snd_soc_dai_ops structure const to allow the compiler to put it in read-only memory. Reported-by: Hulk Robot Signed-off-by: Ye Bin --- sound/soc/codecs/lpass-wsa-macro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/lpass-wsa-macro.c b/sound/soc/codecs/lpass-wsa-macro.c index e37c8148c0de..e79a70386b4b 100644 --- a/sound/soc/codecs/lpass-wsa-macro.c +++ b/sound/soc/codecs/lpass-wsa-macro.c @@ -1031,7 +1031,7 @@ static int wsa_macro_get_channel_map(struct snd_soc_dai *dai, return 0; } -static struct snd_soc_dai_ops wsa_macro_dai_ops = { +static const struct snd_soc_dai_ops wsa_macro_dai_ops = { .hw_params = wsa_macro_hw_params, .get_channel_map = wsa_macro_get_channel_map, };