From patchwork Mon Oct 17 15:08:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9379573 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3E079607D4 for ; Mon, 17 Oct 2016 15:09:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F90E292C8 for ; Mon, 17 Oct 2016 15:09:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 241FE29309; Mon, 17 Oct 2016 15:09:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B0D42292C8 for ; Mon, 17 Oct 2016 15:09:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934188AbcJQPJL (ORCPT ); Mon, 17 Oct 2016 11:09:11 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:36384 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933633AbcJQPJL (ORCPT ); Mon, 17 Oct 2016 11:09:11 -0400 Received: by mail-pf0-f193.google.com with SMTP id r16so12961732pfg.3 for ; Mon, 17 Oct 2016 08:09:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7JQZDtWd53QlUJpoQlvWb05giPiMA75hdKngMKBwPbE=; b=IUBtdq7e8eJu5d/tifh1GvSRz7HmO8gtaX44tEmtEVIy3ueB17KnBV6RbflouHuJI+ Q1hIRK+O+72nS1w00/n1XJCql1Iig86BqTqCJzK3fP0y6E4IAfgm40mDYzP2il5T/Tiq Kd+F0XcbCsmY75EEolIogh9NZNAS1/rMFEjXMB9f5L9yTBdJvWG+pm/ZqvqdkmpLadp9 HzH204TZ+/INl5gGX0DsrtsjbiIyOviksViUmSDLTsYw/vJKc0/JT7/+qKzgmxWetg1z NjJ/Ek+AYuqemRq3LdxyJGxJhDsMdaj5Vp42Oyhgs7qJGL0Exy2P6+lzDrR691cDyG6g SM2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7JQZDtWd53QlUJpoQlvWb05giPiMA75hdKngMKBwPbE=; b=fFTUdV/V0iKMVy3T8Uavtzq+V7IDpRDUtNL/5Wo/02MIphQvaAfOz0fIKhOfGQcxZ1 cwLZ7C6LBGIQZaKl0glu0z5VQPnitwO0AsF9pvdbcfDHrPULNpespEedCM8Z48wYcnav aLm1MKDLdCXwaxEuCA9401gu+H2N8DH8mWVHjOf7egF1tyqIHPfrgRnu+jxg+RGU8eOe OSbaPFyjl7UNmzprmGUys8xKCbnasoAf/W6aez9KpT9Gl4Zz7/eAjHd/pDcWZxJ1Lhvq 7PW4Q8TYCc46ohnYFrqNeP5lTgAItLrZ1QJeCWIEvaRU0EzItSQ8fWJQwNyuHzaGKBj7 A/OQ== X-Gm-Message-State: AA6/9RmVI9PIi4MDkshvadzVe45voemOx1/W9bTwKH9KgQv62c8286IYIUgY/gMCbMVLMA== X-Received: by 10.99.149.20 with SMTP id p20mr32012427pgd.21.1476716950381; Mon, 17 Oct 2016 08:09:10 -0700 (PDT) Received: from 192.168.0.37 (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id v4sm48890543pfb.52.2016.10.17.08.08.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Oct 2016 08:09:09 -0700 (PDT) From: Wei Yongjun To: Tom Lendacky , Gary Hook , Herbert Xu Cc: Wei Yongjun , linux-crypto@vger.kernel.org Subject: [PATCH -next] crypto: ccp - Fix non static symbol warning Date: Mon, 17 Oct 2016 15:08:50 +0000 Message-Id: <1476716930-9831-1-git-send-email-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Fixes the following sparse warning: drivers/crypto/ccp/ccp-dev.c:44:6: warning: symbol 'ccp_error_codes' was not declared. Should it be static? Signed-off-by: Wei Yongjun Acked-by: Gary R Hook Acked-by: Gary R Hook --- drivers/crypto/ccp/ccp-dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/crypto/ccp/ccp-dev.c b/drivers/crypto/ccp/ccp-dev.c index cafa633..c25515a 100644 --- a/drivers/crypto/ccp/ccp-dev.c +++ b/drivers/crypto/ccp/ccp-dev.c @@ -41,7 +41,7 @@ struct ccp_tasklet_data { }; /* Human-readable error strings */ -char *ccp_error_codes[] = { +static char *ccp_error_codes[] = { "", "ERR 01: ILLEGAL_ENGINE", "ERR 02: ILLEGAL_KEY_ID",