]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dax: Fix compilation for CONFIG_DAX && !CONFIG_FS_DAX
authorJan Kara <jack@suse.cz>
Mon, 21 Sep 2020 09:33:23 +0000 (11:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Sep 2020 11:00:03 +0000 (13:00 +0200)
commite37b4e9e1fc984cc39a9199b5c844f67642a3379
tree04297132bae18eaee58e8ffc073aa23917303911
parent19f02438a81bdf8c0599cf2af1310aeae58a2152
dax: Fix compilation for CONFIG_DAX && !CONFIG_FS_DAX

commit 88b67edd7247466bc47f01e1dc539b0d0d4b931e upstream.

dax_supported() is defined whenever CONFIG_DAX is enabled. So dummy
implementation should be defined only in !CONFIG_DAX case, not in
!CONFIG_FS_DAX case.

Fixes: e2ec51282545 ("dm: Call proper helper to determine dax support")
Cc: <stable@vger.kernel.org>
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/dax.h