]> git.baikalelectronics.ru Git - kernel.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)
committerDan Williams <dan.j.williams@intel.com>
Mon, 21 Sep 2020 13:53:09 +0000 (06:53 -0700)
commit5af5a9ab83ccde7923e4f5e82855563b3d99b07a
treeccbb9aaef702fa321660c774b35494ae96d5b669
parentb0e5781a19ed88b82bc3a52fa6c2d0dacc709a66
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: b7222edc3ff9 ("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