mirror of https://gitee.com/openkylin/linux.git
Staging: hv: remove UNUSED_VAR usage
This isn't needed at all. Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
b211a955d4
commit
4e9bfefa3c
|
@ -30,8 +30,6 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
#define UNUSED_VAR(v) v __attribute__((__unused__))
|
|
||||||
|
|
||||||
#define ALIGN_UP(value, align) ( ((value) & (align-1))? ( ((value) + (align-1)) & ~(align-1) ): (value) )
|
#define ALIGN_UP(value, align) ( ((value) & (align-1))? ( ((value) + (align-1)) & ~(align-1) ): (value) )
|
||||||
#define ALIGN_DOWN(value, align) ( (value) & ~(align-1) )
|
#define ALIGN_DOWN(value, align) ( (value) & ~(align-1) )
|
||||||
#define NUM_PAGES_SPANNED(addr, len) ( (ALIGN_UP(addr+len, PAGE_SIZE) - ALIGN_DOWN(addr, PAGE_SIZE)) >> PAGE_SHIFT )
|
#define NUM_PAGES_SPANNED(addr, len) ( (ALIGN_UP(addr+len, PAGE_SIZE) - ALIGN_DOWN(addr, PAGE_SIZE)) >> PAGE_SHIFT )
|
||||||
|
|
|
@ -154,7 +154,7 @@ Desc: Set the multicast list
|
||||||
|
|
||||||
Remark: No-op here
|
Remark: No-op here
|
||||||
--*/
|
--*/
|
||||||
static void netvsc_set_multicast_list(UNUSED_VAR(struct net_device *net))
|
static void netvsc_set_multicast_list(struct net_device *net)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue