Message ID | 1512755839-6716-1-git-send-email-jasmin@anw.at (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hello Hans! I am not sure why compiler-gcc.h is used from the kernel tree and not from the installed kernel headers. So a better fix for this problem might be to remove compiler-gcc.h from media_build/linux/Makefile. This is something you will know better. Please note that this doesn't fix all issues (pvrusb2-hdw.c doesn't compile for Kernel 4.4.), but I am working on that currently. BR, Jasmin
diff --git a/backports/backports.txt b/backports/backports.txt index 618c4e8..78dfb9c 100644 --- a/backports/backports.txt +++ b/backports/backports.txt @@ -26,6 +26,9 @@ add pr_fmt.patch add debug.patch add drx39xxj.patch +[4.14.255] +add v4.14_compiler_h.patch + [4.12.255] add v4.12_revert_solo6x10_copykerneluser.patch diff --git a/backports/v4.14_compiler_h.patch b/backports/v4.14_compiler_h.patch new file mode 100644 index 0000000..3faa85f --- /dev/null +++ b/backports/v4.14_compiler_h.patch @@ -0,0 +1,11 @@ +diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h +index 2272ded..744334e 100644 +--- a/include/linux/compiler-gcc.h ++++ b/include/linux/compiler-gcc.h +@@ -1,5 +1,5 @@ + /* SPDX-License-Identifier: GPL-2.0 */ +-#ifndef __LINUX_COMPILER_TYPES_H ++#if (!defined(__LINUX_COMPILER_TYPES_H) && !defined (__LINUX_COMPILER_H)) + #error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead." + #endif +