module: Move module_assert_mutex_or_preempt() to internal.h
authorAaron Tomlin <atomlin@redhat.com>
Mon, 2 May 2022 20:51:04 +0000 (21:51 +0100)
committerLuis Chamberlain <mcgrof@kernel.org>
Thu, 12 May 2022 17:29:41 +0000 (10:29 -0700)
commit6fb0538d0121ffab770a505b183968d93466ad59
treee4d104d7f43375d7a2142d162644d2a68e12cd9d
parentc14e522bc76efed6e947cd0ab83a1fac7a7a3ec9
module: Move module_assert_mutex_or_preempt() to internal.h

No functional change.

This patch migrates module_assert_mutex_or_preempt() to internal.h.
So, the aforementiond function can be used outside of main/or core
module code yet will remain restricted for internal use only.

Signed-off-by: Aaron Tomlin <atomlin@redhat.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
kernel/module/internal.h
kernel/module/main.c