cxl/events: Create a CXL event union
authorIra Weiny <ira.weiny@intel.com>
Thu, 21 Dec 2023 00:17:33 +0000 (16:17 -0800)
committerDan Williams <dan.j.williams@intel.com>
Tue, 9 Jan 2024 23:41:22 +0000 (15:41 -0800)
commitf9c683386f5bc0364615138ce2b14be50848dbcf
tree3679b512d53f842773aa697e1fbaf4ff1d24a65c
parent6eade110754c085cee9e46f4d87d2c3ea4e59e8c
cxl/events: Create a CXL event union

The CXL CPER and event log records share everything but a UUID/GUID in
their structures.

Define a cxl_event union without the UUID/GUID to be shared between the
CPER and event log record formats.  Adjust the code to use this union.

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/20231220-cxl-cper-v5-6-1bb8a4ca2c7a@intel.com
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/mbox.c
drivers/cxl/core/trace.h
include/linux/cxl-event.h
tools/testing/cxl/test/mem.c