Received: by 10.223.185.111 with SMTP id b44csp382618wrg; Fri, 9 Mar 2018 06:36:59 -0800 (PST) X-Google-Smtp-Source: AG47ELtpV6R2dbWC8dz3iD6gAQZ0yQEQit01dpfj6hHZGTzJa00NVKAO0OzCTX4j4ClKJmnuC0Ji X-Received: by 10.101.81.76 with SMTP id g12mr24527709pgq.88.1520606218952; Fri, 09 Mar 2018 06:36:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520606218; cv=none; d=google.com; s=arc-20160816; b=TQBvfv9VNuU561dyVj3+NMZzftbLZ72qfIjo0+iCjRjToyB52eX3CZbYcZrBoXrkzo FLEktOttDz3g+p6gT0LopZa51fpxHVhpBRiF7Vq9DbEFB61pG+wpCJpniY76A2lcixL0 ccBqPwHceL1Iszb67qofEt81dEbriN8SqaxyhwRzFS6DzB9pXO9gwnLZ4YFn+UXashVW WyxOMXdUCzlfRkC0RIEaNc9T9pXEGVOim+k6P8RUia680lJ7Rue8bXmbkKeJa+IDTrtr UbMSxPAw1E3U/tqRVYUNSvmAAcHSXiLbgV7mr4StVeTyrNEFqkQ/WWCyaHIFa0PQyit0 1ASg== 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:date:cc:to:from:subject:message-id :arc-authentication-results; bh=6M7GopaiG3FgeY5jB75RX/Icw2TH9OIpEI3eukDy4l4=; b=IeJLBJFsisFQS0OdsxBChyMf96P+zhMRoh2Hny8eKr0i3KE8oOKky9uV3UjSDlkYJb 133iFk8WOD8v3ii5QcT+oJFD+BiyOSN4OGsUYdtbZCy3PI8gg1Qn+efjb7W1vcIKUAQ3 YE57EELX5ajno1KmidrTackns5flG4Lka1io4bJ/qYsLLNO0D2f0lR4uAVvb8kWp55qj MChbPtfRJiY79FAbzFZJmIZsMJf5XSpKB3vU26q5TKBR//x2jhZVcPlY6GKLlxZYqe+y wxVQow3BUWslBaH/34qIp/aSiJAi1Q3qjBM/CycW1B2TNvlibz3V2FAljIJfoQG+OmKU weYQ== ARC-Authentication-Results: i=1; mx.google.com; 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 s25si807202pgv.479.2018.03.09.06.36.44; Fri, 09 Mar 2018 06:36:58 -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; 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 S932080AbeCIOfl (ORCPT + 99 others); Fri, 9 Mar 2018 09:35:41 -0500 Received: from smtprelay0242.hostedemail.com ([216.40.44.242]:33975 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751102AbeCIOfk (ORCPT ); Fri, 9 Mar 2018 09:35:40 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id 2A66618009B7B; Fri, 9 Mar 2018 14:35:39 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::,RULES_HIT:41:355:379:541:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3868:3870:3871:3872:3874:4037:4321:5007:10004:10400:10848:11026:11232:11658:11914:12438:12740:12895:13069:13311:13357:13439:13894:14659:21080:21451:21627:30029:30054:30090:30091,0,RBL:47.151.150.235:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:22,LUA_SUMMARY:none X-HE-Tag: farm56_13f842341ac37 X-Filterd-Recvd-Size: 1979 Received: from XPS-9350 (unknown [47.151.150.235]) (Authenticated sender: joe@perches.com) by omf03.hostedemail.com (Postfix) with ESMTPA; Fri, 9 Mar 2018 14:35:37 +0000 (UTC) Message-ID: <1520606135.26370.9.camel@perches.com> Subject: Re: [PATCH 3/4] crypto: bcm: Constify *hash_alg_name[] From: Joe Perches To: Herbert Xu , =?ISO-8859-1?Q?Hern=E1n?= Gonzalez Cc: davem@davemloft.net, 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 Date: Fri, 09 Mar 2018 06:35:35 -0800 In-Reply-To: <20180309142954.GA12852@gondor.apana.org.au> References: <1519768888-19866-1-git-send-email-hernan@vanguardiasur.com.ar> <1519768888-19866-3-git-send-email-hernan@vanguardiasur.com.ar> <20180309142954.GA12852@gondor.apana.org.au> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.26.1-1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2018-03-09 at 22:29 +0800, Herbert Xu wrote: > On Tue, Feb 27, 2018 at 07:01:27PM -0300, Hern?n Gonzalez wrote: > > Note: This is compile only tested. > > No gain from this except some self-documenting. [] > > diff --git 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", > > Please make that > > const char *const > > Ditto with patch 4. > > Thanks, and likely, as this is a global name, it should be something like crypto_hash_alg_name