Skip to content

Commit 11ef026

Browse files
weiny2djbw
authored andcommitted
cxl/uapi: Add warning on CXL command enum
The CXL command enum is exported to user space and must maintain backwards compatibility. Add comment that new defines must be added to the end of the list. Suggested-by: Dan Williams <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Reviewed-by: Dave Jiang <[email protected]> Signed-off-by: Ira Weiny <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dan Williams <[email protected]>
1 parent 860334e commit 11ef026

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/uapi/linux/cxl_mem.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
#define CXL_MEM_QUERY_COMMANDS _IOR(0xCE, 1, struct cxl_mem_query_commands)
2020
#define CXL_MEM_SEND_COMMAND _IOWR(0xCE, 2, struct cxl_send_command)
2121

22+
/*
23+
* NOTE: New defines must be added to the end of the list to preserve
24+
* compatibility because this enum is exported to user space.
25+
*/
2226
#define CXL_CMDS \
2327
___C(INVALID, "Invalid Command"), \
2428
___C(IDENTIFY, "Identify Command"), \

0 commit comments

Comments
 (0)