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: 68409 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp799995wrd; Sun, 12 Mar 2023 10:04:37 -0700 (PDT) X-Google-Smtp-Source: AK7set+Z1501wW5bo/VgF+EQN0KC6mKD+0YQwl+h+QLdCOdI66GE0DRy1Fh2xQYq8O/aczNHjZPv X-Received: by 2002:a17:902:dac7:b0:19e:6a5f:598a with SMTP id q7-20020a170902dac700b0019e6a5f598amr38487469plx.63.1678640676709; Sun, 12 Mar 2023 10:04:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678640676; cv=none; d=google.com; s=arc-20160816; b=vWt7k1hEYd8GFfg1olkAixz6kguRocmcABeNI/vvOAJ/sj6bcNa7aCY/GFCH6M4bp4 jwsYlTDwnKjC1m1GUXSxWDXaC8pPSUqGvUs8Eth+gLMDYEwbCmeyiSp5++9Gg2KdBb8Q +BiL9mUGjVXKa95kZibJ9cNKMa/YX1IlzgL8Y0tEcFV2FWf4+sSbKBxZ+ZyFB1jaP1d0 j3zeW2fb+ep2kWJL57xL2qZFkqopX0SyGe5GW9SChJDPQSJcDZ/IDmEWjOOyUA8drNGQ VLe+oTRJFwuSPMkPaR9mQ2gXVnasGtZOoUa/0rbnbXV/tS2n6UDcCmmFipyOYgOOGXG4 GkJg== 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:dkim-signature; bh=q4/iPsVRBPkg6AepawVnMg1wwRgKOLDi6FjhOobj1H0=; b=cV/FwcRntnc0oaA5GDFDpJWboqRwq4d4gidDyMW+YSSy41h98ZkgS1O2nJ4Va2vywO xxJY18wXVnw94O0yOaOWJcY/y/AvhXm5v1E5AKNo3t8hNTbUgO72hOyfAegdk/XUqKJe 3A8CTMek0tHRt+r5JFvFkUjZlHdApBEu27FPifTu3DvM4bVora+hMSd+jOSHYOpCZjHD Tniup282I1lcDqhyR3MyLf3ZFjColN3DLHutLd4TCCl6vSAfBb8gX1VaV8OEdzrDZ38a tMmaW/vGMnHsQNcOyFsm7wTeUPrwcW3JpXhznmbFf26g9GQXiGL32ii66gQ70eCls67h KKpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=exHAFCdf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p17-20020a170902e75100b0017a0e7aaf6bsi3975105plf.128.2023.03.12.10.04.24; Sun, 12 Mar 2023 10:04:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=exHAFCdf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230280AbjCLQdA (ORCPT + 99 others); Sun, 12 Mar 2023 12:33:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230221AbjCLQc6 (ORCPT ); Sun, 12 Mar 2023 12:32:58 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DE4830E9D for ; Sun, 12 Mar 2023 09:32:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1678638726; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=q4/iPsVRBPkg6AepawVnMg1wwRgKOLDi6FjhOobj1H0=; b=exHAFCdfoYcLA0q2GJDW6t9jO9EkGFu1DjGsTYx+BTGbgu33ai7DQVbTaUoEnuYwpGc+b2 YwW80J1ATv8d5FT7XBTGCK4lGisVciBnfvugSPyB2Bj9aKtnqSZrqs3BxuPcEPFK9rAZXB FRlWgkEJcHaeqMzVjVLB6XJi0dbSiYs= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-223-VyWsreQwNEyBziCFpvcT4A-1; Sun, 12 Mar 2023 12:17:47 -0400 X-MC-Unique: VyWsreQwNEyBziCFpvcT4A-1 Received: by mail-qt1-f198.google.com with SMTP id b7-20020ac85407000000b003bfb9cff263so5599628qtq.6 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=nkkxx2Zz8e1jQ8OhJdfCDle9+TU3b9vLT7ZxX7LbkaDfVirqWt0jnD92XZj7adMRrv F25arfGSwfLOXVkHSgJEMCIgwTDJ7/c4kHQ+2b/yn18AiP2OnsbDQRkXNFsfe/PXcBNp 1NEHNdorFFAjUCL2eoM3ONPtf4ITNRUXOiwgA0hFU7MKlqlVq5cvv3O/CITvIBMUb7Yh EAFd9jLkAk7KOIg2sze4zcVGLXlxyPE++8k+5gAKy8O84/8Of2UPxT/njubwAzJ8tTsF gWqXqHI5SJ32bcHQArlL0KAeXCWzu4VyX7Hus7z+qYPvd3WdzhpDLnOwYZI1z9zESkGJ L9fw== X-Gm-Message-State: AO0yUKU1KLDdUtGF2mdqrPiYkt5gxGOLFuD/6qHdNc7g2KMBmi3CER+p AjjLmElk5w5GN3LRwSexJGCU4juL2X754OfSgma3Fxfg8W4cEVQP4xp1D0HcIgv85Ybnrd+YxrJ aiRuadmsfb1IejI1fZ8Gq6huc X-Received: by 2002:a05:622a:1811:b0:3bf:b70c:cb02 with SMTP id t17-20020a05622a181100b003bfb70ccb02mr56462021qtc.61.1678637866659; Sun, 12 Mar 2023 09:17:46 -0700 (PDT) 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760182326013706384?= X-GMAIL-MSGID: =?utf-8?q?1760182326013706384?= 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 = {