Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3570476pxf; Mon, 22 Mar 2021 09:27:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKMSq0RaVuP/0Hvy/s4CcVdRWdWXlpOCA6dR7My3sGEV0Gk/umyCZ1wxQWKdxcehqTP2R4 X-Received: by 2002:a17:906:4146:: with SMTP id l6mr599592ejk.295.1616430423072; Mon, 22 Mar 2021 09:27:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616430423; cv=none; d=google.com; s=arc-20160816; b=u6gawyO51vbM2FUQYNWB9J4hGjG9F9mM/OtV4XQlqrFBAIw1JC9bpzQQd7wS6HTNbj Gjh2uf5dgSHJxNX2gbd6baMakosbr7myqCgnSmlsOxGJ5U6MLfQfU1TM5/SYq7ApOEMa ztcCzpmGvB72QJ1r6Y9W9tLIgOtJANIwKO2PkcMtxi9NB8LpSe3W9wa+svP0NzWFqVAp hYVrJL0GlLUVfFd0wXM2f/BA0Ln6VXTA+uJVEt0X2SvY5A7ery1UrHtrsii96TOiSd5R IIVL+mVz4U97EeKq7ipD7QDZi/Qj0OhqfGy6fLddH0/l2LlcI3LLS16fbxueXuVU0Mg9 ZI9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=oB21vUWCvj3rbpK0jRiwGvnOUjjNuAz21ey/6ONYUN8=; b=HvKm/FUAn5ZXWUMvE5g+ZHfDo02TNGBiMvih8ykYfnGtnBkTBr1INKXSEr2ZsTc1Zc /AF0gZZp8OLGOESq019raozIB0HdX0gBNBwR7goDCP3ocK3P0J2Z4hJ241XD6/HDMCki klWBEQpOxagznUAXKlb9y1ucLzvXGuEb4UjIDOANK8H9CQRqles1aBB/9TpDGdkmAGtg KDtlpYa67zHizEByodA8m/6duC3WPtivbf4GURJ7VQVF5mRAk57UdJb/J+quEV3l6vZ0 GBsWxxhoAzoQS00T7InwLdiT4mqRUUAX84P7X657/hVrXmNlockHfkq6hWlQ4KDWHs3f JrMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=HmH5pyKk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z4si11823496edc.579.2021.03.22.09.26.40; Mon, 22 Mar 2021 09:27:03 -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; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=HmH5pyKk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231383AbhCVQZo (ORCPT + 99 others); Mon, 22 Mar 2021 12:25:44 -0400 Received: from mx07-00178001.pphosted.com ([185.132.182.106]:26698 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231626AbhCVQZc (ORCPT ); Mon, 22 Mar 2021 12:25:32 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 12MGN1f7009533; Mon, 22 Mar 2021 17:24:38 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=oB21vUWCvj3rbpK0jRiwGvnOUjjNuAz21ey/6ONYUN8=; b=HmH5pyKkTaxzdinx+xEdwKBwmcd62m0pA9lkFRAYhWj5agIyM4ka1TOJ3+1QL6fa5CDQ RTgnn/Qh81lUcCw9TV1hLGi7NKB/yHnq3IaTSsdLeGVx+AKXNKqpccm0MvswsW9EySfP K6US5l92mCUnTFiL8qqzQJmKZ+7jyK2PrLnFrzaY7M2fPMOdM9kyBFPZcH86WNShlh3Y leXfakaVYQIVAbP1JxHYTuhh1JffIGKnHB/BIkJ7Vt6NXUfvjBZxO3U82XP8NAjLX1X9 aPFmmVNG3BtoJvgjjzjuyF0iUsyYUtdNZEPPN33lN535h88Ns83ivfudVFffZdpbAHyC 8w== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 37d7d7tqkd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 Mar 2021 17:24:38 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id CBB6E10002A; Mon, 22 Mar 2021 17:24:37 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag2node3.st.com [10.75.127.6]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id ACA3122A2DE; Mon, 22 Mar 2021 17:24:37 +0100 (CET) Received: from [10.211.8.180] (10.75.127.50) by SFHDAG2NODE3.st.com (10.75.127.6) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 22 Mar 2021 17:24:36 +0100 Subject: Re: [Linux-stm32] [PATCH v10 17/33] counter: stm32-timer-cnt: Add const qualifier for actions_list array To: William Breathitt Gray , CC: , , , , , , , , , , , , , , References: <87c00aa93ef03c058cbefefd5b8ab26ed51098f4.1616150619.git.vilhelm.gray@gmail.com> From: Fabrice Gasnier Message-ID: <20cdb174-a8ba-a8a1-a7a2-991fda8719ab@foss.st.com> Date: Mon, 22 Mar 2021 17:24:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87c00aa93ef03c058cbefefd5b8ab26ed51098f4.1616150619.git.vilhelm.gray@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG2NODE1.st.com (10.75.127.4) To SFHDAG2NODE3.st.com (10.75.127.6) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-03-22_08:2021-03-22,2021-03-22 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/19/21 12:00 PM, William Breathitt Gray wrote: > The struct counter_synapse actions_list member expects a const enum > counter_synapse_action array. This patch adds the const qualifier to the > stm32_synapse_actions to match actions_list. > > Cc: Fabrice Gasnier > Cc: Benjamin Gaignard > Signed-off-by: William Breathitt Gray > --- > drivers/counter/stm32-timer-cnt.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Hi William, You can add my: Reviewed-by: Fabrice Gasnier Thanks, Fabrice > > diff --git a/drivers/counter/stm32-timer-cnt.c b/drivers/counter/stm32-timer-cnt.c > index 0c18573a7837..603b30ada839 100644 > --- a/drivers/counter/stm32-timer-cnt.c > +++ b/drivers/counter/stm32-timer-cnt.c > @@ -267,7 +267,7 @@ enum stm32_synapse_action { > STM32_SYNAPSE_ACTION_BOTH_EDGES > }; > > -static enum counter_synapse_action stm32_synapse_actions[] = { > +static const enum counter_synapse_action stm32_synapse_actions[] = { > [STM32_SYNAPSE_ACTION_NONE] = COUNTER_SYNAPSE_ACTION_NONE, > [STM32_SYNAPSE_ACTION_BOTH_EDGES] = COUNTER_SYNAPSE_ACTION_BOTH_EDGES > }; >