Skip to content

Commit 3b239b3

Browse files
paulmckrcufbq
authored andcommitted
context_tracking: Fix kerneldoc headers for __ct_user_{enter,exit}()
Document the "state" parameter of both of these functions. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202312041922.YZCcEPYD-lkp@intel.com/ Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Tested-by: Randy Dunlap <rdunlap@infradead.org> Acked-by: Randy Dunlap <rdunlap@infradead.org> Cc: Frederic Weisbecker <frederic@kernel.org> Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
1 parent 6007165 commit 3b239b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

kernel/context_tracking.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,8 @@ static __always_inline void context_tracking_recursion_exit(void)
458458
* __ct_user_enter - Inform the context tracking that the CPU is going
459459
* to enter user or guest space mode.
460460
*
461+
* @state: userspace context-tracking state to enter.
462+
*
461463
* This function must be called right before we switch from the kernel
462464
* to user or guest space, when it's guaranteed the remaining kernel
463465
* instructions to execute won't use any RCU read side critical section
@@ -595,6 +597,8 @@ NOKPROBE_SYMBOL(user_enter_callable);
595597
* __ct_user_exit - Inform the context tracking that the CPU is
596598
* exiting user or guest mode and entering the kernel.
597599
*
600+
* @state: userspace context-tracking state being exited from.
601+
*
598602
* This function must be called after we entered the kernel from user or
599603
* guest space before any use of RCU read side critical section. This
600604
* potentially include any high level kernel code like syscalls, exceptions,

0 commit comments

Comments
 (0)