aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/virtio_uml.c
diff options
context:
space:
mode:
authorJoe Perches <[email protected]>2020-04-11 16:28:08 +0000
committerRichard Weinberger <[email protected]>2020-06-02 20:37:33 +0000
commit4c5a770580054c1d107ba204a42df1db221670bd (patch)
treef5650f9b9a8d5aa19702c4780783a216939c1388 /arch/um/drivers/virtio_uml.c
parentum: Add a generic "fd" vector transport (diff)
downloadkernel-4c5a770580054c1d107ba204a42df1db221670bd.tar.gz
kernel-4c5a770580054c1d107ba204a42df1db221670bd.zip
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]>
Diffstat (limited to 'arch/um/drivers/virtio_uml.c')
-rw-r--r--arch/um/drivers/virtio_uml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/drivers/virtio_uml.c b/arch/um/drivers/virtio_uml.c
index be54d368e73d..351aee52aca6 100644
--- a/arch/um/drivers/virtio_uml.c
+++ b/arch/um/drivers/virtio_uml.c
@@ -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 */