]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 9 Nov 2020 13:47:00 +0000 (14:47 +0100)
commite6cdcaeea1fac6942903ce83206ad55745cc6ea5
treea4117d849aa05157d9d03876f930f7b38f878fe4
parent675f13c05fb7d620993deda3058e5b2239413398
dax: Fix compilation for CONFIG_DAX && !CONFIG_FS_DAX

BugLink: https://bugs.launchpad.net/bugs/1896828
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: William Breathitt Gray <william.gray@canonical.com>
include/linux/dax.h