From: kbuild test robot <lkp@intel.com>
To: Ming Lei <tom.leiming@gmail.com>
Cc: kbuild-all@01.org, Jens Axboe <axboe@kernel.dk>,
linux-kernel@vger.kernel.org,
Christoph Hellwig <hch@infradead.org>,
Andrew Morton <akpm@linux-foundation.org>,
Alexander Viro <viro@zeniv.linux.org.uk>,
Ming Lei <tom.leiming@gmail.com>
Subject: Re: [PATCH 2/2] iov_iter: use bvec iterator to implement iterate_bvec()
Date: Sat, 10 Oct 2015 23:33:44 +0800 [thread overview]
Message-ID: <201510102312.K3PUd3Bk%fengguang.wu@intel.com> (raw)
In-Reply-To: <1444490426-16522-3-git-send-email-tom.leiming@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 9221 bytes --]
Hi Ming,
[auto build test ERROR on v4.3-rc4 -- if it's inappropriate base, please ignore]
config: i386-randconfig-s1-201540 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All error/warnings (new ones prefixed by >>):
lib/iov_iter.c: In function 'copy_to_iter':
>> lib/iov_iter.c:61:19: error: storage size of '__bi' isn't known
struct bvec_iter __bi, __start; \
^
lib/iov_iter.c:97:3: note: in expansion of macro 'iterate_bvec'
iterate_bvec(i, n, v, bvec, skip, (B)) \
^
lib/iov_iter.c:386:2: note: in expansion of macro 'iterate_and_advance'
iterate_and_advance(i, bytes, v,
^
>> lib/iov_iter.c:61:25: error: storage size of '__start' isn't known
struct bvec_iter __bi, __start; \
^
lib/iov_iter.c:97:3: note: in expansion of macro 'iterate_bvec'
iterate_bvec(i, n, v, bvec, skip, (B)) \
^
lib/iov_iter.c:386:2: note: in expansion of macro 'iterate_and_advance'
iterate_and_advance(i, bytes, v,
^
>> lib/iov_iter.c:66:2: error: implicit declaration of function 'for_each_bvec' [-Werror=implicit-function-declaration]
for_each_bvec(__v, __p, __bi, __start) { \
^
lib/iov_iter.c:97:3: note: in expansion of macro 'iterate_bvec'
iterate_bvec(i, n, v, bvec, skip, (B)) \
^
lib/iov_iter.c:386:2: note: in expansion of macro 'iterate_and_advance'
iterate_and_advance(i, bytes, v,
^
>> lib/iov_iter.c:66:41: error: expected ';' before '{' token
for_each_bvec(__v, __p, __bi, __start) { \
^
lib/iov_iter.c:97:3: note: in expansion of macro 'iterate_bvec'
iterate_bvec(i, n, v, bvec, skip, (B)) \
^
lib/iov_iter.c:386:2: note: in expansion of macro 'iterate_and_advance'
iterate_and_advance(i, bytes, v,
^
>> lib/iov_iter.c:71:2: error: 'else' without a previous 'if'
else \
^
lib/iov_iter.c:97:3: note: in expansion of macro 'iterate_bvec'
iterate_bvec(i, n, v, bvec, skip, (B)) \
^
lib/iov_iter.c:386:2: note: in expansion of macro 'iterate_and_advance'
iterate_and_advance(i, bytes, v,
^
>> lib/iov_iter.c:61:25: warning: unused variable '__start' [-Wunused-variable]
struct bvec_iter __bi, __start; \
^
lib/iov_iter.c:97:3: note: in expansion of macro 'iterate_bvec'
iterate_bvec(i, n, v, bvec, skip, (B)) \
^
lib/iov_iter.c:386:2: note: in expansion of macro 'iterate_and_advance'
iterate_and_advance(i, bytes, v,
^
>> lib/iov_iter.c:61:19: warning: unused variable '__bi' [-Wunused-variable]
struct bvec_iter __bi, __start; \
^
lib/iov_iter.c:97:3: note: in expansion of macro 'iterate_bvec'
iterate_bvec(i, n, v, bvec, skip, (B)) \
^
lib/iov_iter.c:386:2: note: in expansion of macro 'iterate_and_advance'
iterate_and_advance(i, bytes, v,
^
lib/iov_iter.c: In function 'copy_from_iter':
>> lib/iov_iter.c:61:19: error: storage size of '__bi' isn't known
struct bvec_iter __bi, __start; \
^
lib/iov_iter.c:97:3: note: in expansion of macro 'iterate_bvec'
iterate_bvec(i, n, v, bvec, skip, (B)) \
^
lib/iov_iter.c:407:2: note: in expansion of macro 'iterate_and_advance'
iterate_and_advance(i, bytes, v,
^
>> lib/iov_iter.c:61:25: error: storage size of '__start' isn't known
struct bvec_iter __bi, __start; \
^
lib/iov_iter.c:97:3: note: in expansion of macro 'iterate_bvec'
iterate_bvec(i, n, v, bvec, skip, (B)) \
^
lib/iov_iter.c:407:2: note: in expansion of macro 'iterate_and_advance'
iterate_and_advance(i, bytes, v,
^
>> lib/iov_iter.c:66:41: error: expected ';' before '{' token
for_each_bvec(__v, __p, __bi, __start) { \
^
lib/iov_iter.c:97:3: note: in expansion of macro 'iterate_bvec'
iterate_bvec(i, n, v, bvec, skip, (B)) \
^
lib/iov_iter.c:407:2: note: in expansion of macro 'iterate_and_advance'
iterate_and_advance(i, bytes, v,
^
>> lib/iov_iter.c:71:2: error: 'else' without a previous 'if'
else \
^
lib/iov_iter.c:97:3: note: in expansion of macro 'iterate_bvec'
iterate_bvec(i, n, v, bvec, skip, (B)) \
^
lib/iov_iter.c:407:2: note: in expansion of macro 'iterate_and_advance'
iterate_and_advance(i, bytes, v,
^
>> lib/iov_iter.c:61:25: warning: unused variable '__start' [-Wunused-variable]
struct bvec_iter __bi, __start; \
^
lib/iov_iter.c:97:3: note: in expansion of macro 'iterate_bvec'
iterate_bvec(i, n, v, bvec, skip, (B)) \
^
lib/iov_iter.c:407:2: note: in expansion of macro 'iterate_and_advance'
iterate_and_advance(i, bytes, v,
^
>> lib/iov_iter.c:61:19: warning: unused variable '__bi' [-Wunused-variable]
struct bvec_iter __bi, __start; \
^
lib/iov_iter.c:97:3: note: in expansion of macro 'iterate_bvec'
iterate_bvec(i, n, v, bvec, skip, (B)) \
^
lib/iov_iter.c:407:2: note: in expansion of macro 'iterate_and_advance'
iterate_and_advance(i, bytes, v,
^
lib/iov_iter.c: In function 'copy_from_iter_nocache':
>> lib/iov_iter.c:61:19: error: storage size of '__bi' isn't known
struct bvec_iter __bi, __start; \
^
lib/iov_iter.c:97:3: note: in expansion of macro 'iterate_bvec'
iterate_bvec(i, n, v, bvec, skip, (B)) \
^
lib/iov_iter.c:428:2: note: in expansion of macro 'iterate_and_advance'
iterate_and_advance(i, bytes, v,
^
>> lib/iov_iter.c:61:25: error: storage size of '__start' isn't known
struct bvec_iter __bi, __start; \
^
lib/iov_iter.c:97:3: note: in expansion of macro 'iterate_bvec'
iterate_bvec(i, n, v, bvec, skip, (B)) \
^
lib/iov_iter.c:428:2: note: in expansion of macro 'iterate_and_advance'
iterate_and_advance(i, bytes, v,
^
>> lib/iov_iter.c:66:41: error: expected ';' before '{' token
for_each_bvec(__v, __p, __bi, __start) { \
^
lib/iov_iter.c:97:3: note: in expansion of macro 'iterate_bvec'
iterate_bvec(i, n, v, bvec, skip, (B)) \
^
lib/iov_iter.c:428:2: note: in expansion of macro 'iterate_and_advance'
iterate_and_advance(i, bytes, v,
^
>> lib/iov_iter.c:71:2: error: 'else' without a previous 'if'
else \
^
lib/iov_iter.c:97:3: note: in expansion of macro 'iterate_bvec'
iterate_bvec(i, n, v, bvec, skip, (B)) \
^
lib/iov_iter.c:428:2: note: in expansion of macro 'iterate_and_advance'
iterate_and_advance(i, bytes, v,
^
>> lib/iov_iter.c:61:25: warning: unused variable '__start' [-Wunused-variable]
struct bvec_iter __bi, __start; \
^
lib/iov_iter.c:97:3: note: in expansion of macro 'iterate_bvec'
iterate_bvec(i, n, v, bvec, skip, (B)) \
^
lib/iov_iter.c:428:2: note: in expansion of macro 'iterate_and_advance'
iterate_and_advance(i, bytes, v,
^
>> lib/iov_iter.c:61:19: warning: unused variable '__bi' [-Wunused-variable]
struct bvec_iter __bi, __start; \
^
lib/iov_iter.c:97:3: note: in expansion of macro 'iterate_bvec'
iterate_bvec(i, n, v, bvec, skip, (B)) \
^
lib/iov_iter.c:428:2: note: in expansion of macro 'iterate_and_advance'
iterate_and_advance(i, bytes, v,
^
lib/iov_iter.c: In function 'iov_iter_zero':
>> lib/iov_iter.c:61:19: error: storage size of '__bi' isn't known
struct bvec_iter __bi, __start; \
^
lib/iov_iter.c:97:3: note: in expansion of macro 'iterate_bvec'
iterate_bvec(i, n, v, bvec, skip, (B)) \
^
lib/iov_iter.c:474:2: note: in expansion of macro 'iterate_and_advance'
iterate_and_advance(i, bytes, v,
^
vim +61 lib/iov_iter.c
55 n -= __v.iov_len; \
56 } \
57 n = wanted; \
58 }
59
60 #define iterate_bvec(i, n, __v, __p, skip, STEP) { \
> 61 struct bvec_iter __bi, __start; \
62 __start.bi_size = n; \
63 __start.bi_bvec_done = skip; \
64 __start.bi_idx = 0; \
65 __p = i->bvec; \
> 66 for_each_bvec(__v, __p, __bi, __start) { \
67 (void)(STEP); \
68 } \
69 if (!__bi.bi_idx) \
70 skip += __v.bv_len; \
> 71 else \
72 skip = __v.bv_len; \
73 }
74
75 #define iterate_all_kinds(i, n, v, I, B, K) { \
76 size_t skip = i->iov_offset; \
77 if (unlikely(i->type & ITER_BVEC)) { \
78 const struct bio_vec *bvec; \
79 struct bio_vec v; \
> 80 iterate_bvec(i, n, v, bvec, skip, (B)) \
81 } else if (unlikely(i->type & ITER_KVEC)) { \
82 const struct kvec *kvec; \
83 struct kvec v; \
---
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: 17963 bytes --]
next prev parent reply other threads:[~2015-10-10 15:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-10 15:20 [PATCH 0/2] " Ming Lei
2015-10-10 15:20 ` [PATCH 1/2] block: mark 1st parameter of bvec_iter_advance as const Ming Lei
2015-10-10 15:20 ` [PATCH 2/2] iov_iter: use bvec iterator to implement iterate_bvec() Ming Lei
2015-10-10 15:33 ` kbuild test robot [this message]
2015-10-10 15:48 ` Ming Lei
2015-10-10 15:34 ` kbuild test robot
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=201510102312.K3PUd3Bk%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=axboe@kernel.dk \
--cc=hch@infradead.org \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tom.leiming@gmail.com \
--cc=viro@zeniv.linux.org.uk \
/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
all inboxes | Powered by JetHome®