summaryrefslogtreecommitdiffstats
path: root/tools/virtio
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave@stgolabs.net>2022-11-27 19:43:46 -0800
committerMichael S. Tsirkin <mst@redhat.com>2022-12-28 05:28:11 -0500
commit8aeac42d60936046a00e67cdf7d27b061df2962f (patch)
tree928dc7cc88881c353eee817c6e3a9af23657b555 /tools/virtio
parente794070af224ade46db368271896b2685ff4f96b (diff)
downloadlinux-stable-8aeac42d60936046a00e67cdf7d27b061df2962f.tar.gz
linux-stable-8aeac42d60936046a00e67cdf7d27b061df2962f.tar.bz2
linux-stable-8aeac42d60936046a00e67cdf7d27b061df2962f.zip
tools/virtio: remove stray characters
__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>
Diffstat (limited to 'tools/virtio')
-rw-r--r--tools/virtio/ringtest/main.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/virtio/ringtest/main.h b/tools/virtio/ringtest/main.h
index 6d1fccd3d86c..9ed09caa659e 100644
--- a/tools/virtio/ringtest/main.h
+++ b/tools/virtio/ringtest/main.h
@@ -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)