build_redpine_modules.sh fails on 5.6.0-1-librem5
root@pureos:/tmp/redpine-firmware-nonfree# ./build_redpine_modules.sh
+ RSI_VER=RS9116.NB0.NL.LNX.PURISM_FW_UPGRADE.1.0.5
++ pwd
+ CWD=/tmp/redpine-firmware-nonfree
++ uname -r
+ KERNEL_REL=5.6.0-1-librem5
+ HEADER_VERSION=linux-headers-5.6.0-1-librem5
+ OUTPUT_DIR=/tmp/redpine-firmware-nonfree/linux-5.6.0-1-librem5
+ ARCH=arm64
+ '[' '!' -e /usr/src/linux-headers-5.6.0-1-librem5 ']'
+ '[' '!' -e /tmp/redpine-firmware-nonfree/linux-5.6.0-1-librem5 ']'
+ mkdir -p /tmp/redpine-firmware-nonfree/linux-5.6.0-1-librem5
+ tar -xf files/RS9116.NB0.NL.LNX.PURISM_FW_UPGRADE.1.0.5.tgz
+ RSI_BUILD_PATH=RS9116.NB0.NL.LNX.PURISM_FW_UPGRADE.1.0.5/rsi/
++ echo /usr/src/linux-headers-5.6.0-1-librem5
++ sed 's/\//\\\//g'
+ ESCAPED_KERNEL_DIR='\/usr\/src\/linux-headers-5.6.0-1-librem5'
+ sed 's/KERNELDIR=.*/KERNELDIR=\/usr\/src\/linux-headers-5.6.0-1-librem5/' -i RS9116.NB0.NL.LNX.PURISM_FW_UPGRADE.1.0.5/rsi//Makefile
+ sed 's/-Wall -Werror//' -i RS9116.NB0.NL.LNX.PURISM_FW_UPGRADE.1.0.5/rsi//Makefile
+ cp files/update_redpine.sh /tmp/redpine-firmware-nonfree/linux-5.6.0-1-librem5
+ cp files/update_redpine.sh /tmp/redpine-firmware-nonfree/files/firmware
+ cd RS9116.NB0.NL.LNX.PURISM_FW_UPGRADE.1.0.5/rsi/
+ echo '#define UTS_RELEASE "5.6.0-1-librem5"'
+ sudo tee /lib/modules/5.6.0-1-librem5/build/include/generated/utsrelease.h
#define UTS_RELEASE "5.6.0-1-librem5"
+ make ARCH=arm64 -C /lib/modules/5.6.0-1-librem5/build M=/tmp/redpine-firmware-nonfree/RS9116.NB0.NL.LNX.PURISM_FW_UPGRADE.1.0.5/rsi modules
make: Entering directory '/usr/src/linux-headers-5.6.0-1-librem5'
CC [M] /tmp/redpine-firmware-nonfree/RS9116.NB0.NL.LNX.PURISM_FW_UPGRADE.1.0.5/rsi/rsi_91x_sdio_ops.o
CC [M] /tmp/redpine-firmware-nonfree/RS9116.NB0.NL.LNX.PURISM_FW_UPGRADE.1.0.5/rsi/rsi_91x_sdio.o
LD [M] /tmp/redpine-firmware-nonfree/RS9116.NB0.NL.LNX.PURISM_FW_UPGRADE.1.0.5/rsi/rsi_sdio.o
CC [M] /tmp/redpine-firmware-nonfree/RS9116.NB0.NL.LNX.PURISM_FW_UPGRADE.1.0.5/rsi/rsi_91x_usb_ops.o
CC [M] /tmp/redpine-firmware-nonfree/RS9116.NB0.NL.LNX.PURISM_FW_UPGRADE.1.0.5/rsi/rsi_91x_usb.o
LD [M] /tmp/redpine-firmware-nonfree/RS9116.NB0.NL.LNX.PURISM_FW_UPGRADE.1.0.5/rsi/rsi_usb.o
CC [M] /tmp/redpine-firmware-nonfree/RS9116.NB0.NL.LNX.PURISM_FW_UPGRADE.1.0.5/rsi/rsi_91x_hal.o
CC [M] /tmp/redpine-firmware-nonfree/RS9116.NB0.NL.LNX.PURISM_FW_UPGRADE.1.0.5/rsi/rsi_91x_main.o
CC [M] /tmp/redpine-firmware-nonfree/RS9116.NB0.NL.LNX.PURISM_FW_UPGRADE.1.0.5/rsi/rsi_91x_mac80211.o
/tmp/redpine-firmware-nonfree/RS9116.NB0.NL.LNX.PURISM_FW_UPGRADE.1.0.5/rsi/rsi_91x_mac80211.c:2964:30: error: initialization of ‘int (*)(struct ieee80211_hw *, struct ieee80211_vif *)’ from incompatible pointer type ‘int (*)(struct ieee80211_hw *)’ [-Werror=incompatible-pointer-types]
.cancel_remain_on_channel = rsi_mac80211_cancel_roc,
^~~~~~~~~~~~~~~~~~~~~~~
/tmp/redpine-firmware-nonfree/RS9116.NB0.NL.LNX.PURISM_FW_UPGRADE.1.0.5/rsi/rsi_91x_mac80211.c:2964:30: note: (near initialization for ‘mac80211_ops.cancel_remain_on_channel’)
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:268: /tmp/redpine-firmware-nonfree/RS9116.NB0.NL.LNX.PURISM_FW_UPGRADE.1.0.5/rsi/rsi_91x_mac80211.o] Error 1
make: *** [Makefile:1683: /tmp/redpine-firmware-nonfree/RS9116.NB0.NL.LNX.PURISM_FW_UPGRADE.1.0.5/rsi] Error 2
make: Leaving directory '/usr/src/linux-headers-5.6.0-1-librem5'
+ cd /tmp/redpine-firmware-nonfree/RS9116.NB0.NL.LNX.PURISM_FW_UPGRADE.1.0.5/rsi/
+ tar -zcf /tmp/redpine-firmware-nonfree/linux-5.6.0-1-librem5/rsi_upgrade.tgz './*.ko'
tar: ./*.ko: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
+ cd /tmp/redpine-firmware-nonfree/files/firmware
+ tar -zcf /tmp/redpine-firmware-nonfree/linux-5.6.0-1-librem5/rsi_firmware.tgz ./RS9116_NLINK_WLAN_BT_IMAGE.FW1_0_5.rps ./RS9116_NLINK_WLAN_BT_IMAGE.FW1_2_1.rps ./RS9116_NLINK_WLAN_BT_IMAGE.FW1_2_20.rps ./RS9116_NLINK_WLAN_BT_IMAGE.rps ./update_redpine.sh
+ cd /tmp/redpine-firmware-nonfree