linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: kbuild test robot <fengguang.wu@intel.com>
Cc: Vitaly Kuznetsov <vkuznets@redhat.com>,
	kbuild-all@01.org,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: Re: [linux-next:master 2171/2223] lib/test-string_helpers.c:336:32: note: in expansion of macro 'min'
Date: Thu, 17 Sep 2015 11:34:22 -0700	[thread overview]
Message-ID: <20150917113422.1d67ee7d09bbd87900b9dc29@linux-foundation.org> (raw)
In-Reply-To: <201509171413.HY8sjcvk%fengguang.wu@intel.com>

On Thu, 17 Sep 2015 14:33:15 +0800 kbuild test robot <fengguang.wu@intel.com> 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@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

      reply	other threads:[~2015-09-17 18:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-17  6:33 [linux-next:master 2171/2223] lib/test-string_helpers.c:336:32: note: in expansion of macro 'min' kbuild test robot
2015-09-17 18:34 ` Andrew Morton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150917113422.1d67ee7d09bbd87900b9dc29@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=fengguang.wu@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-mm@kvack.org \
    --cc=vkuznets@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).