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)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 28 Feb 2016 01:55:13 +0000 (03:55 +0200)
commitc912c83c542e8490123ab61e01185afbb12ef18e
treef5a6abe6f3fd0fab12c1c55bc372dabc7c7244a0
parent75faafd41c3c6312b7df51ce8cda5ba84495a8f1
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