aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangyun Kim <[email protected]>2024-04-17 12:50:43 +0900
committerDave Jiang <[email protected]>2024-04-30 10:44:45 -0700
commit0e081a0ec04df58ac9caec1916ae6d9d048d50a7 (patch)
tree5b655c3ee470155846aba44af188252314f75656
parent6ef37af6f465127d7a81d7d2efa228f91d725bf8 (diff)
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]>
-rw-r--r--include/linux/cxl-event.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/cxl-event.h b/include/linux/cxl-event.h
index 03fa6d50d46f..812ed16ffc2f 100644
--- a/include/linux/cxl-event.h
+++ b/include/linux/cxl-event.h
@@ -3,6 +3,9 @@
#ifndef _LINUX_CXL_EVENT_H
#define _LINUX_CXL_EVENT_H
+#include <linux/types.h>
+#include <linux/uuid.h>
+
/*
* Common Event Record Format
* CXL rev 3.0 section 8.2.9.2.1; Table 8-42