error: passing argument 1 of ‘_raw_read_lock’ from incompatible pointer type
using current repo master tip I get this when trying to mainline --install 5.16.10 (or any other 5.16.* I've tried):
DKMS make.log for backport-iwlwifi-9340 for kernel 5.16.10-051610-generic (x86_64)
P 20 veebr 2022 16:40:21 EET
Generating local configuration database from kernel ... done.
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o conf.o conf.c
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o zconf.tab.o zconf.tab.c
cc conf.o zconf.tab.o -o conf
#
# configuration written to .config
#
make[5]: 'conf' is up to date.
#
# configuration written to .config
#
Building backport-include/backport/autoconf.h ... done.
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/compat/main.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/wireless/core.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/wireless/sysfs.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/wireless/radiotap.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/wireless/util.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/wireless/reg.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/main.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/fw.o
LD [M] /var/lib/dkms/backport-iwlwifi/9340/build/compat/compat.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/nvm.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/status.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/wireless/scan.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/ops.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/wireless/nl80211.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/driver-ops.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/wireless/mlme.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/sta_info.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/utils.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/rx.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/wep.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/xvt/xvt.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/xvt/user-infc.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/aead_api.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/wireless/ibss.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/tx.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/binding.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/wireless/sme.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/quota.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/xvt/utils.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/wireless/chan.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/wpa.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/sta.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/wireless/ethtool.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/xvt/fw.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/net.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/scan.o
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c: In function ‘iwl_mei_handle_sap_msg’:
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:900:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
900 | if (!WARN_ONCE(len < _sz, "%u < %u", \
| ^~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:915:9: note: in expansion of macro ‘SAP_MSG_HANDLER’
915 | SAP_MSG_HANDLER(PING, iwl_mei_handle_ping, 0);
| ^~~~~~~~~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:915:31: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
915 | SAP_MSG_HANDLER(PING, iwl_mei_handle_ping, 0);
| ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:903:25: note: in definition of macro ‘SAP_MSG_HANDLER’
903 | _handler(cldev, (const void *)hdr); \
| ^~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:900:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
900 | if (!WARN_ONCE(len < _sz, "%u < %u", \
| ^~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:916:9: note: in expansion of macro ‘SAP_MSG_HANDLER’
916 | SAP_MSG_HANDLER(CSME_FILTERS,
| ^~~~~~~~~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:917:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
917 | iwl_mei_handle_csme_filters,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:903:25: note: in definition of macro ‘SAP_MSG_HANDLER’
903 | _handler(cldev, (const void *)hdr); \
| ^~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:900:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
900 | if (!WARN_ONCE(len < _sz, "%u < %u", \
| ^~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:919:9: note: in expansion of macro ‘SAP_MSG_HANDLER’
919 | SAP_MSG_HANDLER(CSME_CONN_STATUS,
| ^~~~~~~~~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:920:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
920 | iwl_mei_handle_conn_status,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:903:25: note: in definition of macro ‘SAP_MSG_HANDLER’
903 | _handler(cldev, (const void *)hdr); \
| ^~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:900:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
900 | if (!WARN_ONCE(len < _sz, "%u < %u", \
| ^~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:925:9: note: in expansion of macro ‘SAP_MSG_HANDLER’
925 | SAP_MSG_HANDLER(PONG, iwl_mei_handle_pong, 0);
| ^~~~~~~~~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:925:31: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
925 | SAP_MSG_HANDLER(PONG, iwl_mei_handle_pong, 0);
| ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:903:25: note: in definition of macro ‘SAP_MSG_HANDLER’
903 | _handler(cldev, (const void *)hdr); \
| ^~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:900:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
900 | if (!WARN_ONCE(len < _sz, "%u < %u", \
| ^~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:926:9: note: in expansion of macro ‘SAP_MSG_HANDLER’
926 | SAP_MSG_HANDLER(NVM, iwl_mei_handle_nvm,
| ^~~~~~~~~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:926:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
926 | SAP_MSG_HANDLER(NVM, iwl_mei_handle_nvm,
| ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:903:25: note: in definition of macro ‘SAP_MSG_HANDLER’
903 | _handler(cldev, (const void *)hdr); \
| ^~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:900:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
900 | if (!WARN_ONCE(len < _sz, "%u < %u", \
| ^~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:928:9: note: in expansion of macro ‘SAP_MSG_HANDLER’
928 | SAP_MSG_HANDLER(CSME_REPLY_TO_HOST_OWNERSHIP_REQ,
| ^~~~~~~~~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:929:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
929 | iwl_mei_handle_rx_host_own_req,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:903:25: note: in definition of macro ‘SAP_MSG_HANDLER’
903 | _handler(cldev, (const void *)hdr); \
| ^~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:900:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
900 | if (!WARN_ONCE(len < _sz, "%u < %u", \
| ^~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:931:9: note: in expansion of macro ‘SAP_MSG_HANDLER’
931 | SAP_MSG_HANDLER(NIC_OWNER, iwl_mei_handle_nic_owner,
| ^~~~~~~~~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:931:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
931 | SAP_MSG_HANDLER(NIC_OWNER, iwl_mei_handle_nic_owner,
| ^~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:903:25: note: in definition of macro ‘SAP_MSG_HANDLER’
903 | _handler(cldev, (const void *)hdr); \
| ^~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:900:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
900 | if (!WARN_ONCE(len < _sz, "%u < %u", \
| ^~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:933:9: note: in expansion of macro ‘SAP_MSG_HANDLER’
933 | SAP_MSG_HANDLER(CSME_CAN_RELEASE_OWNERSHIP,
| ^~~~~~~~~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:934:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
934 | iwl_mei_handle_can_release_ownership, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:903:25: note: in definition of macro ‘SAP_MSG_HANDLER’
903 | _handler(cldev, (const void *)hdr); \
| ^~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:900:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
900 | if (!WARN_ONCE(len < _sz, "%u < %u", \
| ^~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:935:9: note: in expansion of macro ‘SAP_MSG_HANDLER’
935 | SAP_MSG_HANDLER(CSME_TAKING_OWNERSHIP,
| ^~~~~~~~~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:936:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
936 | iwl_mei_handle_csme_taking_ownership, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/main.c:903:25: note: in definition of macro ‘SAP_MSG_HANDLER’
903 | _handler(cldev, (const void *)hdr); \
| ^~~~~~~~
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/xvt/nvm.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/wireless/mesh.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/offchannel.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/trace.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/xvt/rx.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/ht.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/sf.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/agg-tx.o
LD [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mei/iwlmei.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/iwl-io.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/agg-rx.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/xvt/debugfs.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/scan.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/vht.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/he.o
LD [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/xvt/iwlxvt.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/iwl-drv.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/wireless/ap.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/iwl-debug.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/s1g.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/ibss.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/iface.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/rate.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/time-event.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/wireless/trace.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/rs.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/wireless/ocb.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/michael.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/power.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/wireless/pmsr.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/iwl-phy-db.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/tkip.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/aes_cmac.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/coex.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/iwl-trans.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/aes_gmac.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/wireless/debugfs.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/tt.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/queue/tx.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/fils_aead.o
GEN /var/lib/dkms/backport-iwlwifi/9340/build/net/wireless/shipped-certs.c
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/fw/img.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/fw/notif-wait.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/offloading.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/fw/rs.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/tdls.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/cfg.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/ftm-responder.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/rfi.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/nan.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/led.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/d3.o
GEN /var/lib/dkms/backport-iwlwifi/9340/build/net/wireless/extra-certs.c
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/fw/dbg.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/vendor-cmd.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/fw/pnvm.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/fw/dump.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/ethtool.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/wireless/shipped-certs.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/rx.o
LD [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/mvm/iwlmvm.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/fw/paging.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/spectmgmt.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/tx.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/wireless/extra-certs.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/fw/smem.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/key.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/fw/init.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/cfg/7000.o
LD [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/wireless/cfg80211.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/cfg/8000.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/cfg/9000.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/cfg/22000.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/fw/debugfs.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/fw/acpi.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/util.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/fw/uefi.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/pcie/drv.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/wme.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/pcie/rx.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/pcie/tx.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/chan.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/pcie/trans.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/trace.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/mlme.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/tdls.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/ocb.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/airtime.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/iwl-dbg-cfg.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/led.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/iwl-devtrace.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/debugfs.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/iwl-tm-gnl.o
In file included from ./include/linux/spinlock.h:303,
from /var/lib/dkms/backport-iwlwifi/9340/build/backport-include/linux/spinlock.h:3,
from ./include/linux/mmzone.h:8,
from ./include/linux/gfp.h:6,
from /var/lib/dkms/backport-iwlwifi/9340/build/backport-include/linux/gfp.h:3,
from ./include/linux/slab.h:15,
from /var/lib/dkms/backport-iwlwifi/9340/build/backport-include/linux/slab.h:3,
from /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/led.c:8:
/var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/led.c: In function ‘tpt_trig_timer’:
/var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/led.c:331:19: error: passing argument 1 of ‘_raw_read_lock’ from incompatible pointer type [-Werror=incompatible-pointer-types]
331 | read_lock(&local->tpt_led.leddev_list_lock);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| spinlock_t * {aka struct spinlock *}
./include/linux/rwlock.h:56:48: note: in definition of macro ‘read_lock’
56 | #define read_lock(lock) _raw_read_lock(lock)
| ^~~~
In file included from ./include/linux/spinlock_api_smp.h:183,
from ./include/linux/spinlock.h:310,
from /var/lib/dkms/backport-iwlwifi/9340/build/backport-include/linux/spinlock.h:3,
from ./include/linux/mmzone.h:8,
from ./include/linux/gfp.h:6,
from /var/lib/dkms/backport-iwlwifi/9340/build/backport-include/linux/gfp.h:3,
from ./include/linux/slab.h:15,
from /var/lib/dkms/backport-iwlwifi/9340/build/backport-include/linux/slab.h:3,
from /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/led.c:8:
./include/linux/rwlock_api_smp.h:18:42: note: expected ‘rwlock_t *’ but argument is of type ‘spinlock_t *’ {aka ‘struct spinlock *’}
18 | void __lockfunc _raw_read_lock(rwlock_t *lock) __acquires(lock);
| ~~~~~~~~~~^~~~
In file included from ./include/linux/spinlock.h:303,
from /var/lib/dkms/backport-iwlwifi/9340/build/backport-include/linux/spinlock.h:3,
from ./include/linux/mmzone.h:8,
from ./include/linux/gfp.h:6,
from /var/lib/dkms/backport-iwlwifi/9340/build/backport-include/linux/gfp.h:3,
from ./include/linux/slab.h:15,
from /var/lib/dkms/backport-iwlwifi/9340/build/backport-include/linux/slab.h:3,
from /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/led.c:8:
/var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/led.c:334:21: error: passing argument 1 of ‘_raw_read_unlock’ from incompatible pointer type [-Werror=incompatible-pointer-types]
334 | read_unlock(&local->tpt_led.leddev_list_lock);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| spinlock_t * {aka struct spinlock *}
./include/linux/rwlock.h:90:58: note: in definition of macro ‘read_unlock’
90 | #define read_unlock(lock) _raw_read_unlock(lock)
| ^~~~
In file included from ./include/linux/spinlock_api_smp.h:183,
from ./include/linux/spinlock.h:310,
from /var/lib/dkms/backport-iwlwifi/9340/build/backport-include/linux/spinlock.h:3,
from ./include/linux/mmzone.h:8,
from ./include/linux/gfp.h:6,
from /var/lib/dkms/backport-iwlwifi/9340/build/backport-include/linux/gfp.h:3,
from ./include/linux/slab.h:15,
from /var/lib/dkms/backport-iwlwifi/9340/build/backport-include/linux/slab.h:3,
from /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/led.c:8:
./include/linux/rwlock_api_smp.h:30:44: note: expected ‘rwlock_t *’ but argument is of type ‘spinlock_t *’ {aka ‘struct spinlock *’}
30 | void __lockfunc _raw_read_unlock(rwlock_t *lock) __releases(lock);
| ~~~~~~~~~~^~~~
In file included from ./include/linux/spinlock.h:303,
from /var/lib/dkms/backport-iwlwifi/9340/build/backport-include/linux/spinlock.h:3,
from ./include/linux/mmzone.h:8,
from ./include/linux/gfp.h:6,
from /var/lib/dkms/backport-iwlwifi/9340/build/backport-include/linux/gfp.h:3,
from ./include/linux/slab.h:15,
from /var/lib/dkms/backport-iwlwifi/9340/build/backport-include/linux/slab.h:3,
from /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/led.c:8:
/var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/led.c: In function ‘ieee80211_stop_tpt_led_trig’:
/var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/led.c:397:19: error: passing argument 1 of ‘_raw_read_lock’ from incompatible pointer type [-Werror=incompatible-pointer-types]
397 | read_lock(&local->tpt_led.leddev_list_lock);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| spinlock_t * {aka struct spinlock *}
./include/linux/rwlock.h:56:48: note: in definition of macro ‘read_lock’
56 | #define read_lock(lock) _raw_read_lock(lock)
| ^~~~
In file included from ./include/linux/spinlock_api_smp.h:183,
from ./include/linux/spinlock.h:310,
from /var/lib/dkms/backport-iwlwifi/9340/build/backport-include/linux/spinlock.h:3,
from ./include/linux/mmzone.h:8,
from ./include/linux/gfp.h:6,
from /var/lib/dkms/backport-iwlwifi/9340/build/backport-include/linux/gfp.h:3,
from ./include/linux/slab.h:15,
from /var/lib/dkms/backport-iwlwifi/9340/build/backport-include/linux/slab.h:3,
from /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/led.c:8:
./include/linux/rwlock_api_smp.h:18:42: note: expected ‘rwlock_t *’ but argument is of type ‘spinlock_t *’ {aka ‘struct spinlock *’}
18 | void __lockfunc _raw_read_lock(rwlock_t *lock) __acquires(lock);
| ~~~~~~~~~~^~~~
In file included from ./include/linux/spinlock.h:303,
from /var/lib/dkms/backport-iwlwifi/9340/build/backport-include/linux/spinlock.h:3,
from ./include/linux/mmzone.h:8,
from ./include/linux/gfp.h:6,
from /var/lib/dkms/backport-iwlwifi/9340/build/backport-include/linux/gfp.h:3,
from ./include/linux/slab.h:15,
from /var/lib/dkms/backport-iwlwifi/9340/build/backport-include/linux/slab.h:3,
from /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/led.c:8:
/var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/led.c:400:21: error: passing argument 1 of ‘_raw_read_unlock’ from incompatible pointer type [-Werror=incompatible-pointer-types]
400 | read_unlock(&local->tpt_led.leddev_list_lock);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| spinlock_t * {aka struct spinlock *}
./include/linux/rwlock.h:90:58: note: in definition of macro ‘read_unlock’
90 | #define read_unlock(lock) _raw_read_unlock(lock)
| ^~~~
In file included from ./include/linux/spinlock_api_smp.h:183,
from ./include/linux/spinlock.h:310,
from /var/lib/dkms/backport-iwlwifi/9340/build/backport-include/linux/spinlock.h:3,
from ./include/linux/mmzone.h:8,
from ./include/linux/gfp.h:6,
from /var/lib/dkms/backport-iwlwifi/9340/build/backport-include/linux/gfp.h:3,
from ./include/linux/slab.h:15,
from /var/lib/dkms/backport-iwlwifi/9340/build/backport-include/linux/slab.h:3,
from /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/led.c:8:
./include/linux/rwlock_api_smp.h:30:44: note: expected ‘rwlock_t *’ but argument is of type ‘spinlock_t *’ {aka ‘struct spinlock *’}
30 | void __lockfunc _raw_read_unlock(rwlock_t *lock) __releases(lock);
| ~~~~~~~~~~^~~~
cc1: some warnings being treated as errors
make[6]: *** [scripts/Makefile.build:287: /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211/led.o] Error 1
make[6]: *** Waiting for unfinished jobs....
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/iwl-dnt-cfg.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/iwl-dnt-dispatch.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/iwl-dnt-dev-if.o
CC [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/fw/testmode.o
LD [M] /var/lib/dkms/backport-iwlwifi/9340/build/drivers/net/wireless/intel/iwlwifi/iwlwifi.o
make[5]: *** [scripts/Makefile.build:549: /var/lib/dkms/backport-iwlwifi/9340/build/net/mac80211] Error 2
make[4]: *** [Makefile:1852: /var/lib/dkms/backport-iwlwifi/9340/build] Error 2
make[3]: *** [Makefile.build:13: modules] Error 2
make[2]: *** [Makefile.real:100: modules] Error 2
make[1]: *** [Makefile:43: modules] Error 2
make: *** [Makefile:30: default] Error 2
using current repo master tip I get this when trying to
mainline --install 5.16.10
(or any other 5.16.* I've tried):