summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2026-09-11 14:47:49 +0200
committerChristian Brauner <brauner@kernel.org>2026-09-11 14:47:49 +0200
commit07d35cec28c6a33d7714da6eebcf5c69644f530e (patch)
treea8cb30372f648fc31dd35a9647959623d45b079f /tools/lib/python/kdoc
parentf5ae3d9f2940d7ab17f0c186bda880e13d18bde7 (diff)
downloadlinux-next-07d35cec28c6a33d7714da6eebcf5c69644f530e.tar.gz
linux-next-07d35cec28c6a33d7714da6eebcf5c69644f530e.zip
vfs: use __struct_size() in the fdtable KUnit test
sparse doesn't know __builtin_dynamic_object_size() and so the two size checks in the fdtable test fall apart on every config where the compiler has __counted_by_ptr: fs/tests/fdtable_kunit.c:25:9: sparse: undefined identifier '__builtin_dynamic_object_size' fs/tests/fdtable_kunit.c:25:9: sparse: incompatible types for operation (==): Use __struct_size() instead. Every compiler that has __counted_by_ptr also has __builtin_dynamic_object_size() so it expands to the same builtin and the test checks the same thing. sparse lacks the builtin and gets the __builtin_object_size() fallback which it does understand. Fixes: 501cbbd276b7 ("vfs: Add KUnit tests for fdtable") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202609111337.fBSfTIpR-lkp@intel.com/ Closes: https://lore.kernel.org/oe-kbuild-all/202609111828.SjerhPyO-lkp@intel.com/ Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions