]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
VMCI: remove unused ioctl definitions
authorAlyssa Ross <hi@alyssa.is>
Thu, 19 Dec 2024 23:29:57 +0000 (00:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jan 2025 12:18:10 +0000 (13:18 +0100)
IOCTL_VMCI_SOCKETS_VERSION and IOCTL_VMCI_SOCKETS_GET_AF_VALUE were
never implemented, because VSOCK ended up being implemented as a
generic mechanism with a static AF value.  Likewise,
IOCTL_VMCI_SOCKETS_GET_LOCAL_CID ended up being implemented as
IOCTL_VM_SOCKETS_GET_LOCAL_CID.

This isn't a UAPI header, so it should be fine to remove the unused
values.  I've left a comment noting IOCTL_VM_SOCKETS_GET_LOCAL_CID is
in the VMCI range to avoid unintentional reuse.

Signed-off-by: Alyssa Ross <hi@alyssa.is>
Acked-by: Vishnu Dasa <vishnu.dasa@broadcom.com>
Link: https://lore.kernel.org/r/fzdcrz4yfedokmbm22h2iwsluix4jwejwaltuwcdr6kz3yu6eu@nue5xc6ayevo
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/vmw_vmci_defs.h

index 6fb663b36f722f6832eeeefc86ab5620e2866c15..c2df9469659368f4ece09e55d4dfc379bc86762b 100644 (file)
@@ -453,9 +453,7 @@ enum {
 #define IOCTL_VMCI_CTX_GET_CPT_STATE           _IO(7, 0xb1)
 #define IOCTL_VMCI_CTX_SET_CPT_STATE           _IO(7, 0xb2)
 #define IOCTL_VMCI_GET_CONTEXT_ID              _IO(7, 0xb3)
-#define IOCTL_VMCI_SOCKETS_VERSION             _IO(7, 0xb4)
-#define IOCTL_VMCI_SOCKETS_GET_AF_VALUE                _IO(7, 0xb8)
-#define IOCTL_VMCI_SOCKETS_GET_LOCAL_CID       _IO(7, 0xb9)
+/*IOCTL_VM_SOCKETS_GET_LOCAL_CID               _IO(7, 0xb9)*/
 #define IOCTL_VMCI_SET_NOTIFY                  _IO(7, 0xcb)    /* 1995 */
 /*IOCTL_VMMON_START                            _IO(7, 0xd1)*/  /* 2001 */