diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2017-03-05 02:27:16 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-17 07:10:49 +0100 |
commit | e6242fa0fb50570acb6364446dec369d7b9b5b2c (patch) | |
tree | 3af29861775ad039474b0843f37dcffab8b2ae10 /drivers/hv/hyperv_vmbus.h | |
parent | hyperv: remove unnecessary return variable (diff) | |
download | linux-e6242fa0fb50570acb6364446dec369d7b9b5b2c.tar.xz linux-e6242fa0fb50570acb6364446dec369d7b9b5b2c.zip |
vmbus: make channel_message table constant
This table is immutable and should be const.
Cleanup indentation and whitespace for this as well.
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/hyperv_vmbus.h')
-rw-r--r-- | drivers/hv/hyperv_vmbus.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hv/hyperv_vmbus.h b/drivers/hv/hyperv_vmbus.h index 884f83bba1ab..b552c3a4dd3c 100644 --- a/drivers/hv/hyperv_vmbus.h +++ b/drivers/hv/hyperv_vmbus.h @@ -376,7 +376,7 @@ struct vmbus_channel_message_table_entry { void (*message_handler)(struct vmbus_channel_message_header *msg); }; -extern struct vmbus_channel_message_table_entry +extern const struct vmbus_channel_message_table_entry channel_message_table[CHANNELMSG_COUNT]; |