um: Neaten vu_err macro definition
authorJoe Perches <joe@perches.com>
Sat, 11 Apr 2020 16:28:08 +0000 (09:28 -0700)
committerRichard Weinberger <richard@nod.at>
Tue, 2 Jun 2020 20:37:33 +0000 (22:37 +0200)
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 <joe@perches.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/drivers/virtio_uml.c

index be54d36..351aee5 100644 (file)
@@ -74,7 +74,7 @@ struct virtio_uml_vq_info {
 
 extern unsigned long long physmem_size, highmem;
 
-#define vu_err(vu_dev, ...)    dev_err(&(vu_dev)->pdev->dev, __VA_ARGS__)
+#define vu_err(vu_dev, ...)    dev_err(&(vu_dev)->pdev->dev, ##__VA_ARGS__)
 
 /* Vhost-user protocol */