Skip to content

Commit ec05544

Browse files
Yufeng Wangmstsirkin
authored andcommitted
tools: virtio/linux/module.h add MODULE_DESCRIPTION() define.
when we build tools/virtio, meet below error information. cc -g -O2 -Werror -Wno-maybe-uninitialized -Wall -I. -I../include/ -I ../../usr/include/ -Wno-pointer-sign -fno-strict-overflow -fno-strict-aliasing -fno-common -MMD -U_FORTIFY_SOURCE -include ../../include/linux/kconfig.h -mfunction-return=thunk -fcf-protection=none -mindirect-branch-register -pthread -c -o virtio_ring.o ../../drivers/virtio/virtio_ring.c ../../drivers/virtio/virtio_ring.c:3276:20: error:expected declaration specifiers or ‘...’ before string constant 3276 | MODULE_DESCRIPTION("Virtio ring implementation"); | to fix, add MODULE_DESCRIPTION() define for virtio test. Fixes: ab0727f ("virtio: add missing MODULE_DESCRIPTION() macros") Signed-off-by: Yufeng Wang <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 83dc037 commit ec05544

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/virtio/linux/module.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,10 @@
55
static __attribute__((unused)) const char *__MODULE_LICENSE_name = \
66
__MODULE_LICENSE_value
77

8+
#ifndef MODULE_AUTHOR
9+
#define MODULE_AUTHOR(x)
10+
#endif
11+
12+
#ifndef MODULE_DESCRIPTION
13+
#define MODULE_DESCRIPTION(x)
14+
#endif

0 commit comments

Comments
 (0)