Skip to contentSkip to conversation

misc: nsm: remove selecting the non-existing config CBOR

PATCH In review Lukas Bulwahn 2 participants 2 messages Dec 11, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 misc: nsm: remove selecting the non-existing config CBOR

Commit b9873755a6c8 ("misc: Add Nitro Secure Module driver") adds Nitro Security Module support, which selects the non-existing config CBOR.

In the development of the commit, there was initially some code for CBOR independent of the driver, and the driver included this code with the line 'select CBOR'. This code for CBOR was later reduced to its bare minimum of functionality and included into the driver itself. The select CBOR remained unnoticed and was left behind without having any further purpose.

Remove selecting the non-existing config CBOR.

---
 drivers/misc/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/misc/Kconfig +0 -1
index 8932b6cf9595..4fb291f0bf7c 100644
@@ -566,7 +566,6 @@ config NSM
 	tristate "Nitro (Enclaves) Security Module support"
 	depends on VIRTIO
 	select HW_RANDOM
-	select CBOR
 	help
 	  This driver provides support for the Nitro Security Module
 	  in AWS EC2 Nitro based Enclaves. The driver exposes a /dev/nsm
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Lukas Bulwahn

Commit b9873755a6c8 ("misc: Add Nitro Secure Module driver") adds Nitro Security Module support, which selects the non-existing config CBOR.

In the development of the commit, there was initially some code for CBOR independent of the driver, and the driver included this code with the line 'select CBOR'. This code for CBOR was later reduced to its bare minimum of functionality and included into the driver itself. The select CBOR remained unnoticed and was left behind without having any further purpose.

Quoted 3 lines

Remove selecting the non-existing config CBOR.

Yikes. Thanks for the catch!

Alex

Quoted 17 lines
---
  drivers/misc/Kconfig | 1 -
  1 file changed, 1 deletion(-)
drivers/misc/Kconfig +0 -2
index 8932b6cf9595..4fb291f0bf7c 100644
@@ -566,7 +566,6 @@ config NSM
         tristate "Nitro (Enclaves) Security Module support"
         depends on VIRTIO
         select HW_RANDOM
-       select CBOR
         help
           This driver provides support for the Nitro Security Module
           in AWS EC2 Nitro based Enclaves. The driver exposes a /dev/nsm
--
Quoted 2 lines

2.17.1

Amazon Development Center Germany GmbH
Krausenstr. 38
10117 Berlin
Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B
Sitz: Berlin
Ust-ID: DE 289 237 879