nvme: rework NVME_AUTH Kconfig selection
authorHannes Reinecke <hare@suse.de>
Thu, 12 Oct 2023 12:22:48 +0000 (14:22 +0200)
committerKeith Busch <kbusch@kernel.org>
Thu, 12 Oct 2023 15:04:49 +0000 (08:04 -0700)
commitd680063482885c15d68e958212c3d6ad40a510dd
tree781ff707b7f2ba5d59f396276bab1ae410d786cd
parent70525e5d82f62407d8436aa2a6c3385829ab5a3e
nvme: rework NVME_AUTH Kconfig selection

Having a single Kconfig symbol NVME_AUTH conflates the selection
of the authentication functions from nvme/common and nvme/host,
causing kbuild robot to complain when building the nvme target
only. So introduce a Kconfig symbol NVME_HOST_AUTH for the nvme
host bits and use NVME_AUTH for the common functions only.
And move the CRYPTO selection into nvme/common to make it
easier to read.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202310120733.TlPOVeJm-lkp@intel.com/
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/common/Kconfig
drivers/nvme/host/Kconfig
drivers/nvme/host/Makefile
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/host/sysfs.c
drivers/nvme/target/Kconfig