]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
blockdev: convert some macros to static inlines
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 12 Jan 2012 08:17:30 +0000 (09:17 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 12 Jan 2012 08:19:54 +0000 (09:19 +0100)
commitfd83240a60ecc59849420df3393e9e6d35c77683
treed85ae1c6459d5d5c01db1617011db403929578b4
parent0b4156eb27214e81f7012458bb15d1e038db9a00
blockdev: convert some macros to static inlines

We prefer to program in C rather than preprocessor and it fixes this
warning when CONFIG_BLK_DEV_INTEGRITY is not set:

drivers/md/dm-table.c: In function 'dm_table_set_integrity':
drivers/md/dm-table.c:1285:3: warning: statement with no effect [-Wunused-value]

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blkdev.h