linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] scsi: ibmvfc: constify vio_device_id
@ 2017-08-17 13:45 Arvind Yadav
  2017-08-17 13:45 ` [PATCH 2/3] scsi: ibmvscsi: " Arvind Yadav
  2017-08-17 13:45 ` [PATCH 3/3] scsi: ibmvscsi_tgt: " Arvind Yadav
  0 siblings, 2 replies; 3+ messages in thread
From: Arvind Yadav @ 2017-08-17 13:45 UTC (permalink / raw)
  To: tyreld, paulus, jejb, martin.petersen, mpe
  Cc: linux-kernel, linux-scsi, linuxppc-dev

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

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
---
 drivers/scsi/ibmvscsi/ibmvfc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/ibmvscsi/ibmvfc.c b/drivers/scsi/ibmvscsi/ibmvfc.c
index cc4e05b..87d83b1 100644
--- a/drivers/scsi/ibmvscsi/ibmvfc.c
+++ b/drivers/scsi/ibmvscsi/ibmvfc.c
@@ -4929,7 +4929,7 @@ static unsigned long ibmvfc_get_desired_dma(struct vio_dev *vdev)
 	return pool_dma + ((512 * 1024) * driver_template.cmd_per_lun);
 }
 
-static struct vio_device_id ibmvfc_device_table[] = {
+static const struct vio_device_id ibmvfc_device_table[] = {
 	{"fcp", "IBM,vfc-client"},
 	{ "", "" }
 };
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-08-17 13:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-17 13:45 [PATCH 1/3] scsi: ibmvfc: constify vio_device_id Arvind Yadav
2017-08-17 13:45 ` [PATCH 2/3] scsi: ibmvscsi: " Arvind Yadav
2017-08-17 13:45 ` [PATCH 3/3] scsi: ibmvscsi_tgt: " Arvind Yadav

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).