aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2021-01-03 19:48:56 +0100
committerMathias Kresin <dev@kresin.me>2021-04-12 23:23:09 +0200
commitedbbec1bdd0a94e32f9bb6169dd7ec9e4da7c201 (patch)
tree97d247f5b20ebf0b35a8110c0a7ccb71bc9828cc
parente32d10e176de9d0de61f61953c4e46453f30829c (diff)
downloadupstream-edbbec1bdd0a94e32f9bb6169dd7ec9e4da7c201.tar.gz
upstream-edbbec1bdd0a94e32f9bb6169dd7ec9e4da7c201.tar.bz2
upstream-edbbec1bdd0a94e32f9bb6169dd7ec9e4da7c201.zip
lantiq: ltq-adsl: add kernel 5.10 compatiblity
The pgprot argument to __vmalloc is always PAGE_KERNEL now and was removed. Signed-off-by: Mathias Kresin <dev@kresin.me>
-rw-r--r--package/kernel/lantiq/ltq-adsl/patches/150-linux_5.9.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/kernel/lantiq/ltq-adsl/patches/150-linux_5.9.patch b/package/kernel/lantiq/ltq-adsl/patches/150-linux_5.9.patch
new file mode 100644
index 0000000000..f07dae97c0
--- /dev/null
+++ b/package/kernel/lantiq/ltq-adsl/patches/150-linux_5.9.patch
@@ -0,0 +1,14 @@
+--- a/src/common/drv_dsl_cpe_os_linux.c
++++ b/src/common/drv_dsl_cpe_os_linux.c
+@@ -417,7 +417,11 @@ int DSL_DRV_ErrorToOS(DSL_Error_t nError
+ DSL_void_t* DSL_DRV_VMalloc(
+ DSL_DRV_size_t nSize)
+ {
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,9,0)
+ return __vmalloc((unsigned long)nSize, GFP_KERNEL, PAGE_KERNEL);
++#else
++ return __vmalloc((unsigned long)nSize, GFP_KERNEL);
++#endif
+ /* return vmalloc(nSize);*/
+ }
+