From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751560AbdF1OgB (ORCPT ); Wed, 28 Jun 2017 10:36:01 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:58609 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751312AbdF1Ofz (ORCPT ); Wed, 28 Jun 2017 10:35:55 -0400 Subject: Re: [PATCH][iio-next] iio: adc: stm32: make array stm32h7_adc_ckmodes_spec static To: Colin King , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Maxime Coquelin , Alexandre Torgue , , CC: , References: <20170628130650.21872-1-colin.king@canonical.com> From: Fabrice Gasnier Message-ID: <29afb806-8634-0938-081b-dfab4efa04bf@st.com> Date: Wed, 28 Jun 2017 16:35:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20170628130650.21872-1-colin.king@canonical.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG6NODE2.st.com (10.75.127.17) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-06-28_09:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/28/2017 03:06 PM, Colin King wrote: > From: Colin Ian King > > The array stm32h7_adc_ckmodes_spec does not need to be in global scope, so > make it static. > > Cleans up sparse warning: > "symbol 'stm32h7_adc_ckmodes_spec' was not declared. Should it be static?" > > Signed-off-by: Colin Ian King > --- > drivers/iio/adc/stm32-adc-core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iio/adc/stm32-adc-core.c b/drivers/iio/adc/stm32-adc-core.c > index e09233b03c05..9d083c2338f9 100644 > --- a/drivers/iio/adc/stm32-adc-core.c > +++ b/drivers/iio/adc/stm32-adc-core.c > @@ -172,7 +172,7 @@ struct stm32h7_adc_ck_spec { > int div; > }; > > -const struct stm32h7_adc_ck_spec stm32h7_adc_ckmodes_spec[] = { > +static const struct stm32h7_adc_ck_spec stm32h7_adc_ckmodes_spec[] = { > /* 00: CK_ADC[1..3]: Asynchronous clock modes */ > { 0, 0, 1 }, > { 0, 1, 2 }, > Acked-by: Fabrice Gasnier