]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
delayacct: fix build regression on accounting tool
authorArnd Bergmann <arnd@arndb.de>
Tue, 10 Feb 2026 10:34:22 +0000 (11:34 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 12 Feb 2026 23:45:56 +0000 (15:45 -0800)
commit9333980c230fc29afb41dc52b58a0dc9ea201f2a
treebed3bc403a987b0d523e41cba8bddb0785b2bca6
parent0dddf20b4fd4afd59767acc144ad4da60259f21f
delayacct: fix build regression on accounting tool

The accounting tool was modified for the original ABI using a custom
'timespec64' type in linux/taskstats.h, which I changed to use the regular
__kernel_timespec type, causing a build failure:

        getdelays.c:202:45: warning: 'struct timespec64' declared inside parameter list will not be visible outside of this definition or declaration

     202 | static const char *format_timespec64(struct timespec64 *ts)
         |                                             ^~~~~~~~~~

Change the tool to match the updated header.

Link: https://lkml.kernel.org/r/20260210103427.2984963-1-arnd@kernel.org
Fixes: 503efe850c74 ("delayacct: add timestamp of delay max")
Fixes: f06e31eef4c1 ("delayacct: fix uapi timespec64 definition")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/r/202602091611.lxgINqXp-lkp@intel.com/
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/accounting/getdelays.c