Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3502947pxb; Mon, 4 Apr 2022 19:04:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEQjELwBqLmKCmaAOKGDWy7FDHAwNxBcMJskOKBo+y8+lDo1+2XzbDhj9PJtLqwW99fYQY X-Received: by 2002:a63:2b8b:0:b0:398:a502:f41f with SMTP id r133-20020a632b8b000000b00398a502f41fmr916110pgr.17.1649124247684; Mon, 04 Apr 2022 19:04:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649124247; cv=none; d=google.com; s=arc-20160816; b=h5xy0gBDhWejJeGI8XXVqQCbwkdJghd73yO5U/K1/G35kl8yS+B9831wEDeiOrzCBv EshKflB3DnuPbzwF9v06s8Qh0ppU8MPPXmigeNo8ZVU2eod9ZFwSv3TqH7z3C4A+pbNm lqNeirWA9Dx9Zj+REUDWARPfpJindcmW3kBn6JuzTN7ZnrSpvNXHV7mqfNKp/pxmBJIK UTD3u5acsX9aQ+dLGYTOoIjYNoQz3nKoDsqPRXvYTqKzR1JS6q5fc0kzDW6gIpl/0FiC +qT9tVjZKeN9i2MLUDgHGP9clzKi8kOQJqPINF22venR3rfxKGj09RfMssq06S/WRp6/ HT6w== 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=J/vKqF4Fb5vvVfUXn1DmQOnTx8l3MynEh/qGnDOubjg=; b=Yk3AmcPYWT5oRMsCQtrAntepkS7tPJkd4w/bs1jb5Y6+REQpSISi7uUqct44Pj//Qg 7hkaFfKGhzzGpkRIAuP1ZfS1McA6Eiq+aIbXdB81T+xSJlLuEu4Xx306NlAEsobz5plC j9Wf7Nu1fU8ou8/rq083GbI35y/bs7/N4d/x+6/AKEFl+VFLZpgyJzGe8SV1SY4kOwmx VisQvnZ0+eFGx+D8daI4vNdeJhoFtBikOpgRierVxEglJixvabPPogic8nm3engT8X1S HfViu6wJzeMvHN1Dox5YiC/11c+ngGs4fKw5+5BYLURu7gmGaqfdSVn/8Rc3Wzt9AF+N KfLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=W2+WOE4X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s7-20020a17090302c700b00153b2d164ecsi10819953plk.244.2022.04.04.19.04.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 19:04:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=W2+WOE4X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 58C2181642; Mon, 4 Apr 2022 17:27:28 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358887AbiDCNlH (ORCPT + 99 others); Sun, 3 Apr 2022 09:41:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232011AbiDCNlG (ORCPT ); Sun, 3 Apr 2022 09:41:06 -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 ESMTP id F28E5326D8 for ; Sun, 3 Apr 2022 06:39:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1648993151; 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=J/vKqF4Fb5vvVfUXn1DmQOnTx8l3MynEh/qGnDOubjg=; b=W2+WOE4XvI+lr//WY2EK/ea/EBtYh9DOq6hGyNXHTlzIewBW7K7uW5FCE1Rh7U5I4mYBU6 euY6ukpYpkQeQTW0NjcGQWByWxzziovm7cfLVH2pUBIC+v+bdC7Nd1WB5GrSQjcTo0nYaU XAVZSG0cP3kGaVYHGUdc9Cc1eZ6iog4= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-395-y7rB5BVRNkal1NIG_QmeOg-1; Sun, 03 Apr 2022 09:39:10 -0400 X-MC-Unique: y7rB5BVRNkal1NIG_QmeOg-1 Received: by mail-qt1-f199.google.com with SMTP id h11-20020a05622a170b00b002e0769b9018so4825392qtk.14 for ; Sun, 03 Apr 2022 06:39:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=J/vKqF4Fb5vvVfUXn1DmQOnTx8l3MynEh/qGnDOubjg=; b=MRwLNe2pkIAzGQpDPsu/2mjq+foDr4BWDp6rm3HOAKl4Dj2I2RaUWGuFHNk2R1WJzo aSeC3ES9NKqlmKt8aUhGqoj0yniaZhFfdJFqIAxTM/+SqW2xXIxvEyVjT91EO8ymJ4p2 41AeyvpX+Y4BeSh7wr9cK4DOkaQ4pWFvaEpizPIPSN/YeUxXuAMvL1huC1qSAFmGEiK6 MnBt0/uh5O/mba2IYCL8TAcTcPGGTd5WJVUFweIuNDoc014CRQhmhd4fFDNbxWoOP1zt Z5ufNcKdM1Q5gn6T+IYKD0gQR1ZaKz/iMPLYqOqntDUVtPjBFkzHAkYRKmGQsOvVVzQu IYUQ== X-Gm-Message-State: AOAM532vaj9gv55EWUKHlkg1pvNnzIry5NJ/RD8bqrJSMfm7r1p3Za7T fyBovNSBDDWV2vqMeqmfQ8m9Zh0qHt7HQRASrNi/t5ORBpSa+dyTWIdgrw1qULvXOJL9Y7uKWub Y6R9R0cyPSHPpeu15ZD9btMLs X-Received: by 2002:a05:622a:302:b0:2e0:7aed:d653 with SMTP id q2-20020a05622a030200b002e07aedd653mr14547286qtw.492.1648993149412; Sun, 03 Apr 2022 06:39:09 -0700 (PDT) X-Received: by 2002:a05:622a:302:b0:2e0:7aed:d653 with SMTP id q2-20020a05622a030200b002e07aedd653mr14547278qtw.492.1648993149184; Sun, 03 Apr 2022 06:39:09 -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 o21-20020ac85a55000000b002e16389b501sm6096875qta.96.2022.04.03.06.39.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Apr 2022 06:39:08 -0700 (PDT) From: Tom Rix To: vincent.sunplus@gmail.com, srinivas.kandagatla@linaro.org Cc: linux-kernel@vger.kernel.org, Tom Rix Subject: [PATCH] nvmem: change sp_otp_v0 from global to static Date: Sun, 3 Apr 2022 09:39:06 -0400 Message-Id: <20220403133906.1379832-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Smatch reports this issue sunplus-ocotp.c:74:29: warning: symbol 'sp_otp_v0' was not declared. Should it be static? sp_otp_v0 is only used in sunplus-ocotp.c. File scope variables used only in one file should be static. Change sp_otp_v0's storage-class-specifier from global to static. Signed-off-by: Tom Rix --- drivers/nvmem/sunplus-ocotp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvmem/sunplus-ocotp.c b/drivers/nvmem/sunplus-ocotp.c index 2dc59c22eb55..e0b11e13f5f8 100644 --- a/drivers/nvmem/sunplus-ocotp.c +++ b/drivers/nvmem/sunplus-ocotp.c @@ -71,7 +71,7 @@ struct sp_ocotp_data { int size; }; -const struct sp_ocotp_data sp_otp_v0 = { +static const struct sp_ocotp_data sp_otp_v0 = { .size = QAC628_OTP_SIZE, }; -- 2.27.0