openwrtv3/target/linux/ar71xx/patches-4.4
Gabor Juhos 4045f15a21 ar71xx: fix compiler warnings in mdio-bitbang.c for 4.4
Building Linux 4.4 for ar71xx throws the following warnings in
drivers/net/phy/mdio-bitbang.c:

    CC      drivers/net/phy/mdio-bitbang.o
  In file included from include/linux/irqflags.h:14:0,
                   from drivers/net/phy/mdio-bitbang.c:20:
  drivers/net/phy/mdio-bitbang.c: In function 'mdiobb_read':
  include/linux/typecheck.h:11:18: warning: comparison of distinct pointer types lacks a cast
    (void)(&__dummy == &__dummy2); \
                    ^
  include/linux/irqflags.h:63:3: note: in expansion of macro 'typecheck'
     typecheck(unsigned long, flags); \
     ^
  include/linux/irqflags.h:124:3: note: in expansion of macro 'raw_local_irq_save'
     raw_local_irq_save(flags);   \
     ^
  drivers/net/phy/mdio-bitbang.c:162:2: note: in expansion of macro 'local_irq_save'
    local_irq_save(flags);
    ^
  include/linux/typecheck.h:11:18: warning: comparison of distinct pointer types lacks a cast
    (void)(&__dummy == &__dummy2); \
                    ^
  include/linux/irqflags.h:68:3: note: in expansion of macro 'typecheck'
     typecheck(unsigned long, flags); \
     ^
  include/linux/irqflags.h:126:39: note: in expansion of macro 'raw_local_irq_restore'
   #define local_irq_restore(flags) do { raw_local_irq_restore(flags); } while (0)
                                         ^
  drivers/net/phy/mdio-bitbang.c:175:2: note: in expansion of macro 'local_irq_restore'
    local_irq_restore(flags);
    ^
  drivers/net/phy/mdio-bitbang.c:159:11: warning: unused variable 'i' [-Wunused-variable]
    int ret, i;
             ^
  In file included from include/linux/irqflags.h:14:0,
                   from drivers/net/phy/mdio-bitbang.c:20:
  drivers/net/phy/mdio-bitbang.c: In function 'mdiobb_write':
  include/linux/typecheck.h:11:18: warning: comparison of distinct pointer types lacks a cast
    (void)(&__dummy == &__dummy2); \
                    ^
  include/linux/irqflags.h:63:3: note: in expansion of macro 'typecheck'
     typecheck(unsigned long, flags); \
     ^
  include/linux/irqflags.h:124:3: note: in expansion of macro 'raw_local_irq_save'
     raw_local_irq_save(flags);   \
     ^
  drivers/net/phy/mdio-bitbang.c:185:2: note: in expansion of macro 'local_irq_save'
    local_irq_save(flags);
    ^
  include/linux/typecheck.h:11:18: warning: comparison of distinct pointer types lacks a cast
    (void)(&__dummy == &__dummy2); \
                    ^
  include/linux/irqflags.h:68:3: note: in expansion of macro 'typecheck'
     typecheck(unsigned long, flags); \
     ^
  include/linux/irqflags.h:126:39: note: in expansion of macro 'raw_local_irq_restore'
   #define local_irq_restore(flags) do { raw_local_irq_restore(flags); } while (0)
                                         ^
  drivers/net/phy/mdio-bitbang.c:200:2: note: in expansion of macro 'local_irq_restore'
    local_irq_restore(flags);
    ^

These are caused by the 900-mdio_bitbang_ignore_ta_value and
901-phy-mdio-bitbang-prevent-rescheduling-during-command patches.

The first patch removes some code but it does not remove the variable
which is used by the removed code only.

The second patch adds local_irq_{save,restore} calls. The type of the
argument of these calls must be 'unsigned long', but the patch defines
the variable as 'long'.

Fix both patches to silence the warnings.

