tools/virtio: remove stray characters
authorDavidlohr Bueso <dave@stgolabs.net>
Mon, 28 Nov 2022 03:43:46 +0000 (19:43 -0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 28 Dec 2022 10:28:11 +0000 (05:28 -0500)
__read_once_size() is not a macro, remove those '/'s.

Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
Message-Id: <20221128034347.990-2-dave@stgolabs.net>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
tools/virtio/ringtest/main.h

index 6d1fccd..9ed09ca 100644 (file)
@@ -149,16 +149,16 @@ static inline void busy_wait(void)
 static __always_inline
 void __read_once_size(const volatile void *p, void *res, int size)
 {
-        switch (size) {                                                 \
-        case 1: *(unsigned char *)res = *(volatile unsigned char *)p; break;              \
-        case 2: *(unsigned short *)res = *(volatile unsigned short *)p; break;            \
-        case 4: *(unsigned int *)res = *(volatile unsigned int *)p; break;            \
-        case 8: *(unsigned long long *)res = *(volatile unsigned long long *)p; break;            \
-        default:                                                        \
-                barrier();                                              \
-                __builtin_memcpy((void *)res, (const void *)p, size);   \
-                barrier();                                              \
-        }                                                               \
+       switch (size) {
+       case 1: *(unsigned char *)res = *(volatile unsigned char *)p; break;
+       case 2: *(unsigned short *)res = *(volatile unsigned short *)p; break;
+       case 4: *(unsigned int *)res = *(volatile unsigned int *)p; break;
+       case 8: *(unsigned long long *)res = *(volatile unsigned long long *)p; break;
+       default:
+               barrier();
+               __builtin_memcpy((void *)res, (const void *)p, size);
+               barrier();
+       }
 }
 
 static __always_inline void __write_once_size(volatile void *p, void *res, int size)