diff --git a/kmod/src/Makefile b/kmod/src/Makefile index 468f6a61..8048bfd9 100644 --- a/kmod/src/Makefile +++ b/kmod/src/Makefile @@ -4,6 +4,9 @@ CFLAGS_super.o = -DSCOUTFS_GIT_DESCRIBE=\"$(SCOUTFS_GIT_DESCRIBE)\" \ -DSCOUTFS_FORMAT_HASH=0x$(SCOUTFS_FORMAT_HASH)LLU CFLAGS_scoutfs_trace.o = -I$(src) # define_trace.h double include + +# add EXTRA_CFLAGS defines for kernel compat +-include $(src)/Makefile.kernelcompat scoutfs-y += \ bio.o \ diff --git a/kmod/src/Makefile.kernelcompat b/kmod/src/Makefile.kernelcompat new file mode 100644 index 00000000..3108c527 --- /dev/null +++ b/kmod/src/Makefile.kernelcompat @@ -0,0 +1,7 @@ +# +# We try to detect the specific api incompatibilities with simple tests +# because distros regularly backport features without changing the +# version. +# + +ccflags-y += -include $(src)/kernelcompat.h diff --git a/kmod/src/kernelcompat.h b/kmod/src/kernelcompat.h new file mode 100644 index 00000000..dbf8b8f3 --- /dev/null +++ b/kmod/src/kernelcompat.h @@ -0,0 +1,4 @@ +#ifndef _SCOUTFS_KERNELCOMPAT_H_ +#define _SCOUTFS_KERNELCOMPAT_H_ + +#endif