hv: pass u32 to process_chn_event()
Change types in vmbus_on_event() to u32 since the input is u32 as well. Pass u32 to process_chn_event() instead of casting arg to void* and back. Update printk to reflect type change. Signed-off-by: Olaf Hering <olaf@aepfle.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
242b45aa8d
commit
35436487e9
@ -250,10 +250,9 @@ struct vmbus_channel *relid2channel(u32 relid)
|
|||||||
/*
|
/*
|
||||||
* process_chn_event - Process a channel event notification
|
* process_chn_event - Process a channel event notification
|
||||||
*/
|
*/
|
||||||
static void process_chn_event(void *context)
|
static void process_chn_event(u32 relid)
|
||||||
{
|
{
|
||||||
struct vmbus_channel *channel;
|
struct vmbus_channel *channel;
|
||||||
u32 relid = (u32)(unsigned long)context;
|
|
||||||
|
|
||||||
/* ASSERT(relId > 0); */
|
/* ASSERT(relId > 0); */
|
||||||
|
|
||||||
@ -271,7 +270,7 @@ static void process_chn_event(void *context)
|
|||||||
* (void*)channel);
|
* (void*)channel);
|
||||||
*/
|
*/
|
||||||
} else {
|
} else {
|
||||||
pr_err("channel not found for relid - %d\n", relid);
|
pr_err("channel not found for relid - %u\n", relid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -280,10 +279,10 @@ static void process_chn_event(void *context)
|
|||||||
*/
|
*/
|
||||||
void vmbus_on_event(unsigned long data)
|
void vmbus_on_event(unsigned long data)
|
||||||
{
|
{
|
||||||
int dword;
|
u32 dword;
|
||||||
int maxdword = MAX_NUM_CHANNELS_SUPPORTED >> 5;
|
u32 maxdword = MAX_NUM_CHANNELS_SUPPORTED >> 5;
|
||||||
int bit;
|
int bit;
|
||||||
int relid;
|
u32 relid;
|
||||||
u32 *recv_int_page = vmbus_connection.recv_int_page;
|
u32 *recv_int_page = vmbus_connection.recv_int_page;
|
||||||
|
|
||||||
/* Check events */
|
/* Check events */
|
||||||
@ -300,7 +299,7 @@ void vmbus_on_event(unsigned long data)
|
|||||||
/* special case - vmbus channel protocol msg */
|
/* special case - vmbus channel protocol msg */
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
process_chn_event((void *) (unsigned long)relid);
|
process_chn_event(relid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user