Skip to contentSkip to conversation

misc: ntsync: mark driver as "broken" to prevent from building

PATCH In review Greg Kroah-Hartman 2 participants 3 messages May 14, 2024 – May 15, 2024 Char and misc drivers

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

PATCH 1/1 misc: ntsync: mark driver as "broken" to prevent from building

The ntsync code is only partially enabled in the kernel at this point in time, creating the device node and that's about it. Don't confuse systems that expect to see a working ntsync interface by teasing it with this basic structure at this point in time, so mark the code as "broken" so that it is not built and enabled just yet.

Once the rest of the code is accepted, this will be reverted so that the driver can be correctly built and used, but for now, this is the safest way forward.

---
 drivers/misc/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/misc/Kconfig +1 -0
index 2907b5c23368..faf983680040 100644
@@ -507,6 +507,7 @@ config OPEN_DICE
 
 config NTSYNC
 	tristate "NT synchronization primitive emulation"
+	depends on BROKEN
 	help
 	  This module provides kernel support for emulation of Windows NT
 	  synchronization primitives. It is not a hardware driver.
Signature · 1 line
2.45.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · CDT Greg Kroah-Hartman

The ntsync code is only partially enabled in the kernel at this point in time, creating the device node and that's about it. Don't confuse systems that expect to see a working ntsync interface by teasing it with this basic structure at this point in time, so mark the code as "broken" so that it is not built and enabled just yet.

Once the rest of the code is accepted, this will be reverted so that the driver can be correctly built and used, but for now, this is the safest way forward.

--

I was even thinking of suggesting something like this myself. Sorry for taking so long to get the rest of the patches into acceptable shape...

author maintainer
#2 lore raw
Quoted 11 lines · Elizabeth Figura
Quoted 9 lines · CDT Greg Kroah-Hartman

The ntsync code is only partially enabled in the kernel at this point in time, creating the device node and that's about it. Don't confuse systems that expect to see a working ntsync interface by teasing it with this basic structure at this point in time, so mark the code as "broken" so that it is not built and enabled just yet.

Once the rest of the code is accepted, this will be reverted so that the driver can be correctly built and used, but for now, this is the safest way forward.

Quoted 6 lines

--

I was even thinking of suggesting something like this myself. Sorry for taking so long to get the rest of the patches into acceptable shape...

No worries at all, I'll go queue this up today. Thanks for the review!

greg k-h