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: 46962 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1210838wrn; Sun, 22 Jan 2023 08:07:19 -0800 (PST) X-Google-Smtp-Source: AMrXdXsVEDaB+ILV9+qrUQ4ItLRD2rxzttWN0AVznhMUZ3dZsTgYopa7lUqRBr5FsJnK6htF/t8W X-Received: by 2002:a17:907:d685:b0:86e:a761:c5ba with SMTP id wf5-20020a170907d68500b0086ea761c5bamr26070021ejc.37.1674403639616; Sun, 22 Jan 2023 08:07:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674403639; cv=none; d=google.com; s=arc-20160816; b=QQE2R70LYsrFWdGW9HnwK2vzO6j6CwSB6Wcp7t/hIkUza+2HeoXXEIJ3AWin1FReEL 55m7VN+yFnb0Pix9grkNvS+gVK7fT5lUzNJitynDFc9d8uUn8BNCLvNPNueyKWG+TGHY bC7OgHpFqUOYh03gVZZd5adEi5Fg1qpmvQ6zO/Eze6+We/XYHof66crWPHoW2Xq46e23 GigMtsv6OoYR40VTgLQ2ZthnecY+wN52vhecZzulQpX7pErf+2GowayfL5K5wUS6HTHN TfkIs/HvJcYMZZW23kHK/diRchuQ9SVUfkBtjLaVXTGkP1ei1T8S9xl907tPfHOF4MgR JDww== 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=E6jYgjX2bdUMfo7qC2knF1fy2KORUnKc0O3IR4qBP1I=; b=X2TCJ2ZOXp9tWFrfBoRZcUHsweNzBfPcRZg2wyyHAazRMVoohR/BehgvaH1Qe3djqh jljg/EejxznZE1Q9OXl4mUIfo6FMQ+dckUBiKj0VJM6+M53vnNa7W7w3ZP/n7J7F3C74 jcIr9I0RAv/So9kheyOCegYtijzrBETfzPJyRGWH/SrKtaHAsXrdK4u150PI2P/4Wf4r KAsNJD0XmIrVeaHghog81WQkLlfLFm8D/YvIVK+TV28kzje5ZnNBjO42i5weAuZl31dl Dnpl5KL8hhUZmV4msKzWXqtLSUN1xwFY3KBWUTgHA+gjYZzfv4DwA5Eeo4lmpx+vdu/v iOKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Eywi6BWO; 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 go11-20020a1709070d8b00b0087784d21e5asi12028298ejc.721.2023.01.22.08.06.46; Sun, 22 Jan 2023 08:07:19 -0800 (PST) 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=Eywi6BWO; 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 S230072AbjAVPrO (ORCPT + 99 others); Sun, 22 Jan 2023 10:47:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229879AbjAVPrM (ORCPT ); Sun, 22 Jan 2023 10:47:12 -0500 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 AFF9D5B96 for ; Sun, 22 Jan 2023 07:46:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1674402383; 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=E6jYgjX2bdUMfo7qC2knF1fy2KORUnKc0O3IR4qBP1I=; b=Eywi6BWOgXN6meW7mNv66wMEjX0QzUiRpiRXV2Jbu1SiUu18px0A1Hu+hGO0AZ0Nlp5J4G SwZl3Ywj6S+uoWXVnsj3XM0RB+7f3ItdZqW/MWxwpktWC0YULOhy6352QPR2x4lqV7VjpF gRSqRQJl1WkeN8VUsU64qey4Ahke3UI= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-515-J3V3a1bpP-yoGixNZ-WLwQ-1; Sun, 22 Jan 2023 10:46:22 -0500 X-MC-Unique: J3V3a1bpP-yoGixNZ-WLwQ-1 Received: by mail-qk1-f198.google.com with SMTP id bq15-20020a05620a468f00b00706ae242abcso7249218qkb.7 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=7JvjHcvp3QK2J0gyn7NMXSF0gS38Uc4eHMMW3WZyVHbJtWHAOYEr4yXpLndF+xPeVS 7D3jLKxBrkA7dPhA0T675zovUPyotqJTFpbK7zKmWCn4RNt9tzIMU1fCz5OyeRheQYFT h7C6XmPqkL5ROYNyj2PsaMyZxvysX78tv1YTKc8lCC44wa6mi1WXi0PgWmbffUSqhale 32NZkgykvbTMahzOVJ5PJTSLiAxibFhl9GRSQ4vWseoyOhqQI1rqfbXj1fajV9PDPcr4 ZDrYGrwXqngObVP2x+xNmGSUtr4swgVRzynM4xwU6209J2MH5VzMLphKtdddsScAg4nj PKoQ== X-Gm-Message-State: AFqh2kp4UnASsvZKFRuiJSsBzwIU3E2sri4OUT5AiLdNFJhNhKrKYzPa eY435DA6CgOD81YM3ZIKV8jXB8h/blh9Q7DgTSDh2mDdVytenEGoj8WCR7ueJ9kCcu6KnSQCc86 3r1ocSyraEMV5WoICr/jUue6Z X-Received: by 2002:a05:6214:350e:b0:535:b22:d8dd with SMTP id nk14-20020a056214350e00b005350b22d8ddmr31727125qvb.5.1674402382070; Sun, 22 Jan 2023 07:46:22 -0800 (PST) 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-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=ham 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?1755739470573071493?= X-GMAIL-MSGID: =?utf-8?q?1755739470573071493?= 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,