Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753869AbdHOKgq (ORCPT ); Tue, 15 Aug 2017 06:36:46 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:37801 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753775AbdHOKgl (ORCPT ); Tue, 15 Aug 2017 06:36:41 -0400 From: Arvind Yadav To: schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, sth@linux.vnet.ibm.com, hoeppner@linux.vnet.ibm.com, jwi@linux.vnet.ibm.com, ubraun@linux.vnet.ibm.com, maier@linux.vnet.ibm.com, cohuck@redhat.com, pasic@linux.vnet.ibm.com Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Subject: [RFT 08/13] s390: vmur: constify ccw_device_id Date: Tue, 15 Aug 2017 16:05:39 +0530 Message-Id: <1502793344-5368-9-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502793344-5368-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1502793344-5368-1-git-send-email-arvind.yadav.cs@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 872 Lines: 24 ccw_device_id are not supposed to change at runtime. All functions working with ccw_device_id provided by work with const ccw_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/s390/char/vmur.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/s390/char/vmur.c b/drivers/s390/char/vmur.c index 04aceb6..3d0cf06 100644 --- a/drivers/s390/char/vmur.c +++ b/drivers/s390/char/vmur.c @@ -49,7 +49,7 @@ static struct class *vmur_class; static struct debug_info *vmur_dbf; /* We put the device's record length (for writes) in the driver_info field */ -static struct ccw_device_id ur_ids[] = { +static const struct ccw_device_id ur_ids[] = { { CCWDEV_CU_DI(READER_PUNCH_DEVTYPE, 80) }, { CCWDEV_CU_DI(PRINTER_DEVTYPE, 132) }, { /* end of list */ } -- 2.7.4