On Thu, 17 Sep 2015 14:33:15 +0800 kbuild test robot <fengguang.wu@xxxxxxxxx> wrote: > 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)))) > ^ > > ... > > > 336 if (!strncmp(buf, exp_result, min(sizeof(buf), strlen(exp_result)))) It looks like mn10300 gcc is busted. sizeof and strlen() both return size_t. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>