It uses the LA_ defines when INVARIANTS is set.
This unbreak dpaa2 with FDT only kernel (like ALLWINNER or ROCKCHIP) as
the driver only include sys/lock.h via header polution for ACPI kernels.
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential D37145
sys/mutex.h: Include sys/lock.h instead of sys/_lock.h manu on Oct 27 2022, 9:46 AM. Authored by Tags None Referenced Files
Subscribers
Details It uses the LA_ defines when INVARIANTS is set. Sponsored by: Beckhoff Automation GmbH & Co. KG
Diff Detail
Event TimelineComment Actions If you do this, include it unconditionally, otherwise it would be a source of continuous troubles, where people only build-test INVARIANTS kernels. Then you can (should ?) remove sys/_lock.h. Comment Actions This break buildworld, _lock is still needed for struct lock_object. |