mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 23:21:31 +00:00
6affe08aea
When only the keyring module is included but auth is not, modpost
complains about the lack of a module license tag:
ERROR: modpost: missing MODULE_LICENSE() in drivers/nvme/common/nvme-common.o
Address this by making both modules buildable standalone,
removing the now unnecessary CONFIG_NVME_COMMON symbol
in the process.
Also, now that NVME_KEYRING config symbol can be either a module or
built-in, the stubs need to check for '#if IS_ENABLED' rather than a
simple '#ifdef'.
Fixes: 9d77eb5277
("nvme-keyring: register '.nvme' keyring")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
15 lines
254 B
Plaintext
15 lines
254 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
config NVME_KEYRING
|
|
tristate
|
|
select KEYS
|
|
|
|
config NVME_AUTH
|
|
tristate
|
|
select CRYPTO
|
|
select CRYPTO_HMAC
|
|
select CRYPTO_SHA256
|
|
select CRYPTO_SHA512
|
|
select CRYPTO_DH
|
|
select CRYPTO_DH_RFC7919_GROUPS
|