From patchwork Sun Mar 12 16:17:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 13171589 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 ADDC0C6FA99 for ; Sun, 12 Mar 2023 16:20:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ENosjd/tuYcZ83id5fT2+sJe8G2mby4KndEMOFYbx/I=; b=bWmoIoO3ScQukN GK7o+Rt+T3u/bvMJOp9XgeZoJeS5IFuaf6J4i5STe7TqzjwLtFOKDQd5WFBEOTzAhbSr9qAgqaqwF y+DvQxk5t7Etph3K7yqYvJ9/dpaUweRG7lnzzb5XuLbcY+tOBBfKxkLEn8i98+oDE/W7pMjnfgXky 4BtYggOEBHaSW3G6KZZKb2LSTebA55SJt/iBIyF7Z9aXfdD7SYPYfRZlFSVcZCcE/Vxs0Etqd4+lT 4DGq2QQ01jYBs16k+yLM/6Rf74hw0Kv6eoksrx6L4HVUYyinUsSv+5svn7vxFzYXL8U2pEv6z1Rge 6RWoT8dBKztj1dGziAtQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbOPy-002rhT-Hp; Sun, 12 Mar 2023 16:19:31 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbOOP-002qpg-D9 for linux-arm-kernel@lists.infradead.org; Sun, 12 Mar 2023 16:17:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1678637868; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=q4/iPsVRBPkg6AepawVnMg1wwRgKOLDi6FjhOobj1H0=; b=gEyUrG5Zd8yfVUxPlS/1hrbpv0il4Ja+cG2bOlzYOhEhvyfbmIq4DWr0eXALJkNUY8B0EG 8gJo7jukvlxp2Oz8DCkuOmpUdqm2jOxbPECU126Li2cJSoylQp4OHJoPP9AGadoa5bidW6 ZX42RIhYRjPcdHzVIw2AGaeox8bBz6w= Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-359-_PJzzuDXOrWbfOmtSFp1LQ-1; Sun, 12 Mar 2023 12:17:47 -0400 X-MC-Unique: _PJzzuDXOrWbfOmtSFp1LQ-1 Received: by mail-qv1-f71.google.com with SMTP id q1-20020ad44341000000b005a676b725a2so310630qvs.18 for ; Sun, 12 Mar 2023 09:17:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678637866; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=q4/iPsVRBPkg6AepawVnMg1wwRgKOLDi6FjhOobj1H0=; b=DuwU2zLojxVqGgp070sGFjJphUqaV0ojE7bHpWG9H4MrF19yISUQm+wQA3leX5s1t5 BtgJ+nUtxJFRGnwBnXtuRmXLEEdCpgzY/zFCcnoVkR09fmQZDlqrn1e+9pyg6+F42b5v NX4duZngXFYEA7it5qhzlbRzeS38vQRMrqEFp1aURTUU0R4vs5kMDowwIxetEtIvlc8i YRFRNkFBNFfZYsVJdpUm2aKC48VnXZyAWnCtRAv2N7fAixlhxqqo6TQhO/U66MhunP5D iRUjEn26D/9soYAFg8WqFiyL3DZinnhppLM2HiDWDkW9BwV+n7WyADbUANAHFO4HjeBP wFLw== X-Gm-Message-State: AO0yUKVl46plMPCtcOzlmUcv7cIfdrr6IAi+PP5y/9WYv4nP3zuPGbYZ dcFMqj4EXCdTGH/9LlPcbaDxFmh0qvebEEYrJH8trddRzNHMj0Oe/iyZV8U4R/BgPOsKX7rdSu8 Pzyyy9qwW7Q33OxOHqqERPywLN8o87WcH5uYSJOvFufs= X-Received: by 2002:a05:622a:1811:b0:3bf:b70c:cb02 with SMTP id t17-20020a05622a181100b003bfb70ccb02mr56462019qtc.61.1678637866659; Sun, 12 Mar 2023 09:17:46 -0700 (PDT) X-Google-Smtp-Source: AK7set/zwEcGLiorbWwvzcLRN7QE8tQwzoIcsH7hK+o/zR3XjwOjx605byBFLnz8cxnvcIf7BNPJ8w== X-Received: by 2002:a05:622a:1811:b0:3bf:b70c:cb02 with SMTP id t17-20020a05622a181100b003bfb70ccb02mr56462004qtc.61.1678637866429; Sun, 12 Mar 2023 09:17:46 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id g1-20020ac84801000000b003b7e8c04d2esm3815120qtq.64.2023.03.12.09.17.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Mar 2023 09:17:46 -0700 (PDT) From: Tom Rix To: jic23@kernel.org, lars@metafoo.de, mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com, fabrice.gasnier@foss.st.com, olivier.moysan@foss.st.com, andy.shevchenko@gmail.com, yannick.brosseau@gmail.com, nuno.sa@analog.com Cc: linux-iio@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Tom Rix Subject: [PATCH] iio: adc: stm32-adc: set some stm32-adc.c variables storage-class-specifier to static Date: Sun, 12 Mar 2023 12:17:33 -0400 Message-Id: <20230312161733.470617-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230312_091753_586111_0C06FD98 X-CRM114-Status: GOOD ( 11.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org smatch reports several warnings drivers/iio/adc/stm32-adc.c:2591:20: warning: symbol 'stm32_adc_min_ts_h7' was not declared. Should it be static? drivers/iio/adc/stm32-adc.c:2610:20: warning: symbol 'stm32_adc_min_ts_mp1' was not declared. Should it be static? drivers/iio/adc/stm32-adc.c:2630:20: warning: symbol 'stm32_adc_min_ts_mp13' was not declared. Should it be static? These variables are only used in stm32-adc.c, so they should be static Signed-off-by: Tom Rix --- drivers/iio/adc/stm32-adc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/stm32-adc.c b/drivers/iio/adc/stm32-adc.c index 45d4e79f8e55..1aadb2ad2cab 100644 --- a/drivers/iio/adc/stm32-adc.c +++ b/drivers/iio/adc/stm32-adc.c @@ -2588,7 +2588,7 @@ static const struct stm32_adc_cfg stm32f4_adc_cfg = { .irq_clear = stm32f4_adc_irq_clear, }; -const unsigned int stm32_adc_min_ts_h7[] = { 0, 0, 0, 4300, 9000 }; +static const unsigned int stm32_adc_min_ts_h7[] = { 0, 0, 0, 4300, 9000 }; static_assert(ARRAY_SIZE(stm32_adc_min_ts_h7) == STM32_ADC_INT_CH_NB); static const struct stm32_adc_cfg stm32h7_adc_cfg = { @@ -2607,7 +2607,7 @@ static const struct stm32_adc_cfg stm32h7_adc_cfg = { .ts_int_ch = stm32_adc_min_ts_h7, }; -const unsigned int stm32_adc_min_ts_mp1[] = { 100, 100, 100, 4300, 9800 }; +static const unsigned int stm32_adc_min_ts_mp1[] = { 100, 100, 100, 4300, 9800 }; static_assert(ARRAY_SIZE(stm32_adc_min_ts_mp1) == STM32_ADC_INT_CH_NB); static const struct stm32_adc_cfg stm32mp1_adc_cfg = { @@ -2627,7 +2627,7 @@ static const struct stm32_adc_cfg stm32mp1_adc_cfg = { .ts_int_ch = stm32_adc_min_ts_mp1, }; -const unsigned int stm32_adc_min_ts_mp13[] = { 100, 0, 0, 4300, 9800 }; +static const unsigned int stm32_adc_min_ts_mp13[] = { 100, 0, 0, 4300, 9800 }; static_assert(ARRAY_SIZE(stm32_adc_min_ts_mp13) == STM32_ADC_INT_CH_NB); static const struct stm32_adc_cfg stm32mp13_adc_cfg = {