Skip to content

Commit 4c5a770

Browse files
JoePerchesrichardweinberger
authored andcommitted
um: Neaten vu_err macro definition
Defining a macro with ... and __VA_ARGS__ (without ##) can cause compilation errors if a macro use does not have additional args. Add ## to __VA_ARGS__ in the macro definition. Signed-off-by: Joe Perches <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent bc8f8e4 commit 4c5a770

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/um/drivers/virtio_uml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ struct virtio_uml_vq_info {
7474

7575
extern unsigned long long physmem_size, highmem;
7676

77-
#define vu_err(vu_dev, ...) dev_err(&(vu_dev)->pdev->dev, __VA_ARGS__)
77+
#define vu_err(vu_dev, ...) dev_err(&(vu_dev)->pdev->dev, ##__VA_ARGS__)
7878

7979
/* Vhost-user protocol */
8080

0 commit comments

Comments
 (0)