HomeFreeBSD

linuxkpi: Add macros for might_lock_nested() and lockdep_(re/un/)pin_lock()

Description

linuxkpi: Add macros for might_lock_nested() and lockdep_(re/un/)pin_lock()

In Linux, these are macros to locks in the kernel for scheduling purposes.
But as with other macros in this header, we aren't doing anything with them
so we are doing do {} while (0) for now.

This is needed by the drm-kmod 5.7 update.

Approved by: hselasky (src)
Differential Revision: https://reviews.freebsd.org/D30710

(cherry picked from commit 8a1a42b2a7a428fb97fda9f19fd0d67a4eec7535)

Details

Provenance
ncAuthored on Jun 9 2021, 9:38 PM
Differential Revision
D30710: linuxkpi: Add macros for might_lock_nested() and lockdep_(re/un/)pin_lock()
Parents
rGdf370b47a66f: linuxkpi: Add _RET_IP_ macro in kernel.h
Branches
Unknown
Tags
Unknown