mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arvind Yadav <arvind.yadav.cs@gmail.com>
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	[thread overview]
Message-ID: <1502793344-5368-9-git-send-email-arvind.yadav.cs@gmail.com> (raw)
In-Reply-To: <1502793344-5368-1-git-send-email-arvind.yadav.cs@gmail.com>

ccw_device_id are not supposed to change at runtime. All functions
working with ccw_device_id provided by <asm/ccwdev.h> work with
const ccw_device_id. So mark the non-const structs as const.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
---
 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

  parent reply	other threads:[~2017-08-15 10:36 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-15 10:35 [RFT 00/13] constify s390 ccw_device_id Arvind Yadav
2017-08-15 10:35 ` [RFT 01/13] s390: ccwdev: constify ccw_device_id Arvind Yadav
2017-08-15 10:35 ` [RFT 02/13] s390: dasd_eckd: " Arvind Yadav
2017-08-15 10:35 ` [RFT 03/13] s390: dasd_fba: " Arvind Yadav
2017-08-15 10:35 ` [RFT 04/13] s390: con3215: " Arvind Yadav
2017-08-15 10:35 ` [RFT 05/13] s390: raw3270: " Arvind Yadav
2017-08-15 10:35 ` [RFT 06/13] s390: tape_34xx: " Arvind Yadav
2017-08-15 10:35 ` [RFT 07/13] s390: tape_3590: " Arvind Yadav
2017-08-15 10:35 ` Arvind Yadav [this message]
2017-08-15 10:35 ` [RFT 09/13] s390: ctcm: " Arvind Yadav
2017-08-15 10:35 ` [RFT 10/13] s390: lcs: " Arvind Yadav
2017-08-15 10:35 ` [RFT 11/13] s390: qeth: " Arvind Yadav
2017-08-15 10:35 ` [RFT 12/13] s390: zfcp: " Arvind Yadav
2017-08-15 10:35 ` [RFT 13/13] s390: virtio: " Arvind Yadav
2017-08-15 11:11   ` Cornelia Huck
2017-08-15 11:30 ` [RFT 00/13] constify s390 ccw_device_id Heiko Carstens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1502793344-5368-9-git-send-email-arvind.yadav.cs@gmail.com \
    --to=arvind.yadav.cs@gmail.com \
    --cc=cohuck@redhat.com \
    --cc=heiko.carstens@de.ibm.com \
    --cc=hoeppner@linux.vnet.ibm.com \
    --cc=jwi@linux.vnet.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=maier@linux.vnet.ibm.com \
    --cc=pasic@linux.vnet.ibm.com \
    --cc=schwidefsky@de.ibm.com \
    --cc=sth@linux.vnet.ibm.com \
    --cc=ubraun@linux.vnet.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®