Received: by 10.223.185.116 with SMTP id b49csp5472468wrg; Tue, 27 Feb 2018 14:04:05 -0800 (PST) X-Google-Smtp-Source: AH8x226GfbG5mRsYniHCi378hOPmEyQFUu6Yo25fAleGZxsaV6eM+NVF7wMgTZRnwrD+oU2+Znuf X-Received: by 10.99.154.73 with SMTP id e9mr12112574pgo.26.1519769045633; Tue, 27 Feb 2018 14:04:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519769045; cv=none; d=google.com; s=arc-20160816; b=LUHRccWoCG5rrO1bNH8bkqEcILgbjIvk3E5Gy5Dvx3MzUacuZ8S9qnh/MZyxvxqIKv VZDnElQei7oCWgHwZ7Z1pIpIxPLekDEcKCo+LMChDI3Q9Udd30FSVf7S/2RkXJSsnNSF IPi2cyMN8HZ3WamS/5yVrn3IeakvdSjty9horaqic13WkK/36wrwm3T3UIDd0O7iXfOY smHEnxMeGH7sW6eSrcOuMDeotCHCbScBocbh8yhCOVV5CRZXczqZrn1Lx8/fp4n9/oFx dsh3ifCizZDaynytykapHQonL0v2Tg3KT53zBDkrCNpZM/PVBH6WEQ2li7VSQq5xH1Zp RM2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-authentication-results; bh=2YzNfGhj7+u4NMtQbBIUyoeXII/ePTcezjtMv9FxGw0=; b=dFvv3qiz1zm06HQfReJcF10GlLKVL77ls6+qGB9EYou8nugy8Ifcs04xneEHZQDagW Yrky2exM00hATu/Invt4x/N8qm30ZAax6Hx31bNaKiEBUlbsq3k38UdYMz5juWbmmMHC tu/eOU4JiRZnjekFfBXd8LxX5XAd6oLW87AYgg3McfTUJ1jr5pywgQT0fGdQwuM6dxbO /k+HjQn47CSq3QjlWi6Hn6vAY5MnNfjYBdYV/bwlIZy5Xd1pvr+nurZuyMEMaf1qINUe nuyLA1jaFX91sdM0dEfc1gcjKNyp2C8wBay2Y+i3+hLhv1rAUHA4nLNlcCw+wpTdItWx VlqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=dT+Feetn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n5si81016pgd.345.2018.02.27.14.03.50; Tue, 27 Feb 2018 14:04:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=dT+Feetn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751979AbeB0WCk (ORCPT + 99 others); Tue, 27 Feb 2018 17:02:40 -0500 Received: from mail-qt0-f193.google.com ([209.85.216.193]:41128 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751946AbeB0WCi (ORCPT ); Tue, 27 Feb 2018 17:02:38 -0500 Received: by mail-qt0-f193.google.com with SMTP id j4so499416qth.8 for ; Tue, 27 Feb 2018 14:02:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=2YzNfGhj7+u4NMtQbBIUyoeXII/ePTcezjtMv9FxGw0=; b=dT+Feetn1HMmnZS18/4T5lp4iuzSmQk5wU+jQ/CEzf9BCX+cUjCfSCM6pJgSxQmKQM 4Nc1btZy2EN6JpY0cLALiFrT3JDmQ8yi9JB6TPON6nMRpsghAmk8mDAYiSP4GssYCBfU QERHfXRJr8XZpnVV1xx5vMdDGucJPCN86ONSCm38CVPMpQmuZCcPHvPbpuZWFoGbVkEL uzYasw45ZQuQQm8uoOiDZdnUGiLE7wOzilUln7rRY4nw1BFzHRtj4HGKFYiqIyGUYvHM XOxIoWx5FtLbOI4Ur691eOiu99R/JRd6cr46q6e8GBLKwV61Eqf+fMdm0Tw98dfZgIoE r7rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2YzNfGhj7+u4NMtQbBIUyoeXII/ePTcezjtMv9FxGw0=; b=mErpgfPoxk1b8Oy7msUUm0RmV0QBeoSSvqV/y/HUiOuDdd6dVeM4pw+fpRECikWhIS LUg10WoQtf4fGjz7X46Uu54aR9SgbBC4nFHyUF06FHcCkuEcFpE6bm9H1i+GCrFKPq9g mA5GKCf9FzcMTHRoxxUsNcsuHVwAuzgXkcW9B9NGz9ndteRbx1coK3+io/wlXMJ5z6oJ AM6vOAD9aqgXMOOiGE75NC8+UTHj/XDt2BeKM88uqmJhGF4DxGrp3fqXxkUO72FVkRsD 1aRmY7ONNPC2IBYGdGDE4k/2GYRcleVIRz9C1hp6xVkhFl0EYZ/nJ/hyUbBIxmjWpOsE L9CA== X-Gm-Message-State: APf1xPDhXINoORW7ClfnITYQRfLMnPXmRJqLTIgVn3XTNsfGhAMQm3C/ j8gJrSJ2N++S4noZgrVqi+VCaQ== X-Received: by 10.200.27.2 with SMTP id y2mr26450066qtj.161.1519768957380; Tue, 27 Feb 2018 14:02:37 -0800 (PST) Received: from hlaptop.cpe.express.com.ar ([200.3.222.253]) by smtp.gmail.com with ESMTPSA id g124sm116514qkb.67.2018.02.27.14.02.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Feb 2018 14:02:36 -0800 (PST) From: =?UTF-8?q?Hern=C3=A1n=20Gonzalez?= To: herbert@gondor.apana.org.au, davem@davemloft.net, hernan@vanguardiasur.com.ar, steven.lin1@broadcom.com, arvind.yadav.cs@gmail.com, colin.king@canonical.com, raveendra.padasalagi@broadcom.com, ray.jui@broadcom.com, scott.branden@broadcom.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] crypto: bcm: Constify *hash_alg_name[] Date: Tue, 27 Feb 2018 19:01:27 -0300 Message-Id: <1519768888-19866-3-git-send-email-hernan@vanguardiasur.com.ar> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519768888-19866-1-git-send-email-hernan@vanguardiasur.com.ar> References: <1519768888-19866-1-git-send-email-hernan@vanguardiasur.com.ar> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Note: This is compile only tested. No gain from this except some self-documenting. Signed-off-by: HernĂ¡n Gonzalez --- drivers/crypto/bcm/spu.c | 5 +++-- drivers/crypto/bcm/spu.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/bcm/spu.c b/drivers/crypto/bcm/spu.c index efaf3cf..c7bb79e 100644 --- a/drivers/crypto/bcm/spu.c +++ b/drivers/crypto/bcm/spu.c @@ -23,8 +23,9 @@ #include "cipher.h" /* This array is based on the hash algo type supported in spu.h */ -char *hash_alg_name[] = { "None", "md5", "sha1", "sha224", "sha256", "aes", - "sha384", "sha512", "sha3_224", "sha3_256", "sha3_384", "sha3_512" }; +char const * const hash_alg_name[] = { "None", "md5", "sha1", "sha224", + "sha256", "aes", "sha384", "sha512", "sha3_224", "sha3_256", "sha3_384", + "sha3_512" }; /* Assumes SPU-M messages are in big endian */ void spum_dump_msg_hdr(u8 *buf, unsigned int buf_len) diff --git a/drivers/crypto/bcm/spu.h b/drivers/crypto/bcm/spu.h index f252367..71cf6b5 100644 --- a/drivers/crypto/bcm/spu.h +++ b/drivers/crypto/bcm/spu.h @@ -111,7 +111,7 @@ enum aead_type { AEAD_TYPE_LAST }; -extern char *hash_alg_name[HASH_ALG_LAST]; +extern const char * const hash_alg_name[HASH_ALG_LAST]; struct spu_request_opts { bool is_inbound; -- 2.7.4