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.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -19,6 +19,10 @@ · 18 unmodified lines | |||
| 19 | #define CXL_MEM_QUERY_COMMANDS _IOR(0xCE, 1, struct cxl_mem_query_commands) | 19 | #define CXL_MEM_QUERY_COMMANDS _IOR(0xCE, 1, struct cxl_mem_query_commands) |
| 20 | #define CXL_MEM_SEND_COMMAND _IOWR(0xCE, 2, struct cxl_send_command) | 20 | #define CXL_MEM_SEND_COMMAND _IOWR(0xCE, 2, struct cxl_send_command) |
| 21 | 21 | ||
| 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 | */ | ||
| 22 | #define CXL_CMDS \ | 26 | #define CXL_CMDS \ |
| 23 | ___C(INVALID, "Invalid Command"), \ | 27 | ___C(INVALID, "Invalid Command"), \ |
| 24 | ___C(IDENTIFY, "Identify Command"), \ | 28 | ___C(IDENTIFY, "Identify Command"), \ |