Skip to content

Commit

Permalink
ocxl: do not use C++ style comments in uapi header
Browse files Browse the repository at this point in the history
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 <yamada.masahiro@socionext.com>
Acked-by: Frederic Barrat <fbarrat@linux.ibm.com>
Acked-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
  • Loading branch information
masahir0y authored and mpe committed Jun 14, 2019
1 parent a3bf9fb commit 2305ff2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions include/uapi/misc/ocxl.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,23 @@ struct ocxl_ioctl_attach {
};

struct ocxl_ioctl_metadata {
__u16 version; // struct version, always backwards compatible
__u16 version; /* struct version, always backwards compatible */

// Version 0 fields
/* Version 0 fields */
__u8 afu_version_major;
__u8 afu_version_minor;
__u32 pasid; // PASID assigned to the current context
__u32 pasid; /* PASID assigned to the current context */

__u64 pp_mmio_size; // Per PASID MMIO size
__u64 pp_mmio_size; /* Per PASID MMIO size */
__u64 global_mmio_size;

// End version 0 fields
/* End version 0 fields */

__u64 reserved[13]; // Total of 16*u64
__u64 reserved[13]; /* Total of 16*u64 */
};

struct ocxl_ioctl_p9_wait {
__u16 thread_id; // The thread ID required to wake this thread
__u16 thread_id; /* The thread ID required to wake this thread */
__u16 reserved1;
__u32 reserved2;
__u64 reserved3[3];
Expand Down

0 comments on commit 2305ff2

Please sign in to comment.