linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Rashmica Gupta <rashmicy@gmail.com>
Cc: kbuild-all@01.org, linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au
Subject: Re: [PATCH] lib/test-hexdump: Changed to work on BE
Date: Tue, 12 Apr 2016 17:39:06 +0800	[thread overview]
Message-ID: <201604121734.YNETaRqP%fengguang.wu@intel.com> (raw)
In-Reply-To: <1460439212-13345-1-git-send-email-rashmicy@gmail.com>

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

Hi Rashmica,

[auto build test WARNING on v4.6-rc3]
[also build test WARNING on next-20160412]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Rashmica-Gupta/lib-test-hexdump-Changed-to-work-on-BE/20160412-133656
config: mn10300-allmodconfig (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
        # save the attached .config to linux build tree
        make.cross ARCH=mn10300 

All warnings (new ones prefixed by >>):

>> lib/test_hexdump.c:45:7: warning: "__BIG_ENDIAN" is not defined [-Wundef]
    #elif __BIG_ENDIAN
          ^
   lib/test_hexdump.c: In function 'test_hexdump':
   lib/test_hexdump.c:143:3: warning: format '%zu' expects argument of type 'size_t', but argument 2 has type 'unsigned int' [-Wformat=]
      pr_err("Len: %zu row: %d group: %d\n", len, rowsize, groupsize);
      ^
   lib/test_hexdump.c: In function 'test_hexdump_overflow':
   lib/test_hexdump.c:201:3: warning: format '%zu' expects argument of type 'size_t', but argument 2 has type 'unsigned int' [-Wformat=]
      pr_err("Len: %zu buflen: %zu strlen: %zu\n",
      ^
   lib/test_hexdump.c:201:3: warning: format '%zu' expects argument of type 'size_t', but argument 3 has type 'unsigned int' [-Wformat=]
   lib/test_hexdump.c:201:3: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type '__kernel_size_t' [-Wformat=]
--
>> /kbuild/src/defs/lib/test_hexdump.c:45:7: warning: "__BIG_ENDIAN" is not defined [-Wundef]
    #elif __BIG_ENDIAN
          ^
   /kbuild/src/defs/lib/test_hexdump.c: In function 'test_hexdump':
   /kbuild/src/defs/lib/test_hexdump.c:143:3: warning: format '%zu' expects argument of type 'size_t', but argument 2 has type 'unsigned int' [-Wformat=]
      pr_err("Len: %zu row: %d group: %d\n", len, rowsize, groupsize);
      ^
   /kbuild/src/defs/lib/test_hexdump.c: In function 'test_hexdump_overflow':
   /kbuild/src/defs/lib/test_hexdump.c:201:3: warning: format '%zu' expects argument of type 'size_t', but argument 2 has type 'unsigned int' [-Wformat=]
      pr_err("Len: %zu buflen: %zu strlen: %zu\n",
      ^
   /kbuild/src/defs/lib/test_hexdump.c:201:3: warning: format '%zu' expects argument of type 'size_t', but argument 3 has type 'unsigned int' [-Wformat=]
   /kbuild/src/defs/lib/test_hexdump.c:201:3: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type '__kernel_size_t' [-Wformat=]

vim +/__BIG_ENDIAN +45 lib/test_hexdump.c

    29	static const char * const test_data_2[] __initconst = {
    30		"32be", "7bdb", "180a", "b293",
    31		"ba70", "24c4", "837d", "9b34",
    32		"9ca6", "ad31", "0f9c", "e9ac",
    33		"d14c", "9919", "b143", "0caf",
    34	};
    35	
    36	static const char * const test_data_4[] __initconst = {
    37		"7bdb32be", "b293180a", "24c4ba70", "9b34837d",
    38		"ad319ca6", "e9ac0f9c", "9919d14c", "0cafb143",
    39	};
    40	
    41	static const char * const test_data_8[] __initconst = {
    42		"b293180a7bdb32be", "9b34837d24c4ba70",
    43		"e9ac0f9cad319ca6", "0cafb1439919d14c",
    44	};
  > 45	#elif __BIG_ENDIAN
    46	static const char * const test_data_2[] __initconst = {
    47		"be32", "db7b", "0a18", "93b2",
    48		"70ba", "c424", "7d83", "349b",
    49		"a69c", "31ad", "9c0f", "ace9",
    50		"4cd1", "1999", "43b1", "af0c",
    51	};
    52	
    53	static const char * const test_data_4[] __initconst = {

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 38147 bytes --]

  reply	other threads:[~2016-04-12  9:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-12  5:33 [PATCH] lib/test-hexdump: Changed to work on BE Rashmica Gupta
2016-04-12  9:39 ` kbuild test robot [this message]
2016-04-12 13:19   ` Michael Ellerman

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=201604121734.YNETaRqP%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=mpe@ellerman.id.au \
    --cc=rashmicy@gmail.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).