From: Dave Kleikamp <dave.kleikamp@oracle.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [shaggy:loop_v3 16/22] drivers/block/loop.c:239:2: error: implicit declaration of function 'aio_
Date: Thu, 18 Oct 2012 19:32:14 +0000 [thread overview]
Message-ID: <5080593E.4060707@oracle.com> (raw)
In-Reply-To: <20121017154411.GA21995@yliu-dev.sh.intel.com>
On 10/17/2012 10:19 PM, Yuanhan Liu wrote:
> Hi Zach,
>
> FYI, kernel build failed on
>
> tree: git://github.com/kleikamp/linux-shaggy loop_v3
> head: b8ee8b4bb91520b2c4a1f567977a737e9e71c449
> commit: 9a9b1c625a5b11d9b90c0ee664eacde0aea6afeb [16/22] loop: use aio to perform io on the underlying file
> config: x86_64-randconfig-x269 (attached as .config)
>
> All error/warnings:
>
> drivers/block/loop.c: In function 'lo_rw_aio':
> drivers/block/loop.c:239:2: error: implicit declaration of function 'aio_kernel_alloc' [-Werror=implicit-function-declaration]
> drivers/block/loop.c:239:7: warning: assignment makes pointer from integer without a cast [enabled by default]
> drivers/block/loop.c:251:2: error: implicit declaration of function 'aio_kernel_init_iter' [-Werror=implicit-function-declaration]
> drivers/block/loop.c:252:2: error: implicit declaration of function 'aio_kernel_init_callback' [-Werror=implicit-function-declaration]
> drivers/block/loop.c:254:2: error: implicit declaration of function 'aio_kernel_submit' [-Werror=implicit-function-declaration]
> cc1: some warnings being treated as errors
I didn't even realize CONFIG_AIO existed and could be undefined. It's
easy enough to put ifdef's around the new code.
Thanks,
Shaggy
> vim +239 drivers/block/loop.c
>
> 9a9b1c62 From: Zach Brown 2012-10-15 233 unsigned short op;
> 9a9b1c62 From: Zach Brown 2012-10-15 234 struct iov_iter iter;
> 9a9b1c62 From: Zach Brown 2012-10-15 235 struct bio_vec *bvec;
> 9a9b1c62 From: Zach Brown 2012-10-15 236 size_t nr_segs;
> 9a9b1c62 From: Zach Brown 2012-10-15 237 loff_t pos = ((loff_t) bio->bi_sector << 9) + lo->lo_offset;
> 9a9b1c62 From: Zach Brown 2012-10-15 238
> 9a9b1c62 From: Zach Brown 2012-10-15 @239 iocb = aio_kernel_alloc(GFP_NOIO);
> 9a9b1c62 From: Zach Brown 2012-10-15 240 if (!iocb)
> 9a9b1c62 From: Zach Brown 2012-10-15 241 return -ENOMEM;
> 9a9b1c62 From: Zach Brown 2012-10-15 242
>
> ---
> 0-DAY kernel build testing backend Open Source Technology Center
> Fengguang Wu, Yuanhan Liu Intel Corporation
>
prev parent reply other threads:[~2012-10-18 19:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-17 15:44 [shaggy:loop_v3 16/22] drivers/block/loop.c:219:20: warning: cast to pointer from integer of differe Yuanhan Liu
2012-10-17 16:29 ` [shaggy:loop_v3 16/22] drivers/block/loop.c:219:20: warning: cast to pointer from integer of dif Dave Kleikamp
2012-10-17 17:52 ` Zach Brown
2012-10-18 2:18 ` Yuanhan Liu
2012-10-18 2:40 ` Asias He
2012-10-18 2:52 ` Fengguang Wu
2012-10-18 2:59 ` Asias He
2012-10-18 3:10 ` [shaggy:loop_v3 16/22] drivers/block/loop.c:217:6: sparse: symbol 'lo_rw_aio_complete' was not decla Yuanhan Liu
2012-10-18 3:19 ` [shaggy:loop_v3 16/22] drivers/block/loop.c:239:2: error: implicit declaration of function 'aio_kern Yuanhan Liu
2012-10-18 19:32 ` Dave Kleikamp [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=5080593E.4060707@oracle.com \
--to=dave.kleikamp@oracle.com \
--cc=kernel-janitors@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.