From patchwork Wed Oct 14 19:14:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 7397671 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 826BA9F36A for ; Wed, 14 Oct 2015 19:14:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9F8A720883 for ; Wed, 14 Oct 2015 19:14:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AC35020879 for ; Wed, 14 Oct 2015 19:14:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752946AbbJNTO2 (ORCPT ); Wed, 14 Oct 2015 15:14:28 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:34964 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752222AbbJNTO1 (ORCPT ); Wed, 14 Oct 2015 15:14:27 -0400 Received: by wicll6 with SMTP id ll6so11120474wic.0; Wed, 14 Oct 2015 12:14:26 -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; bh=1cSKI1SII7nSgm9veXD3qAygefPmq2ui9IJt/O0c1j4=; b=gFNPlBaFZHHeZhQf/3ygF6sOVsPGOWEMgiJvzDqOsu8CdqPj3YFeoiWnXJ47APrYiS 0U7cq4/P70q8HqjCDMlbVNW94JwGOWfG8KSaBVkDHafsgMzsaRD7ALW0AloAMZVkf/Ic oZZxw2pMJiAU6Wdprqxk+7Jd+qVBXSUtPVuLdO8PApN6DQk3GwuMjTApHOlBOZ/Zzjji QM8vmaKNnjIn0HUEh9LmjH4VZM+KTP3gyorJbn/79v+gBL46ODENhEmjNHvDJRs1szvm lDBNotR3eZ49nZihFC7Xhq2hWlndJ3bR7tNF2GTRyjyqMvYDo4O8E1kREjWWwcnv/+Tc 1aoA== X-Received: by 10.180.188.101 with SMTP id fz5mr6781297wic.3.1444850066781; Wed, 14 Oct 2015 12:14:26 -0700 (PDT) Received: from Red.local (ANice-651-1-429-185.w83-201.abo.wanadoo.fr. [83.201.253.185]) by smtp.googlemail.com with ESMTPSA id h7sm11781117wjz.7.2015.10.14.12.14.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Oct 2015 12:14:26 -0700 (PDT) From: LABBE Corentin To: davem@davemloft.net, herbert@gondor.apana.org.au Cc: LABBE Corentin , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: sahara: set array of const as const Date: Wed, 14 Oct 2015 21:14:19 +0200 Message-Id: <1444850059-16740-1-git-send-email-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.4.9 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Some array of const char are not set as const. This patch fix that. Signed-off-by: LABBE Corentin --- drivers/crypto/sahara.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/crypto/sahara.c b/drivers/crypto/sahara.c index 804c0f5..f68c24a 100644 --- a/drivers/crypto/sahara.c +++ b/drivers/crypto/sahara.c @@ -272,7 +272,7 @@ static u32 sahara_aes_data_link_hdr(struct sahara_dev *dev) SAHARA_HDR_CHA_SKHA | SAHARA_HDR_PARITY_BIT; } -static char *sahara_err_src[16] = { +static const char *sahara_err_src[16] = { "No error", "Header error", "Descriptor length error", @@ -291,14 +291,14 @@ static char *sahara_err_src[16] = { "DMA error" }; -static char *sahara_err_dmasize[4] = { +static const char *sahara_err_dmasize[4] = { "Byte transfer", "Half-word transfer", "Word transfer", "Reserved" }; -static char *sahara_err_dmasrc[8] = { +static const char *sahara_err_dmasrc[8] = { "No error", "AHB bus error", "Internal IP bus error", @@ -309,7 +309,7 @@ static char *sahara_err_dmasrc[8] = { "DMA HW error" }; -static char *sahara_cha_errsrc[12] = { +static const char *sahara_cha_errsrc[12] = { "Input buffer non-empty", "Illegal address", "Illegal mode", @@ -324,7 +324,7 @@ static char *sahara_cha_errsrc[12] = { "Reserved" }; -static char *sahara_cha_err[4] = { "No error", "SKHA", "MDHA", "RNG" }; +static const char *sahara_cha_err[4] = { "No error", "SKHA", "MDHA", "RNG" }; static void sahara_decode_error(struct sahara_dev *dev, unsigned int error) { @@ -354,7 +354,7 @@ static void sahara_decode_error(struct sahara_dev *dev, unsigned int error) dev_err(dev->device, "\n"); } -static char *sahara_state[4] = { "Idle", "Busy", "Error", "HW Fault" }; +static const char *sahara_state[4] = { "Idle", "Busy", "Error", "HW Fault" }; static void sahara_decode_status(struct sahara_dev *dev, unsigned int status) {