diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2019-06-06 23:17:36 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2019-06-06 23:32:13 +0200 |
commit | 0b4a7092ffe568a55bf8f3cefdf79ff666586d91 (patch) | |
tree | 47fbd372259265d0d17999e50735b2dfc6d559c9 /fs/binfmt_elf_fdpic.c | |
parent | vhost: access vq metadata through kernel virtual address (diff) | |
download | linux-0b4a7092ffe568a55bf8f3cefdf79ff666586d91.tar.xz linux-0b4a7092ffe568a55bf8f3cefdf79ff666586d91.zip |
vhost: fix clang build warning
Clang warns:
drivers/vhost/vhost.c:2085:5: warning: macro expansion producing
'defined' has undefined behavior [-Wexpansion-to-defined]
#if VHOST_ARCH_CAN_ACCEL_UACCESS
^
drivers/vhost/vhost.h:98:38: note: expanded from macro
'VHOST_ARCH_CAN_ACCEL_UACCESS'
#define VHOST_ARCH_CAN_ACCEL_UACCESS defined(CONFIG_MMU_NOTIFIER) && \
^
It's being pedantic for the sake of portability, but the fix is easy
enough.
Rework the definition of VHOST_ARCH_CAN_ACCEL_UACCESS to expand to a constant.
Fixes: 7f466032dc9e ("vhost: access vq metadata through kernel virtual address")
Link: https://github.com/ClangBuiltLinux/linux/issues/508
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Tested-by: Nathan Chancellor <natechancellor@gmail.com>
Diffstat (limited to 'fs/binfmt_elf_fdpic.c')
0 files changed, 0 insertions, 0 deletions