archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <>
To: Vadym Kochan <>,
	Srinivas Kandagatla <>,
	Taras Chornyi <>,
	Vadym Kochan <>
Subject: Re: [PATCH 2/2] nvmem: add ONIE NVMEM cells support
Date: Sat, 30 May 2020 04:52:47 +0800	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

[-- Attachment #1: Type: text/plain, Size: 2484 bytes --]

Hi Vadym,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on linux/master v5.7-rc7 next-20200529]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see]

base: b0c3ba31be3e45a130e13b278cf3b90f69bda6f6
config: x86_64-randconfig-r024-20200529 (attached as .config)
compiler: clang version 11.0.0 ( 2d068e534f1671459e1b135852c1b3c10502e929)
reproduce (this is a W=1 build):
        wget -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <>

All warnings (new ones prefixed by >>, old ones prefixed by <<):

>> drivers/nvmem/onie-cells.c:56:57: warning: size argument in 'memcmp' call is a comparison [-Wmemsize-comparison]
if (memcmp(hdr->id, ONIE_NVMEM_HDR_ID, sizeof(hdr->id) != 0))
drivers/nvmem/onie-cells.c:56:6: note: did you mean to compare the result of 'memcmp' instead?
if (memcmp(hdr->id, ONIE_NVMEM_HDR_ID, sizeof(hdr->id) != 0))
^                                                      ~
drivers/nvmem/onie-cells.c:56:41: note: explicitly cast the argument to size_t to silence this warning
if (memcmp(hdr->id, ONIE_NVMEM_HDR_ID, sizeof(hdr->id) != 0))
(size_t)(           )
1 warning generated.

vim +/memcmp +56 drivers/nvmem/onie-cells.c

    54	static bool onie_nvmem_hdr_is_valid(struct onie_nvmem_hdr *hdr)
    55	{
  > 56		if (memcmp(hdr->id, ONIE_NVMEM_HDR_ID, sizeof(hdr->id) != 0))
    57			return false;
    58		if (hdr->version != 0x1)
    59			return false;
    61		return true;
    62	}

0-DAY CI Kernel Test Service, Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34875 bytes --]

      reply	other threads:[~2020-05-29 21:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-27 20:17 [PATCH 0/2] nvmem: add ONIE NVMEM cells provider Vadym Kochan
2020-05-27 20:17 ` [PATCH 1/2] nvmem: core: allow to register cells for existing device Vadym Kochan
2020-05-27 20:17 ` [PATCH 2/2] nvmem: add ONIE NVMEM cells support Vadym Kochan
2020-05-29 20:52   ` kbuild test robot [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:

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

  git send-email \ \ \ \ \ \ \ \ \
    --subject='Re: [PATCH 2/2] nvmem: add ONIE NVMEM cells support' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).