Skip to content

Commit 8aeac42

Browse files
Davidlohr Buesomstsirkin
authored andcommitted
tools/virtio: remove stray characters
__read_once_size() is not a macro, remove those '/'s. Signed-off-by: Davidlohr Bueso <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-by: Xuan Zhuo <[email protected]>
1 parent e794070 commit 8aeac42

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tools/virtio/ringtest/main.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,16 @@ static inline void busy_wait(void)
149149
static __always_inline
150150
void __read_once_size(const volatile void *p, void *res, int size)
151151
{
152-
switch (size) { \
153-
case 1: *(unsigned char *)res = *(volatile unsigned char *)p; break; \
154-
case 2: *(unsigned short *)res = *(volatile unsigned short *)p; break; \
155-
case 4: *(unsigned int *)res = *(volatile unsigned int *)p; break; \
156-
case 8: *(unsigned long long *)res = *(volatile unsigned long long *)p; break; \
157-
default: \
158-
barrier(); \
159-
__builtin_memcpy((void *)res, (const void *)p, size); \
160-
barrier(); \
161-
} \
152+
switch (size) {
153+
case 1: *(unsigned char *)res = *(volatile unsigned char *)p; break;
154+
case 2: *(unsigned short *)res = *(volatile unsigned short *)p; break;
155+
case 4: *(unsigned int *)res = *(volatile unsigned int *)p; break;
156+
case 8: *(unsigned long long *)res = *(volatile unsigned long long *)p; break;
157+
default:
158+
barrier();
159+
__builtin_memcpy((void *)res, (const void *)p, size);
160+
barrier();
161+
}
162162
}
163163

164164
static __always_inline void __write_once_size(volatile void *p, void *res, int size)

0 commit comments

Comments
 (0)