From patchwork Sun Jan 22 15:46:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 13111515 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 0B66FC27C76 for ; Sun, 22 Jan 2023 15:50:09 +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=1QARY25+f3PT8GubxAi0g1DaV6Ane0HQWkbFWRlQZeo=; b=jn4QrzB3RGJIX1 zL95cDalqJDkO02JMhV4bKM7VxGzCue7Kx6l6kOTe2qjDb9mAOZvLdfVEwYdNZrHoS8diToLfb1O5 DZNScAw1xGQ9ZQQ1NUtAHwBUwdneA8BCw9KP9DnxmmDNAE5qYmdw0pAFYwvrLVt12tEscBckIsDbr 4Rld3k6A4p+2XfR/gC8vfBQjdvycxoJiJQIkyyEPbu7NA2sx0z4ZvQOERoasnkV9RjewJlHyb38v1 e4hIHD/rCTtvRPgyHtwgnk89f1OyB1FX/9wuRcyZ10s8HB/Rk33tY5A5teMLR+LMgotifHVWndnW/ pi2agKRA8T6zvBNYUn4Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJcai-00FVNp-T0; Sun, 22 Jan 2023 15:49:09 +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 1pJcaf-00FVNA-KU for linux-arm-kernel@lists.infradead.org; Sun, 22 Jan 2023 15:49:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1674402541; 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=E6jYgjX2bdUMfo7qC2knF1fy2KORUnKc0O3IR4qBP1I=; b=MT9lxf09J6NHWOHxGZfrKSiDZ8KN1UjVrnKxLjtDUJoy62N9CwV1OVyA98srdD6dAa3IF5 hbV0oeAOQa/YtVJd6TuVvRRWCAwtXwPGgy5WcksaqR1nx9RvVFQshBaX5TCH5jWujqK2tu SMyd4aBVyDkqDaQvWOS18EqQBeEwgvQ= 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_128_GCM_SHA256) id us-mta-532-NnscKIauPtef33qxixlmeQ-1; Sun, 22 Jan 2023 10:46:22 -0500 X-MC-Unique: NnscKIauPtef33qxixlmeQ-1 Received: by mail-qv1-f71.google.com with SMTP id lv8-20020a056214578800b0053477624294so4849256qvb.22 for ; Sun, 22 Jan 2023 07:46:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=E6jYgjX2bdUMfo7qC2knF1fy2KORUnKc0O3IR4qBP1I=; b=3qJdK6tSh4L5K8HobBV837pBr9eOBzF4C3w1dGZoIAhI0+Q6X++r/wH8Yw+itySu0C UkCZJ0Zj8Krobrbsx5kfts8OocTV7zjwzaTT77eQzNCfIKDj/HpEKviOhBMHiJwdPT5S GYN/WmNwHK2F1CGQqH9awD27WIAaJqE057+cREHc3Toc60/8vbcNHGkBRZPY2rLzlDk7 IaFB/0A+vRxrhUDf3zKztuQEgzFX/fokSqg3GBMS2usE/2s/S3YCUsHAQtInlICDG9za m7Yup649QejTh3gQ5h872KJwqJBf6NnEy4NWDVdec4VjZ5sEwdxEV/DD25QG5eXiEtYi ilYA== X-Gm-Message-State: AFqh2kr8CFGT+nNIDvXg/fFQQk92SvWqAsUriQ+IAB9AqkhY8p53/eea m3BwsBP1kjlFnjqXXnkHrkSMiioDkYiBUu/V885E3qFDpevcY7jWpzsIQUMXlCKo9JsM8manX3Q 2WziueGg2IdJz51Gx/xae2UdOkK6Uxjsc2qE= X-Received: by 2002:a05:6214:350e:b0:535:b22:d8dd with SMTP id nk14-20020a056214350e00b005350b22d8ddmr31727133qvb.5.1674402382098; Sun, 22 Jan 2023 07:46:22 -0800 (PST) X-Google-Smtp-Source: AMrXdXvzKqhaSc8ThZothYAnzF5/kTMB4L4BWs63as8xoBUPLzodub1dl0JsOxTCxYNPbqC2WLN7Cg== X-Received: by 2002:a05:6214:350e:b0:535:b22:d8dd with SMTP id nk14-20020a056214350e00b005350b22d8ddmr31727112qvb.5.1674402381836; Sun, 22 Jan 2023 07:46:21 -0800 (PST) Received: from localhost.localdomain.com (024-205-208-113.res.spectrum.com. [24.205.208.113]) by smtp.gmail.com with ESMTPSA id h8-20020a05620a284800b006fa7b5ea2d1sm29929090qkp.125.2023.01.22.07.46.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Jan 2023 07:46:21 -0800 (PST) From: Tom Rix To: neal_liu@aspeedtech.com, herbert@gondor.apana.org.au, davem@davemloft.net, joel@jms.id.au, andrew@aj.id.au Cc: linux-aspeed@lists.ozlabs.org, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Tom Rix Subject: [PATCH] crypto: change aspeed_acry_akcipher_algs storage-class-specifier to static Date: Sun, 22 Jan 2023 07:46:11 -0800 Message-Id: <20230122154611.504808-1-trix@redhat.com> X-Mailer: git-send-email 2.26.3 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-20230122_074905_780529_6659CE17 X-CRM114-Status: GOOD ( 12.76 ) 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/crypto/aspeed/aspeed-acry.c:606:24: warning: symbol 'aspeed_acry_akcipher_algs' was not declared. Should it be static? aspeed_acry_akcipher_algs is only used in aspeed-acry.c, so it should be static. Fixes: 2f1cf4e50c95 ("crypto: aspeed - Add ACRY RSA driver") Signed-off-by: Tom Rix --- drivers/crypto/aspeed/aspeed-acry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/aspeed/aspeed-acry.c b/drivers/crypto/aspeed/aspeed-acry.c index 6d3790583f8b..164c524015f0 100644 --- a/drivers/crypto/aspeed/aspeed-acry.c +++ b/drivers/crypto/aspeed/aspeed-acry.c @@ -603,7 +603,7 @@ static void aspeed_acry_rsa_exit_tfm(struct crypto_akcipher *tfm) crypto_free_akcipher(ctx->fallback_tfm); } -struct aspeed_acry_alg aspeed_acry_akcipher_algs[] = { +static struct aspeed_acry_alg aspeed_acry_akcipher_algs[] = { { .akcipher = { .encrypt = aspeed_acry_rsa_enc,