From: Andrew Morton <akpm@linux-foundation.org>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Christoph Hellwig <hch@lst.de>,
LKML <linux-kernel@vger.kernel.org>, Neil Brown <neilb@suse.de>,
Jens Axboe <axboe@kernel.dk>
Subject: Re: [PATCH] bio: use a static inline function for bio_integrity_clone
Date: Thu, 6 Oct 2011 16:22:19 -0700 [thread overview]
Message-ID: <20111006162219.b629eabb.akpm@linux-foundation.org> (raw)
In-Reply-To: <20110826120900.cdc6e4c3597c88ad45015a9b@canb.auug.org.au>
On Fri, 26 Aug 2011 12:09:00 +1000
Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> When CONFIG_BLK_DEV_INTEGRITY is not set, we get these warnings:
>
> drivers/md/dm.c: In function 'split_bvec':
> drivers/md/dm.c:1061:3: warning: statement with no effect
> drivers/md/dm.c: In function 'clone_bio':
> drivers/md/dm.c:1088:3: warning: statement with no effect
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
> include/linux/bio.h | 6 +++++-
> 1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/include/linux/bio.h b/include/linux/bio.h
> index ce33e68..c98ecc8 100644
> --- a/include/linux/bio.h
> +++ b/include/linux/bio.h
> @@ -527,7 +527,11 @@ extern void bio_integrity_init(void);
> #define bioset_integrity_create(a, b) (0)
> #define bio_integrity_prep(a) (0)
> #define bio_integrity_enabled(a) (0)
> -#define bio_integrity_clone(a, b, c, d) (0)
> +static inline int bio_integrity_clone(struct bio *bio, struct bio *bio_src,
> + gfp_t gfp_mask, struct bio_set *bs)
> +{
> + return 0;
> +}
> #define bioset_integrity_free(a) do { } while (0)
> #define bio_integrity_free(a, b) do { } while (0)
> #define bio_integrity_endio(a, b) do { } while (0)
grumble@lazybones. All those other vile macros should be similarly
converted, for this reason and for all the others.
Am too lazy to do it myself, so let's at least fix this warning until
some others turn up.
next prev parent reply other threads:[~2011-10-06 23:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-26 2:09 [PATCH] bio: use a static inline function for bio_integrity_clone Stephen Rothwell
2011-08-30 15:05 ` Américo Wang
2011-10-06 23:22 ` Andrew Morton [this message]
2011-10-07 0:45 ` Stephen Rothwell
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=20111006162219.b629eabb.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=axboe@kernel.dk \
--cc=geert@linux-m68k.org \
--cc=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=neilb@suse.de \
--cc=sfr@canb.auug.org.au \
/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