aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hv/channel_mgmt.c2
-rw-r--r--drivers/hv/hyperv_vmbus.h6
-rw-r--r--drivers/hv/vmbus_drv.c10
3 files changed, 9 insertions, 9 deletions
diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c
index fa920469bf10..90d654556437 100644
--- a/drivers/hv/channel_mgmt.c
+++ b/drivers/hv/channel_mgmt.c
@@ -365,7 +365,7 @@ static u32 next_vp;
365 * performance critical channels (IDE, SCSI and Network) will be uniformly 365 * performance critical channels (IDE, SCSI and Network) will be uniformly
366 * distributed across all available CPUs. 366 * distributed across all available CPUs.
367 */ 367 */
368static u32 get_vp_index(uuid_le *type_guid) 368static u32 get_vp_index(const uuid_le *type_guid)
369{ 369{
370 u32 cur_cpu; 370 u32 cur_cpu;
371 int i; 371 int i;
diff --git a/drivers/hv/hyperv_vmbus.h b/drivers/hv/hyperv_vmbus.h
index 860134da8039..f90621e858fa 100644
--- a/drivers/hv/hyperv_vmbus.h
+++ b/drivers/hv/hyperv_vmbus.h
@@ -644,9 +644,9 @@ extern struct vmbus_connection vmbus_connection;
644 644
645/* General vmbus interface */ 645/* General vmbus interface */
646 646
647struct hv_device *vmbus_device_create(uuid_le *type, 647struct hv_device *vmbus_device_create(const uuid_le *type,
648 uuid_le *instance, 648 const uuid_le *instance,
649 struct vmbus_channel *channel); 649 struct vmbus_channel *channel);
650 650
651int vmbus_device_register(struct hv_device *child_device_obj); 651int vmbus_device_register(struct hv_device *child_device_obj);
652void vmbus_device_unregister(struct hv_device *device_obj); 652void vmbus_device_unregister(struct hv_device *device_obj);
diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c
index 8e53a3c2607e..4d6b26979fbd 100644
--- a/drivers/hv/vmbus_drv.c
+++ b/drivers/hv/vmbus_drv.c
@@ -435,7 +435,7 @@ static int vmbus_uevent(struct device *device, struct kobj_uevent_env *env)
435 return ret; 435 return ret;
436} 436}
437 437
438static uuid_le null_guid; 438static const uuid_le null_guid;
439 439
440static inline bool is_null_guid(const __u8 *guid) 440static inline bool is_null_guid(const __u8 *guid)
441{ 441{
@@ -450,7 +450,7 @@ static inline bool is_null_guid(const __u8 *guid)
450 */ 450 */
451static const struct hv_vmbus_device_id *hv_vmbus_get_id( 451static const struct hv_vmbus_device_id *hv_vmbus_get_id(
452 const struct hv_vmbus_device_id *id, 452 const struct hv_vmbus_device_id *id,
453 __u8 *guid) 453 const __u8 *guid)
454{ 454{
455 for (; !is_null_guid(id->guid); id++) 455 for (; !is_null_guid(id->guid); id++)
456 if (!memcmp(&id->guid, guid, sizeof(uuid_le))) 456 if (!memcmp(&id->guid, guid, sizeof(uuid_le)))
@@ -779,9 +779,9 @@ EXPORT_SYMBOL_GPL(vmbus_driver_unregister);
779 * vmbus_device_create - Creates and registers a new child device 779 * vmbus_device_create - Creates and registers a new child device
780 * on the vmbus. 780 * on the vmbus.
781 */ 781 */
782struct hv_device *vmbus_device_create(uuid_le *type, 782struct hv_device *vmbus_device_create(const uuid_le *type,
783 uuid_le *instance, 783 const uuid_le *instance,
784 struct vmbus_channel *channel) 784 struct vmbus_channel *channel)
785{ 785{
786 struct hv_device *child_device_obj; 786 struct hv_device *child_device_obj;
787 787