From patchwork Tue Apr 4 18:31: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: 13200849 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 8DF73C77B60 for ; Tue, 4 Apr 2023 18:32:42 +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=LpDmkRGHGrLLuwQGULO+YnK+/UdtuYbHXwh6BeJPNtM=; b=S6/TwfySMwk7p6 8+hwQqUy7W9l7Oec22y6zDCWMRzFpXyWm9llUcOBwXTvE+UjNG6UuVnIC9F/Q0zhjmKmVae35SYXf S6vRk+kkAGXSvrmVvARgCeZ3ae8+xGcMKLz/WJ+rC8Z95YJ36xi4kUWS0L/DYhzeolqQ3I3R7lcvk MRddVYYPnp9w0l1APqKdD2sB3PdfjyFRfd6W/BLNCyJSxBWCkkQ8cn//f2H3L4TNHNIaOVZckYf0e fFGpgNZUNERB+FeiCMQzRdR+jNo7+INts62Ie7Svw6A5ZbaZl10Rca5x3rohM7FILk3JBlvFFUU8Y C50ZYKs/SczHcIVXRVxA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjlRY-002WGj-2f; Tue, 04 Apr 2023 18:31:44 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjlRW-002WG8-0V for linux-arm-kernel@lists.infradead.org; Tue, 04 Apr 2023 18:31:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680633099; 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=kqVwTNITS5LavtxWV49y7pnbu9BH/mXm8R0NkMEV8rc=; b=bzOFscTGGEBvxFxyh0lo97fbWz919RhG2E8Nz7m/E7u8T7in3NqRvjy/n7UHCYhbo8Fue8 7R2OoFjGNdVm47LpAOSV5PHBR13VCzHfVd/eiIYtjd7vAdYAGsBPrwyCrWFGissIhyP7Xh TryBmhuJr4iYuG2p3nDHWa9P+/hqLBU= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-387-6xXd945wOBSW8AIcY5RYZQ-1; Tue, 04 Apr 2023 14:31:38 -0400 X-MC-Unique: 6xXd945wOBSW8AIcY5RYZQ-1 Received: by mail-qv1-f72.google.com with SMTP id r4-20020ad44044000000b005ad0ce58902so14969812qvp.5 for ; Tue, 04 Apr 2023 11:31:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680633098; 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=kqVwTNITS5LavtxWV49y7pnbu9BH/mXm8R0NkMEV8rc=; b=fI8MeKRCOTnurQ3tGSGicujJevzO98Goppt2n7AMc6opDlOxj8G9QRruwn79xjqNvN Aahn2Eo79r/I2NgxEDBvtMSLw7uh1jHVfCpyAk5Jg35a2n7HT8u1XR2yxU3MMxsZckfd ZU2G1lqu5vv/dxFca6ivU371/IOec1fDSbDsRPHxq3DpHaEQfUKUvIZ7/MyV94XhJA7C 49E5lSs9/rYZ2sgOxdoyk9qjEHVN/6uWd4Ha5C4TqbFWeaS0BpWt1u0zrSspwecquDW+ VDFLryB+1nOapBuokFeXSq8j2iZB3hL9tzF6XprLC3tU3CRv/uo7amc6sAbnrorqws7a UmUw== X-Gm-Message-State: AAQBX9drG4v/WX606XyRdn2QreuSOfm6gACdAqPsmafD7+5Tvsm3hRwN ZZMQiNF1swITCEbS/vZxAKXAUtus2R+dfrFqpW8yxE0Vlvxm1vOMHQI34HIct4+T9n+hCQfFCq6 IoKba8xV574ntGL3LNu87Ng3LYukMpQV3DYg= X-Received: by 2002:a05:6214:2aaa:b0:5d5:f87a:b3d8 with SMTP id js10-20020a0562142aaa00b005d5f87ab3d8mr5614269qvb.33.1680633098041; Tue, 04 Apr 2023 11:31:38 -0700 (PDT) X-Google-Smtp-Source: AKy350b9Ge5E6r7DJNheY8RCY2Na7i9I8CfgQKgpzynP2dooRuZfVKJr/E70TrE/gLzMl8hUYy2IbQ== X-Received: by 2002:a05:6214:2aaa:b0:5d5:f87a:b3d8 with SMTP id js10-20020a0562142aaa00b005d5f87ab3d8mr5614227qvb.33.1680633097764; Tue, 04 Apr 2023 11:31:37 -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 r194-20020a3744cb000000b007465ee178a3sm3775341qka.96.2023.04.04.11.31.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Apr 2023 11:31:37 -0700 (PDT) From: Tom Rix To: srinivas.kandagatla@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Tom Rix Subject: [PATCH] nvmem: imx-ocotp: set varaiable imx_ocotp_layout storage-class-specifier to static Date: Tue, 4 Apr 2023 14:31:33 -0400 Message-Id: <20230404183133.1925424-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-20230404_113142_315160_1E07432A X-CRM114-Status: GOOD ( 12.74 ) 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 drivers/nvmem/imx-ocotp.c:599:21: warning: symbol 'imx_ocotp_layout' was not declared. Should it be static? This variable is only used in one file so should be static. Signed-off-by: Tom Rix --- drivers/nvmem/imx-ocotp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c index ac0edb6398f1..fcea9c04be96 100644 --- a/drivers/nvmem/imx-ocotp.c +++ b/drivers/nvmem/imx-ocotp.c @@ -596,7 +596,7 @@ static void imx_ocotp_fixup_cell_info(struct nvmem_device *nvmem, cell->read_post_process = imx_ocotp_cell_pp; } -struct nvmem_layout imx_ocotp_layout = { +static struct nvmem_layout imx_ocotp_layout = { .fixup_cell_info = imx_ocotp_fixup_cell_info, };