]> git.baikalelectronics.ru Git - kernel.git/commit
block, dax: use correct format string in bdev_dax_supported
authorArnd Bergmann <arnd@arndb.de>
Thu, 27 Apr 2017 14:30:41 +0000 (16:30 +0200)
committerDan Williams <dan.j.williams@intel.com>
Mon, 1 May 2017 20:16:29 +0000 (13:16 -0700)
commit925905524f8786e8fa6e6898807a9a8db9699c56
tree46f67f6537d099db31c35a660713e86d816f8c8c
parent0168e643eb4189b26d1123062495242c8d9d0ad6
block, dax: use correct format string in bdev_dax_supported

The new message has an incorrect format string, causing a warning in some
configurations:

fs/block_dev.c: In function 'bdev_dax_supported':
fs/block_dev.c:779:5: error: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Werror=format=]
     "error: dax access failed (%d)", len);

This changes it to use the correct %ld instead of %d.

Fixes: df156468bff9 ("block, dax: convert bdev_dax_supported() to dax_direct_access()")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
fs/block_dev.c