Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

RAS: Use consistent types for UUIDs

The commit

297b64c74385 ("ras: acpi / apei: generate trace event for unrecognized CPER section")

brought inconsistency in UUID types which are used across the RAS
subsystem.

Fix this by using guid_t everywhere.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
Cc: "Steven Rostedt (VMware)" <rostedt@goodmis.org>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Thomas Tai <thomas.tai@oracle.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Tyler Baicar <tbaicar@codeaurora.org>
Link: https://lkml.kernel.org/r/20190125143035.81589-1-andriy.shevchenko@linux.intel.com

authored by

Andy Shevchenko and committed by
Borislav Petkov
9359a8cb 30aa3d26

+5 -5
+1 -1
drivers/ras/ras.c
··· 14 14 #define TRACE_INCLUDE_PATH ../../include/ras 15 15 #include <ras/ras_event.h> 16 16 17 - void log_non_standard_event(const uuid_le *sec_type, const uuid_le *fru_id, 17 + void log_non_standard_event(const guid_t *sec_type, const guid_t *fru_id, 18 18 const char *fru_text, const u8 sev, const u8 *err, 19 19 const u32 len) 20 20 {
+4 -4
include/ras/ras_event.h
··· 27 27 TRACE_EVENT(extlog_mem_event, 28 28 TP_PROTO(struct cper_sec_mem_err *mem, 29 29 u32 err_seq, 30 - const uuid_le *fru_id, 30 + const guid_t *fru_id, 31 31 const char *fru_text, 32 32 u8 sev), 33 33 ··· 39 39 __field(u8, sev) 40 40 __field(u64, pa) 41 41 __field(u8, pa_mask_lsb) 42 - __field_struct(uuid_le, fru_id) 42 + __field_struct(guid_t, fru_id) 43 43 __string(fru_text, fru_text) 44 44 __field_struct(struct cper_mem_err_compact, data) 45 45 ), ··· 218 218 */ 219 219 TRACE_EVENT(non_standard_event, 220 220 221 - TP_PROTO(const uuid_le *sec_type, 222 - const uuid_le *fru_id, 221 + TP_PROTO(const guid_t *sec_type, 222 + const guid_t *fru_id, 223 223 const char *fru_text, 224 224 const u8 sev, 225 225 const u8 *err,