On 12 Sep 2025, at 8:30, Muhammad Usama Anjum wrote: > The while loop doesn't execute and following warning gets generated: > > protection_keys.c:561:15: warning: code will never be executed > [-Wunreachable-code] > int rpkey = alloc_random_pkey(); > > Let's enable the while loop such that it gets executed nr_iterations > times. Simplify the code a bit as well. > > Reviewed-by: Sidhartha Kumar <[email protected]> > Signed-off-by: Muhammad Usama Anjum <[email protected]> > --- > tools/testing/selftests/mm/protection_keys.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) >
LGTM. Reviewed-by: Zi Yan <[email protected]> Best Regards, Yan, Zi

