summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFernando Rodriguez <frodriguez.developer@outlook.com>2015-09-16 18:24:47 -0400
committerIan Delaney <idella4@gentoo.org>2015-09-23 17:21:10 +0800
commit6913a35966d89d28ed6208ab9a58c20fd8a80396 (patch)
tree588b1aed5e88ae8b428d0920b181fe9091dac936 /x11-drivers/ati-drivers/files/15.9-kcl_str.patch
parentdev-vcs/subversion: Removed old. (diff)
downloadgentoo-6913a35966d89d28ed6208ab9a58c20fd8a80396.tar.gz
gentoo-6913a35966d89d28ed6208ab9a58c20fd8a80396.tar.bz2
gentoo-6913a35966d89d28ed6208ab9a58c20fd8a80396.zip
x11-drivers/ati-drivers: Fix compile errors and preemption bug
Ebuild cleanup and patches to compile against recent kernels by replacing calls that use GPL'd kernel symbols with our own implementation and several others to fix compile errors caused by API changes on recent kernels. Also adds patch to disable preemption before calling certain kernel functions that trigger the following error: BUG: using smp_processor_id() in preemptible [00000000] code:firegl/3657 Gentoo-Bug: 548118 Gentoo-Bug: 542320
Diffstat (limited to 'x11-drivers/ati-drivers/files/15.9-kcl_str.patch')
-rw-r--r--x11-drivers/ati-drivers/files/15.9-kcl_str.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/x11-drivers/ati-drivers/files/15.9-kcl_str.patch b/x11-drivers/ati-drivers/files/15.9-kcl_str.patch
new file mode 100644
index 000000000000..20c3bc8a169b
--- /dev/null
+++ b/x11-drivers/ati-drivers/files/15.9-kcl_str.patch
@@ -0,0 +1,14 @@
+--- a/common/lib/modules/fglrx/build_mod/kcl_str.c 2015-09-13 13:47:30.000000000 -0400
++++ b/common/lib/modules/fglrx/build_mod/kcl_str.c 2015-09-13 13:49:42.000000000 -0400
+@@ -169,7 +169,11 @@ int ATI_API_CALL KCL_STR_Strnicmp(const
+ const char* s2,
+ KCL_TYPE_SizeSigned count)
+ {
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,0,0)
+ return strnicmp(s1, s2, count);
++#else
++ return strncasecmp(s1, s2, count);
++#endif
+ }
+
+ /** \brief Locate character in string