tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 01c8787d7f7ea56c16d94cf7133022189be231ad commit: 42c38b1726a7df8aee87c44e5151b0f29ab5ab3b [2171/2223] lib/test-string_helpers.c: add string_get_size() tests config: mn10300-allyesconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 42c38b1726a7df8aee87c44e5151b0f29ab5ab3b # save the attached .config to linux build tree make.cross ARCH=mn10300 All warnings (new ones prefixed by >>): In file included from lib/test-string_helpers.c:7:0: lib/test-string_helpers.c: In function 'test_string_get_size_one': include/linux/kernel.h:722:17: warning: comparison of distinct pointer types lacks a cast (void) (&_min1 == &_min2); \ ^ >> lib/test-string_helpers.c:336:32: note: in expansion of macro 'min' if (!strncmp(buf, exp_result, min(sizeof(buf), strlen(exp_result)))) ^ vim +/min +336 lib/test-string_helpers.c 320 321 test_string_escape_overflow(in, p, flags, esc, q_test, name); 322 323 out: 324 kfree(in); 325 kfree(out_real); 326 kfree(out_test); 327 } 328 329 static __init void test_string_get_size_one(u64 size, u64 blk_size, 330 const enum string_size_units units, 331 const char *exp_result) 332 { 333 char buf[256]; 334 335 string_get_size(size, blk_size, units, buf, sizeof(buf)); > 336 if (!strncmp(buf, exp_result, min(sizeof(buf), strlen(exp_result)))) 337 return; 338 339 pr_warn("Test 'test_string_get_size_one' failed!\n"); 340 pr_warn("string_get_size(size = %llu, blk_size = %llu, units = %d\n", 341 size, blk_size, units); 342 pr_warn("expected: %s, got %s\n", exp_result, buf); 343 344 } --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation