summarylogtreecommitdiffstats
path: root/4.3-kolasa-seq_printf.patch
diff options
context:
space:
mode:
authorVi0L02015-12-13 22:07:16 +0100
committerVi0L02015-12-13 22:07:16 +0100
commit2b8bbee1a102ff47f11b3c8dac68fb6ecb53a846 (patch)
tree28039313f87ea4dc2c01f62edec0993822a190bc /4.3-kolasa-seq_printf.patch
parent6ba2cb92eac8ae292a785c970f13f5b8ebe882e1 (diff)
downloadaur-2b8bbee1a102ff47f11b3c8dac68fb6ecb53a846.tar.gz
adding support for up to 4.3 linux kernel + adding custom ACPI files for events handling
Diffstat (limited to '4.3-kolasa-seq_printf.patch')
-rw-r--r--4.3-kolasa-seq_printf.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/4.3-kolasa-seq_printf.patch b/4.3-kolasa-seq_printf.patch
new file mode 100644
index 000000000000..4b1a3b9b266e
--- /dev/null
+++ b/4.3-kolasa-seq_printf.patch
@@ -0,0 +1,15 @@
+--- 15.11/common/lib/modules/fglrx/build_mod/firegl_public.c 2015-11-08 18:11:43.177831390 +0100
++++ 15.11b/common/lib/modules/fglrx/build_mod/firegl_public.c 2015-11-08 18:23:11.599197785 +0100
+@@ -559,7 +559,12 @@
+ *start = buf; // For ProcFS: inform procfs that we start output at the beginning of the buffer
+ *eof = 1;
+
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,3,0)
+ len = snprintf(buf, request, "%d\n", major);
++#else
++ seq_printf(m, "%d\n", major);
++ len = 0;
++#endif
+
+ KCL_DEBUG1(FN_FIREGL_PROC, "return len=%i\n",len);
+