immortalwrt/package/kernel/broadcom-wl/patches
Adrian Schmutzler ae10bb2273
broadcom-wl: fix compilation with kernel >= 4.15
Since kernel 4.15, init_timer is not available anymore, and has been
replaced by timer_setup. The fixes compilation of wl_linuc.c, which
returned the following errors beforehand (line-wrapped manually):

.../broadcom-wl-5.10.56.27.3/driver/wl_linux.c: In function 'wl_init_timer':
.../broadcom-wl-5.10.56.27.3/driver/wl_linux.c:2576:2: error: implicit
	declaration of function 'init_timer'; did you mean 'init_timers'?
	[-Werror=implicit-function-declaration]
  init_timer(&t->timer);
  ^~~~~~~~~~
  init_timers
.../broadcom-wl-5.10.56.27.3/driver/wl_linux.c:2577:10: error:
	'struct timer_list' has no member named 'data'
  t->timer.data = (ulong) t;
          ^
.../broadcom-wl-5.10.56.27.3/driver/wl_linux.c:2578:20: error: assignment
	to 'void (*)(struct timer_list *)' from incompatible pointer type
	'void (*)(ulong)' {aka 'void (*)(long unsigned int)'}
	[-Werror=incompatible-pointer-types]
  t->timer.function = wl_timer;

This should fix build of several devices on bcm63xx with testing
kernel (4.19).

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-04-14 02:55:38 +08:00
..
003-compat-2.6.35.patch fix & merge 2019-09-30 13:21:19 +08:00
004-remove-pcmcia.patch fix & merge 2019-09-30 13:21:19 +08:00
005-fix-mem-leak-on-unload.patch fix & merge 2019-09-30 13:21:19 +08:00
006-generic-dma-api.patch fix & merge 2019-09-30 13:21:19 +08:00
007-use-glue-driver.patch fix & merge 2019-09-30 13:21:19 +08:00
008-fix_virtual_interfaces.patch fix & merge 2019-09-30 13:21:19 +08:00
009-fix_compile_3_2.patch fix & merge 2019-09-30 13:21:19 +08:00
010-remove_irqf_samble_random.patch fix & merge 2019-09-30 13:21:19 +08:00
011-fix_compile_3_4.patch fix & merge 2019-09-30 13:21:19 +08:00
012-compat-3.10.patch fix & merge 2019-09-30 13:21:19 +08:00
013-interface-name.patch fix & merge 2019-09-30 13:21:19 +08:00
014-fix-band-reporting.patch fix & merge 2019-09-30 13:21:19 +08:00
015-support-probe-of-wds-interfaces.patch fix & merge 2019-09-30 13:21:19 +08:00
020-musl-fixes.patch fix & merge 2019-09-30 13:21:19 +08:00
030-remove_devinit_devexit.patch fix & merge 2019-09-30 13:21:19 +08:00
040-remove_last_rx_usage.patch fix & merge 2019-09-30 13:21:19 +08:00
100-fix_nvram_two_devices.patch fix & merge 2019-09-30 13:21:19 +08:00
110-add_number_to_dev_name.patch fix & merge 2019-09-30 13:21:19 +08:00
120-fixup-mac-addresses.patch fix & merge 2019-09-30 13:21:19 +08:00
200-add_bcm_a8xx_support.patch fix & merge 2019-09-30 13:21:19 +08:00
910-fallback-sprom.patch fix & merge 2019-09-30 13:21:19 +08:00
912-pci-bus-nvram-hack.patch fix & merge 2019-09-30 13:21:19 +08:00
913-avoid-dbe-on-ifs_ctl-readw-hack.patch fix & merge 2019-09-30 13:21:19 +08:00
914-eliminate-date-time-error.patch fix & merge 2019-09-30 13:21:19 +08:00
915-fix-wl_timer-for-4_15.patch broadcom-wl: fix compilation with kernel >= 4.15 2020-04-14 02:55:38 +08:00