diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-09-08 15:53:28 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-10-07 16:46:00 -0700 |
commit | bc0a0fe94f33dd15edf2ed555bfc4d6dbb5e1995 (patch) | |
tree | aa3eb59e99e9c566ec07936c46e5405fa6f7a4d6 /mm/memory-failure.c | |
parent | d76911ee933a64c9dfc453e580e7ad612b394e83 (diff) |
dax: use correct dev_t value
The dev_t variable in devm_create_dax_dev() is used before it's
first set:
drivers/dax/dax.c: In function 'devm_create_dax_dev':
drivers/dax/dax.c:205:39: error: 'dev_t' may be used uninitialized in this function [-Werror=maybe-uninitialized]
inode = iget5_locked(dax_superblock, hash_32(devt + DAXFS_MAGIC, 31),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/dax/dax.c:688:8: note: 'dev_t' was declared here
This reorders the code to how it looks correct to me.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 3bc52c45bac2 ("dax: define a unified inode/address_space for device-dax mappings")
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'mm/memory-failure.c')
0 files changed, 0 insertions, 0 deletions