On Tue, Mar 05, 2024 at 02:50:18PM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the kspp tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > In file included from lib/string_kunit.c:8: > lib/string_kunit.c: In function 'test_strspn': > lib/string_kunit.c:176:25: error: format '%d' expects argument of type 'int', but argument 7 has type 'size_t' {aka 'long unsigned int'} [-Werror=format=] > 176 | "i:%d", i); > | ^~~~~~ ~ > | | > | size_t {aka long unsigned int} I was really scratching my head on this one. I didn't see the warning on my end because this is actually a result of the merge, namely KUnit becoming correctly stricter about format strings: 806cb2270237 ("kunit: Annotate _MSG assertion variants with gnu printf specifiers") I will fix the format string! :) -- Kees Cook