mac80211: headers: fix lockdep_assert_not_held()
authorPetr Štetiar <ynezz@true.cz>
Fri, 11 Mar 2022 19:56:02 +0000 (20:56 +0100)
committerPetr Štetiar <ynezz@true.cz>
Tue, 15 Mar 2022 07:33:45 +0000 (08:33 +0100)
commit9cdd15d8a5d2d504e4d1ec8a118e9c3e564de92e
treeeca097f1f63bf212cb3a8f34f2c781672041ebe5
parent41be1a2de2f84f532a7eb1c11ece99811ca47ba5
mac80211: headers: fix lockdep_assert_not_held()

LOCK_STATE_HELD define was omitted during backport of
lockdep_assert_not_held() which leads to build failures of kernels with
CONFIG_LOCKDEP=y:

 backports-5.15.8-1/backport-include/linux/lockdep.h:16:47: error: 'LOCK_STATE_HELD' undeclared (first use in this function)

Fix it by adding missing LOCK_STATE_HELD define.

References: PR#9373
Reported-by: Oskari Rauta <oskari.rauta@gmail.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
package/kernel/mac80211/Makefile
package/kernel/mac80211/patches/build/070-headers-fix-lockdep_assert_not_held.patch [new file with mode: 0644]