From c3996cb021c0a35a1464e2df7531ee825ab17ff7 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Thu, 11 May 2023 15:00:43 -0400 Subject: [PATCH] Include kernel.h and fs.h at the top of kernelcompat.h Because we `-include src/kernelcompat.h` from the command line, this header gets included before any of the kernel includes in most .c and .h files. We should at least make sure we pull in and since they're required. Signed-off-by: Auke Kok --- kmod/src/kernelcompat.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kmod/src/kernelcompat.h b/kmod/src/kernelcompat.h index 12e16a10..7aed2d5a 100644 --- a/kmod/src/kernelcompat.h +++ b/kmod/src/kernelcompat.h @@ -1,8 +1,10 @@ #ifndef _SCOUTFS_KERNELCOMPAT_H_ #define _SCOUTFS_KERNELCOMPAT_H_ -#ifndef KC_ITERATE_DIR_CONTEXT +#include #include + +#ifndef KC_ITERATE_DIR_CONTEXT typedef filldir_t kc_readdir_ctx_t; #define KC_DECLARE_READDIR(name, file, dirent, ctx) name(file, dirent, ctx) #define KC_FOP_READDIR readdir