From: Daniel Gomez Date: Fri, 8 Oct 2021 17:38:02 +0000 (+0200) Subject: fix: implicit-int error in EXPORT_SYMBOL_GPL X-Git-Tag: v2.13.1~9 X-Git-Url: https://git.lttng.org/?p=lttng-modules.git;a=commitdiff_plain;h=e26f740b9ec08f75b156e224ac3c04707e3e6c37 fix: implicit-int error in EXPORT_SYMBOL_GPL Add module header to fix error: error: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_GPL' [-Werror=implicit-int] Log: /workdir/build/workspace/sources/lttng-modules/src/wrapper/random.c:54:1: warning: data definition has no type or storage class 54 EXPORT_SYMBOL_GPL(wrapper_get_bootid); ^~~~~~~~~~~~~~~~~ /workdir/build/workspace/sources/lttng-modules/src/wrapper/random.c:54:1: error: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_GPL' [-Werror=implicit-int] /workdir/build/workspace/sources/lttng-modules/src/wrapper/random.c:54:1: warning: parameter names (without types) in function declaration cc1: some warnings being treated as errors make[3]: *** [/workdir/build/tmp/work-shared/qt5222/kernel-source/scripts/Makefile.build:271: /workdir/build/workspace/sources/lttng-modules/src/wrapper/random.o] Signed-off-by: Daniel Gomez Signed-off-by: Mathieu Desnoyers Change-Id: If1b96f6fcc19988b94dc09b12d071f2c61491b83 --- diff --git a/src/wrapper/random.c b/src/wrapper/random.c index 7a81bea6..0c20815d 100644 --- a/src/wrapper/random.c +++ b/src/wrapper/random.c @@ -8,6 +8,7 @@ */ #include +#include /* boot_id depends on sysctl */ #if defined(CONFIG_SYSCTL)