From: kbuild test robot <lkp@intel.com>
To: Eric Engestrom <eric.engestrom@imgtec.com>
Cc: linux-nvdimm@lists.01.org, Eric Engestrom <eric@engestrom.ch>,
linux-kernel@vger.kernel.org, kbuild-all@01.org
Subject: Re: [PATCH 1/2] libnvdimm: add missing macros
Date: Sat, 9 Jul 2016 01:25:39 +0800 [thread overview]
Message-ID: <201607090117.yBNz7XdD%fengguang.wu@intel.com> (raw)
In-Reply-To: <20160708162911.18756-1-eric.engestrom@imgtec.com>
Hi,
[auto build test WARNING on linux-nvdimm/libnvdimm-for-next]
[also build test WARNING on v4.7-rc6 next-20160708]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Eric-Engestrom/libnvdimm-add-missing-macros/20160709-003310
base: https://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm.git libnvdimm-for-next
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
In file included from drivers/dax/../nvdimm/nd.h:20:0,
from drivers/dax/pmem.c:18:
>> include/uapi/linux/ndctl.h:24:0: warning: "ARRAY_SIZE" redefined
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr)[0])
In file included from include/linux/percpu-refcount.h:49:0,
from drivers/dax/pmem.c:13:
include/linux/kernel.h:54:0: note: this is the location of the previous definition
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
vim +/ARRAY_SIZE +24 include/uapi/linux/ndctl.h
8 * This program is distributed in the hope it will be useful, but WITHOUT ANY
9 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
11 * more details.
12 */
13 #ifndef __NDCTL_H__
14 #define __NDCTL_H__
15
16 #include <linux/types.h>
17
18 #ifdef __GNUC__
19 #define __packed __attribute__((packed))
20 #else
21 #define __packed
22 #endif
23
> 24 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr)[0])
25
26 struct nd_cmd_smart {
27 __u32 status;
28 __u8 data[128];
29 } __packed;
30
31 #define ND_SMART_HEALTH_VALID (1 << 0)
32 #define ND_SMART_TEMP_VALID (1 << 1)
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm
next prev parent reply other threads:[~2016-07-08 17:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-08 16:29 [PATCH 1/2] libnvdimm: add missing macros Eric Engestrom
2016-07-08 17:25 ` kbuild test robot [this message]
2016-07-08 19:32 ` Dan Williams
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=201607090117.yBNz7XdD%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=eric.engestrom@imgtec.com \
--cc=eric@engestrom.ch \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nvdimm@lists.01.org \
/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