aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hv/vmbus_drv.c
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2014-06-03 11:38:15 -0400
committerDavid S. Miller <davem@davemloft.net>2014-06-03 21:18:38 -0400
commit1b9d48f2a5794248fef45540961d047b30655bb3 (patch)
treee1b5f324a46558675ee68ab23a585f3019f9ce7a /drivers/hv/vmbus_drv.c
parent9323b239953605071866899e675c06fb2d41880c (diff)
hyper-v: make uuid_le const
The uuid structure could be managed as a const in several places. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/hv/vmbus_drv.c')
-rw-r--r--drivers/hv/vmbus_drv.c10
1 files changed, 5 insertions, 5 deletions
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