On Mon, Dec 18, 2023 at 11:53:08AM -0500, Waiman Long wrote:
On 12/15/23 22:26, Kent Overstreet wrote:good observation, I'll have to leave it for the next round of cleanups
-#include <linux/rtmutex.h>Including rtmutex.h here means that mutex_types.h is no longer a simple
header for types only. So unless you also break out a rtmutex_types.h, it is
inconsistent.
though since the merge window is approaching and I'll have to redo all
the testing.
Besides, the kernel/sched code does use mutex_lock/unlock calls quiteI've now put it through randconfig testing on every arch that debian
frequently. With this patch, mutex.h will not be directly included. I
suspect that it is indirectly included via other header files. This may be
an issue with some configurations.
includes a compiler for (excluding sh and xtensa, which throw internal
compiler errors) and that one hasn't come up yet.
could still be included indirectly though - I haven't checked for that
one specifically yet.