commit c9fb484904a3096dade280971b12d42b87796ea0
Author: Jan RÄ™korajski <[email protected]>
Date:   Sat Dec 5 10:56:49 2015 +0100

    - remove unused code that breaks build on i686 with linux 4.3
    - rel 9

 no-dead-code.patch | 34 ++++++++++++++++++++++++++++++++++
 wl.spec            |  4 +++-
 2 files changed, 37 insertions(+), 1 deletion(-)
---
diff --git a/wl.spec b/wl.spec
index cfe637b..3493e7e 100644
--- a/wl.spec
+++ b/wl.spec
@@ -16,7 +16,7 @@ exit 1
 # nothing to be placed to debuginfo package
 %define                _enable_debug_packages  0
 
-%define                rel     8
+%define                rel     9
 %define                pname   wl
 %define                file_ver        %(echo %{version} | tr . _)
 Summary:       Broadcom 802.11 a/b/g/n hybrid Linux networking device driver
@@ -34,6 +34,7 @@ Source2:      
http://www.broadcom.com/docs/linux_sta/README.txt
 Source3:       dkms.conf
 Patch0:                linux-3.17.patch
 Patch1:                gcc-4.9.patch
+Patch2:                no-dead-code.patch
 URL:           http://www.broadcom.com/support/802.11/linux_sta.php
 BuildRequires: rpmbuild(macros) >= 1.701
 %{?with_kernel:%{expand:%buildrequires_kernel 
kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}}
@@ -114,6 +115,7 @@ EOF\
 %setup -c -T -q -n %{pname}-%{version} -b%{src}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 # cleanup backups after patching
 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
diff --git a/no-dead-code.patch b/no-dead-code.patch
new file mode 100644
index 0000000..469d139
--- /dev/null
+++ b/no-dead-code.patch
@@ -0,0 +1,34 @@
+--- wl-6.30.223.248/src/include/linux_osl.h.orig       2014-06-26 
12:42:08.000000000 +0200
++++ wl-6.30.223.248/src/include/linux_osl.h    2015-12-05 10:54:47.671456752 
+0100
+@@ -268,9 +268,6 @@
+ #define OSL_PREF_RANGE_LD(va, sz)
+ #define OSL_PREF_RANGE_ST(va, sz)
+ 
+-#define OSL_GETCYCLES(x)      ((x) = osl_getcycles())
+-extern uint osl_getcycles(void);
+-
+ #define       BUSPROBE(val, addr)     osl_busprobe(&(val), (addr))
+ extern int osl_busprobe(uint32 *val, uint32 addr);
+ 
+--- wl-6.30.223.248/src/shared/linux_osl.c.orig        2014-06-26 
12:42:08.000000000 +0200
++++ wl-6.30.223.248/src/shared/linux_osl.c     2015-12-05 10:54:59.058199062 
+0100
+@@ -926,19 +926,6 @@
+       return ((void*)va);
+ }
+ 
+-uint
+-osl_getcycles(void)
+-{
+-      uint cycles;
+-
+-#if defined(__i386__)
+-      rdtscl(cycles);
+-#else
+-      cycles = 0;
+-#endif 
+-      return cycles;
+-}
+-
+ void *
+ osl_reg_map(uint32 pa, uint size)
+ {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/wl.git/commitdiff/c9fb484904a3096dade280971b12d42b87796ea0

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to