diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-11-22 23:47:17 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-11-22 18:40:14 -0700 |
commit | d78abcbabe7e98bb4baa4dea87550806944790ed (patch) | |
tree | 97b528e362cfd465fb882a491e81e380aaf633ef /drivers/pci/controller/dwc/pci-layerscape.c | |
parent | 55072cd7ce36d6e3af949608bcb0e734d5a4b0c2 (diff) |
nvme: target: fix nvme_keyring_id() references
In configurations without CONFIG_NVME_TARGET_TCP_TLS, the keyring
code might not be available, or using it will result in a runtime
failure:
x86_64-linux-ld: vmlinux.o: in function `nvmet_ports_make':
configfs.c:(.text+0x100a211): undefined reference to `nvme_keyring_id'
Add a check to ensure we only check the keyring if there is a chance
of it being used, which avoids both the runtime and link-time
problems.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20231122224719.4042108-2-arnd@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-layerscape.c')
0 files changed, 0 insertions, 0 deletions