History

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.

Ira Weiny committed 3 years ago

Commit 11ef0261 parent 860334e1 file · +4 −0Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/cxl_mem.h+4−0
@@ -19,6 +19,10 @@ · 18 unmodified lines
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"), \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t