Skip to content

Commit 2305ff2

Browse files
masahir0ympe
authored andcommitted
ocxl: do not use C++ style comments in uapi header
Linux kernel tolerates C++ style comments these days. Actually, the SPDX License tags for .c files start with //. On the other hand, uapi headers are written in more strict C, where the C++ comment style is forbidden. Signed-off-by: Masahiro Yamada <[email protected]> Acked-by: Frederic Barrat <[email protected]> Acked-by: Andrew Donnellan <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent a3bf9fb commit 2305ff2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

include/uapi/misc/ocxl.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,23 @@ struct ocxl_ioctl_attach {
3333
};
3434

3535
struct ocxl_ioctl_metadata {
36-
__u16 version; // struct version, always backwards compatible
36+
__u16 version; /* struct version, always backwards compatible */
3737

38-
// Version 0 fields
38+
/* Version 0 fields */
3939
__u8 afu_version_major;
4040
__u8 afu_version_minor;
41-
__u32 pasid; // PASID assigned to the current context
41+
__u32 pasid; /* PASID assigned to the current context */
4242

43-
__u64 pp_mmio_size; // Per PASID MMIO size
43+
__u64 pp_mmio_size; /* Per PASID MMIO size */
4444
__u64 global_mmio_size;
4545

46-
// End version 0 fields
46+
/* End version 0 fields */
4747

48-
__u64 reserved[13]; // Total of 16*u64
48+
__u64 reserved[13]; /* Total of 16*u64 */
4949
};
5050

5151
struct ocxl_ioctl_p9_wait {
52-
__u16 thread_id; // The thread ID required to wake this thread
52+
__u16 thread_id; /* The thread ID required to wake this thread */
5353
__u16 reserved1;
5454
__u32 reserved2;
5555
__u64 reserved3[3];

0 commit comments

Comments
 (0)