From mboxrd@z Thu Jan 1 00:00:00 1970 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 DE07FC433F5 for ; Mon, 29 Nov 2021 16:36:00 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 268BF1DF8; Mon, 29 Nov 2021 17:35:09 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 268BF1DF8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1638203759; bh=3zWvbj5pX6wLkxuMhXDfo7A6BDz+PNryUGjtY2qZnak=; h=Subject:To:References:From:Date:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=T9fHeTfJDm2D4YQEbL5KPBqqRJVJiWY5BjYG3uj8SakS+uREgJezlde3fFvdjNfVd gv46Rg2FHbukVMQXX04Uzbv/vC/mUxZEqILJSbiftc0CXMXV0FPLLPeyAmii5E11FG YjBVDx1KjP4Ts8GCCwCyK/JM9oATOG/QdiPNLo7w= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 5312AF80517; Mon, 29 Nov 2021 17:33:05 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 08C3AF804FF; Mon, 29 Nov 2021 17:32:59 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id C2D93F804E7 for ; Mon, 29 Nov 2021 17:32:48 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C2D93F804E7 X-IronPort-AV: E=McAfee;i="6200,9189,10183"; a="322241138" X-IronPort-AV: E=Sophos;i="5.87,273,1631602800"; d="scan'208";a="322241138" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2021 08:32:15 -0800 X-IronPort-AV: E=Sophos;i="5.87,273,1631602800"; d="scan'208";a="676418567" Received: from ticela-nm-11.amr.corp.intel.com (HELO [10.212.98.225]) ([10.212.98.225]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2021 08:32:14 -0800 Subject: Re: [PATCH] ASoC: intel: boards: bytcht*: Constify static snd_soc_ops To: Rikard Falkeborn , Mark Brown , Jaroslav Kysela , Takashi Iwai References: <20211127091954.12075-1-rikard.falkeborn@gmail.com> From: Pierre-Louis Bossart Message-ID: <08009ecf-dfe3-e6b4-603f-9dffdea32956@linux.intel.com> Date: Mon, 29 Nov 2021 10:24:23 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20211127091954.12075-1-rikard.falkeborn@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Cc: Cezary Rojewski , Kai Vehmanen , linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Ranjani Sridharan , Liam Girdwood , Peter Ujfalusi X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On 11/27/21 3:19 AM, Rikard Falkeborn wrote: > These are only assigned to the ops fields in the snd_soc_dai_link struct > which is a pointer to const struct snd_soc_ops. Make them const to allow > the compiler to put them in read-only memory. > > Signed-off-by: Rikard Falkeborn Acked-by: Pierre-Louis Bossart From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4CC8FC433FE for ; Mon, 29 Nov 2021 16:36:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346309AbhK2Qjj (ORCPT ); Mon, 29 Nov 2021 11:39:39 -0500 Received: from mga14.intel.com ([192.55.52.115]:63233 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344276AbhK2Qhj (ORCPT ); Mon, 29 Nov 2021 11:37:39 -0500 X-IronPort-AV: E=McAfee;i="6200,9189,10183"; a="236235561" X-IronPort-AV: E=Sophos;i="5.87,273,1631602800"; d="scan'208";a="236235561" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2021 08:32:15 -0800 X-IronPort-AV: E=Sophos;i="5.87,273,1631602800"; d="scan'208";a="676418567" Received: from ticela-nm-11.amr.corp.intel.com (HELO [10.212.98.225]) ([10.212.98.225]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2021 08:32:14 -0800 Subject: Re: [PATCH] ASoC: intel: boards: bytcht*: Constify static snd_soc_ops To: Rikard Falkeborn , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: Cezary Rojewski , Liam Girdwood , Peter Ujfalusi , Ranjani Sridharan , Kai Vehmanen , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org References: <20211127091954.12075-1-rikard.falkeborn@gmail.com> From: Pierre-Louis Bossart Message-ID: <08009ecf-dfe3-e6b4-603f-9dffdea32956@linux.intel.com> Date: Mon, 29 Nov 2021 10:24:23 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20211127091954.12075-1-rikard.falkeborn@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/27/21 3:19 AM, Rikard Falkeborn wrote: > These are only assigned to the ops fields in the snd_soc_dai_link struct > which is a pointer to const struct snd_soc_ops. Make them const to allow > the compiler to put them in read-only memory. > > Signed-off-by: Rikard Falkeborn Acked-by: Pierre-Louis Bossart