Signed-off-by: Gabor Juhos <juhosg@freemail.hu>
2018-01-07 13:05:40 +01:00
..
001-spi-cs-gpio.patch ar71xx: clean up spi controller related patches 2016-12-12 10:22:17 +01:00
002-add_back_gpio_function_select.patch
004-register_gpio_driver_earlier.patch ar71xx: register the gpio driver earlier 2016-05-15 20:55:39 +02:00
100-MIPS-ath79-Avoid-using-unitialized-reg-variable.patch
101-MIPS-ath79-make-ath79_ddr_ctrl_init-compatible-for-n.patch ar71xx: fix DDR write buffer flushing issues with 4.4 2016-05-15 20:55:39 +02:00
103-MIPS-ath79-fix-register-address-in-ath79_ddr_wb_flus.patch kernel: update kernel 4.4 to version 4.4.11 2016-05-19 21:08:06 +02:00
104-spi-spi-ath79-support-multiple-internal-chip-select-.patch ar71xx: clean up spi controller related patches 2016-12-12 10:22:17 +01:00
105-spi-spi-ath79-use-gpio_set_value_cansleep-for-GPIO-c.patch ar71xx: clean up spi controller related patches 2016-12-12 10:22:17 +01:00
106-01-MIPS-ath79-fix-AR724X_PLL_REG_PCIE_CONFIG-offset.patch ar71xx: add AR724x PCIe init fixes 2017-06-24 22:36:38 +02:00
106-02-MIPS-ath79-do-AR724x-PCIe-root-complex-init.patch ar71xx: add AR724x PCIe init fixes 2017-06-24 22:36:38 +02:00
200-MIPS-ath79-fix-ar933x-wmac-reset.patch ar71xx: fixup ar71xx/ar933x_wmac_reset: remove indefinite wait for wmac reset 2017-06-11 17:12:45 +02:00
201-ar913x_wmac_external_reset.patch
202-MIPS-ath79-ar934x-wmac-revision.patch kernel: update kernel 4.4 to 4.4.74 2017-06-27 07:42:50 +02:00
203-MIPS-ath79-fix-restart.patch
220-add_cpu_feature_overrides.patch
300-MIPS-add-MIPS_MACHINE_NONAME-macro.patch
310-lib-add-rle-decompression.patch kernel: update kernel 4.4 to version 4.4.4 2016-03-05 17:51:37 +00:00
401-mtd-physmap-add-lock-unlock.patch
402-mtd-SST39VF6401B-support.patch
403-mtd_fix_cfi_cmdset_0002_status_check.patch
404-mtd-cybertan-trx-parser.patch
405-mtd-tp-link-partition-parser.patch
407-mtd-m25p80-allow-to-pass-probe-types-via-platform-data.patch ar71xx: fix DDR write buffer flushing issues with 4.4 2016-05-15 20:55:39 +02:00
408-mtd-redboot_partition_scan.patch
409-mtd-rb4xx_nand_driver.patch
410-mtd-rb750-nand-driver.patch
411-mtd-cfi_cmdset_0002-force-word-write.patch
412-mtd-m25p80-zero-partition-parser-data.patch ar71xx: fix DDR write buffer flushing issues with 4.4 2016-05-15 20:55:39 +02:00
413-mtd-ar934x-nand-driver.patch
414-mtd-rb91x-nand-driver.patch
420-net-ar71xx_mac_driver.patch
423-dsa-add-88e6063-driver.patch
430-drivers-link-spi-before-mtd.patch
432-spi-rb4xx-spi-driver.patch
433-spi-rb4xx-cpld-driver.patch
435-spi-vsc7385_driver.patch ar71xx: remove AP83 reference design board support 2016-12-12 10:22:18 +01:00
440-leds-wndr3700-usb-led-driver.patch
441-leds-rb750-led-driver.patch
450-gpio-nxp-74hc153-gpio-chip-driver.patch kernel: update kernel 4.4 to version 4.4.20 2016-09-15 08:10:55 +02:00
451-gpio-74x164-improve-platform-device-support.patch kernel: update kernel 4.4 to version 4.4.20 2016-09-15 08:10:55 +02:00
452-gpio-add-gpio-latch-driver.patch kernel: update kernel 4.4 to version 4.4.20 2016-09-15 08:10:55 +02:00
460-m25p80-spi-read-flash-check.patch ar71xx: clean up spi controller related patches 2016-12-12 10:22:17 +01:00
461-spi-ath79-add-fast-flash-read.patch ar71xx: clean up spi controller related patches 2016-12-12 10:22:17 +01:00
470-MIPS-ath79-swizzle-pci-address-for-ar71xx.patch
490-usb-ehci-add-quirks-for-qca-socs.patch
500-MIPS-fw-myloader.patch kernel: backport MIPS changes introducing a separate IRQ stack 2017-01-15 18:25:54 +01:00
501-MIPS-ath79-add-mac-argument-to-ath79_register_wmac.patch kernel: update kernel 4.4 to 4.4.74 2017-06-27 07:42:50 +02:00
504-MIPS-ath79-add-ath79_device_reset_get.patch ar71xx: remove obsolete flash chip locking code 2016-12-12 10:22:19 +01:00
505-MIPS-ath79-add-ath79_gpio_function_select.patch
506-MIPS-ath79-prom-parse-redboot-args.patch
507-MIPS-ath79-prom-add-myloader-support.patch
508-MIPS-ath79-prom-image-command-line-hack.patch
509-MIPS-ath79-process-board-kernel-option.patch kernel: Backport pending appended DTB handling patches 2016-09-12 22:36:55 +02:00
510-MIPS-ath79-init-gpio-pin-of-wmac-device.patch
520-MIPS-ath79-enable-UART-function.patch
521-MIPS-ath79-enable-UART-for-early_serial.patch kernel: update kernel 4.4 to version 4.4.7 2016-04-16 21:05:48 +00:00
522-MIPS-ath79-add-ath79_wmac_register_simple-helper.patch kernel: update kernel 4.4 to 4.4.74 2017-06-27 07:42:50 +02:00
523-MIPS-ath79-OTP-support.patch kernel: update kernel 4.4 to 4.4.74 2017-06-27 07:42:50 +02:00
524-MIPS-ath79-add-ath79_wmac_disable_25ghz-helpers.patch kernel: update kernel 4.4 to 4.4.74 2017-06-27 07:42:50 +02:00
525-MIPS-ath79-enable-qca-usb-quirks.patch kernel: update kernel 4.4 to version 4.4.69 2017-05-21 21:48:16 +02:00
601-MIPS-ath79-add-more-register-defines.patch ar71xx: add AR724x PCIe init fixes 2017-06-24 22:36:38 +02:00
602-MIPS-ath79-add-openwrt-stuff.patch ar71xx: add missing LZO support select for routerboard devices 2016-08-04 23:02:50 +02:00
603-MIPS-ath79-ap121-fixes.patch
605-MIPS-ath79-db120-fixes.patch ar71xx: remove AP81 reference design board support 2016-12-12 10:22:18 +01:00
606-MIPS-ath79-pb44-fixes.patch ar71xx: remove AP81 reference design board support 2016-12-12 10:22:18 +01:00
607-MIPS-ath79-ubnt-xm-fixes.patch ar71xx: remove AP81 reference design board support 2016-12-12 10:22:18 +01:00
608-MIPS-ath79-ubnt-xm-add-more-boards.patch ar71xx: remove AP81 reference design board support 2016-12-12 10:22:18 +01:00
609-MIPS-ath79-ap136-fixes.patch kernel: update kernel 4.4 to version 4.4.69 2017-05-21 21:48:16 +02:00
611-MIPS-ath79-wdt-timeout.patch
612-MIPS-ath79-set-buffalo-txgain.patch kernel: update kernel 4.4 to 4.4.74 2017-06-27 07:42:50 +02:00
613-MIPS-ath79-add-ath79_wmac_setup_ext_lna_gpio-helper.patch kernel: update kernel 4.4 to 4.4.74 2017-06-27 07:42:50 +02:00
620-MIPS-ath79-add-support-for-QCA953x-SoC.patch kernel: update kernel 4.4 to 4.4.74 2017-06-27 07:42:50 +02:00
621-MIPS-ath79-add-support-for-QCA956x-SoC.patch kernel: update kernel 4.4 to 4.4.74 2017-06-27 07:42:50 +02:00
622-MIPS-ath79-add-more-register-defines-for-QCA956x-SoC.patch ar71xx: add AR724x PCIe init fixes 2017-06-24 22:36:38 +02:00
630-MIPS-ath79-fix-chained-irq-disable.patch
631-MIPS-ath79-wmac-enable-set-led-pin.patch kernel: update kernel 4.4 to 4.4.74 2017-06-27 07:42:50 +02:00
632-MIPS-ath79-gpio-enable-set-direction.patch
634-MIPS-ath79-ar724x-clock-calculation-fixes.patch
640-MIPS-ath79-add-QCA955x-wmac-reset.patch kernel: update kernel 4.4 to 4.4.74 2017-06-27 07:42:50 +02:00
700-MIPS-ath79-add-openwrt-Kconfig.patch ar71xx: remove AP81 reference design board support 2016-12-12 10:22:18 +01:00
701-MIPS-ath79-add-routerboard-detection.patch ar71xx: complete support for RB mAP 2nD 2017-11-14 22:36:46 +01:00
702-MIPS-ath79-fixup-routerboot-board-parameter.patch ar71xx: fix board detection with newer RouterBOOT versions 2017-12-12 17:05:25 +08:00
739-MIPS-ath79-add-gpio-func-register-for-QCA955x-SoC.patch ar71xx: Add QCA955X GPIO mux and function definitions 2016-03-23 12:52:31 +00:00
740-MIPS-ath79-add-PCI-for-QCA953x-SoC.patch
818-MIPS-ath79-add-nu801-led-driver.patch ar71xx: add support for Cisco Meraki Z1 Cloud Managed Teleworker Gateway 2016-09-27 17:50:22 +02:00
820-MIPS-ath79-add_gpio_function2_setup.patch ar71xx: add AR724x PCIe init fixes 2017-06-24 22:36:38 +02:00
821-serial-core-add-support-for-boot-console-with-arbitr.patch
900-mdio_bitbang_ignore_ta_value.patch ar71xx: fix compiler warnings in mdio-bitbang.c for 4.4 2018-01-07 13:05:40 +01:00
901-phy-mdio-bitbang-prevent-rescheduling-during-command.patch ar71xx: fix compiler warnings in mdio-bitbang.c for 4.4 2018-01-07 13:05:40 +01:00
902-at803x-add-reset-gpio-pdata.patch ar71xx: Fix NULL pointer dereferece in at803x_link_change_notify() 2017-10-07 23:19:15 +02:00
910-unaligned_access_hacks.patch kernel: Update kernel 4.4 to 4.4.100 2017-11-25 19:48:39 +01:00
920-usb-chipidea-AR933x-platform-support.patch ar71xx: rework chipidea usb controller patch 2017-10-07 09:18:40 +02:00
930-chipidea-pullup.patch kernel: bump 4.4 to 4.4.91 2017-10-08 20:51:03 +03:00