Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e6242fa0 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Greg Kroah-Hartman
Browse files

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: default avatarStephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 42dd2715
Loading
Loading
Loading
Loading
+24 −24
Original line number Diff line number Diff line
@@ -1097,7 +1097,7 @@ static void vmbus_onversion_response(
}

/* Channel message dispatch table */
struct vmbus_channel_message_table_entry
const struct vmbus_channel_message_table_entry
channel_message_table[CHANNELMSG_COUNT] = {
	{ CHANNELMSG_INVALID,			0, NULL },
	{ CHANNELMSG_OFFERCHANNEL,		0, vmbus_onoffer },
+1 −1
Original line number Diff line number Diff line
@@ -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];


+1 −1
Original line number Diff line number Diff line
@@ -853,7 +853,7 @@ void vmbus_on_msg_dpc(unsigned long data)
	struct hv_message *msg = (struct hv_message *)page_addr +
				  VMBUS_MESSAGE_SINT;
	struct vmbus_channel_message_header *hdr;
	struct vmbus_channel_message_table_entry *entry;
	const struct vmbus_channel_message_table_entry *entry;
	struct onmessage_work_context *ctx;
	u32 message_type = msg->header.message_type;