Skip to content

Commit cf59e38

Browse files
committed
ioctl: always define the passthru data structs
These data structs are libnvme APIs and just match the Linux APIs. libnvme should not expose directly the Linux data structs. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 5d0350a commit cf59e38

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

libnvme/src/nvme/ioctl.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@
1919

2020
#include <nvme/types.h>
2121

22-
/*
23-
* We can not always count on the kernel UAPI being installed. Use the same
24-
* 'ifdef' guard to avoid double definitions just in case.
25-
*/
26-
#ifndef _UAPI_LINUX_NVME_IOCTL_H
27-
#define _UAPI_LINUX_NVME_IOCTL_H
28-
29-
#ifndef _LINUX_NVME_IOCTL_H
30-
#define _LINUX_NVME_IOCTL_H
31-
3222
/**
3323
* DOC: ioctl.h
3424
*
@@ -135,10 +125,6 @@ struct nvme_uring_cmd {
135125
__u32 rsvd2;
136126
};
137127

138-
#endif /* _UAPI_LINUX_NVME_IOCTL_H */
139-
140-
#endif /* _LINUX_NVME_IOCTL_H */
141-
142128
enum nvme_cmd_dword_fields {
143129
NVME_DEVICE_SELF_TEST_CDW10_STC_SHIFT = 0,
144130
NVME_DEVICE_SELF_TEST_CDW10_STC_MASK = 0xf,

0 commit comments

Comments
 (0)