diff options
author | stephen hemminger <stephen@networkplumber.org> | 2014-06-03 17:38:15 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-04 03:18:38 +0200 |
commit | 1b9d48f2a5794248fef45540961d047b30655bb3 (patch) | |
tree | e1b5f324a46558675ee68ab23a585f3019f9ce7a /drivers/hv/vmbus_drv.c | |
parent | lpc_eth: Use resource_size instead of computation (diff) | |
download | linux-1b9d48f2a5794248fef45540961d047b30655bb3.tar.xz linux-1b9d48f2a5794248fef45540961d047b30655bb3.zip |
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.c | 10 |
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) return ret; } -static uuid_le null_guid; +static const uuid_le null_guid; static inline bool is_null_guid(const __u8 *guid) { @@ -450,7 +450,7 @@ static inline bool is_null_guid(const __u8 *guid) */ static const struct hv_vmbus_device_id *hv_vmbus_get_id( const struct hv_vmbus_device_id *id, - __u8 *guid) + const __u8 *guid) { for (; !is_null_guid(id->guid); id++) if (!memcmp(&id->guid, guid, sizeof(uuid_le))) @@ -779,9 +779,9 @@ EXPORT_SYMBOL_GPL(vmbus_driver_unregister); * vmbus_device_create - Creates and registers a new child device * on the vmbus. */ -struct hv_device *vmbus_device_create(uuid_le *type, - uuid_le *instance, - struct vmbus_channel *channel) +struct hv_device *vmbus_device_create(const uuid_le *type, + const uuid_le *instance, + struct vmbus_channel *channel) { struct hv_device *child_device_obj; |