Skip to content

Commit 0e081a0

Browse files
sangyun0110davejiang
authored andcommitted
cxl/cxl-event: include missing <linux/types.h> and <linux/uuid.h>
The linux/cxl-event.h header file uses the u8, u16, and uuid_t types, but it doesn't include the necessary header files, <linux/types.h> and <linux/uuid.h>. Currently, cxl-event.h is only used by drivers/cxl/cxlmem.h, and it doesn't cause any errors because cxlmem.h indirectly includes the required types. However, cxl-event.h may be used by other CXL-related code in the future, so it's important to fix this issue by including the missing header files directly in cxl-event.h. Signed-off-by: Sangyun Kim <[email protected]> Reviewed-by: Ira Weiny <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dave Jiang <[email protected]>
1 parent 6ef37af commit 0e081a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/linux/cxl-event.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
#ifndef _LINUX_CXL_EVENT_H
44
#define _LINUX_CXL_EVENT_H
55

6+
#include <linux/types.h>
7+
#include <linux/uuid.h>
8+
69
/*
710
* Common Event Record Format
811
* CXL rev 3.0 section 8.2.9.2.1; Table 8-42

0 commit comments

Comments
 (0)