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)
committerDan Williams <dan.j.williams@intel.com>
Mon, 21 Sep 2020 13:53:09 +0000 (06:53 -0700)
commit88b67edd7247466bc47f01e1dc539b0d0d4b931e
treeccbb9aaef702fa321660c774b35494ae96d5b669
parentba4f184e126b751d1bffad5897f263108befc780
dax: Fix compilation for CONFIG_DAX && !CONFIG_FS_DAX

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>
include/linux/dax.h