summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2026-09-11 14:58:40 +0200
committerChristian Brauner <brauner@kernel.org>2026-09-11 15:00:37 +0200
commit4879a907335976d27f15c0aa3f1d358db3e9bd9f (patch)
tree71bdec24b5dd4687d0bb6d1458e7e3f1c353f77c /tools/lib/python
parent86cfbad9d7b3d2f6546dd3452aaade8022ac63ec (diff)
downloadlinux-next-4879a907335976d27f15c0aa3f1d358db3e9bd9f.tar.gz
linux-next-4879a907335976d27f15c0aa3f1d358db3e9bd9f.zip
userns: declare the KUnit-visible helpers whenever KUnit is enabled
VISIBLE_IF_KUNIT drops the static qualifier whenever CONFIG_KUNIT is enabled but the prototypes for the two helpers it exposes are only declared when CONFIG_USER_NS_MAP_KUNIT_TEST is set. kernel/user_namespace.c:787:22: warning: no previous prototype for 'insert_extent' [-Wmissing-prototypes] kernel/user_namespace.c:860:22: warning: no previous prototype for 'sort_idmaps' [-Wmissing-prototypes] Guard the declarations on CONFIG_KUNIT so they match the definitions. Fixes: f6f1a2496ba5 ("userns: Add KUnit test suite for uid_gid_map") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202609111048.yhHILE11-lkp@intel.com/ Closes: https://lore.kernel.org/oe-kbuild-all/202609111305.ta3EOA2x-lkp@intel.com/ Link: https://patch.msgid.link/20260911-zyklisch-stuhl-zweit-d61b18a17838@brauner Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions