[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100731190757.GC9734@agk-dp.fab.redhat.com>
Date: Sat, 31 Jul 2010 20:07:57 +0100
From: Alasdair G Kergon <agk@...hat.com>
To: "Justin P. Mattock" <justinmattock@...il.com>
Cc: dm-devel@...hat.com, neilb@...e.de, agk@...hat.com,
linux-raid@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH]md:dm.c Fix warning: statement with no effect
On Sat, Jul 31, 2010 at 12:05:04PM -0700, Justin P. Mattock wrote:
> haven't heard any feedback on this any ideas?
>> Ive noticed that having CONFIG_BLK_DEV_INTEGRITY=n I get warning messages generated by GCC(below)
>> CC drivers/md/dm.o
>> drivers/md/dm.c: In function 'split_bvec':
>> drivers/md/dm.c:1117:3: warning: statement with no effect
>> drivers/md/dm.c: In function 'clone_bio':
>> drivers/md/dm.c:1145:3: warning: statement with no effect
I'd suggest hiding it inside the .h files and not trying to scatter #ifdefs
throughout the code.
Alasdair
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists