Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751194AbdH1Ghf (ORCPT ); Mon, 28 Aug 2017 02:37:35 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:51800 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750866AbdH1Ghd (ORCPT ); Mon, 28 Aug 2017 02:37:33 -0400 Subject: Re: [PATCH] s390/zcrypt: make CPRBX const To: Bhumika Goyal , julia.lawall@lip6.fr, freude@de.ibm.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org References: <1503666629-10646-1-git-send-email-bhumirks@gmail.com> From: Harald Freudenberger Date: Mon, 28 Aug 2017 08:37:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <1503666629-10646-1-git-send-email-bhumirks@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 17082806-0040-0000-0000-000003D3B495 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17082806-0041-0000-0000-000025D4172B Message-Id: <437dfa91-ab0b-985b-0356-69da99a43120@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-08-28_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1708280106 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 878 Lines: 25 On 08/25/2017 03:10 PM, Bhumika Goyal wrote: > Make this const as it is only used in a copy operation. > > Signed-off-by: Bhumika Goyal > --- > drivers/s390/crypto/zcrypt_msgtype6.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/s390/crypto/zcrypt_msgtype6.c b/drivers/s390/crypto/zcrypt_msgtype6.c > index 4fddb43..afd20ce 100644 > --- a/drivers/s390/crypto/zcrypt_msgtype6.c > +++ b/drivers/s390/crypto/zcrypt_msgtype6.c > @@ -140,7 +140,7 @@ struct function_and_rules_block { > * + 0x000A 'MRP ' (MCL3 'PK' or CEX2C 'PK') > * - VUD block > */ > -static struct CPRBX static_cprbx = { > +static const struct CPRBX static_cprbx = { > .cprb_len = 0x00DC, > .cprb_ver_id = 0x02, > .func_id = {0x54, 0x32}, Applied. Will be available with the next merge. Thanks and have a nice day. Harald Freudenberger