aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-09-12 16:27:21 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2017-09-12 16:27:21 -0400
commitae71948f398eb2572148006bf34f0c6d934206cb (patch)
treecdbb8d41a72ae086251a44c26cf24be6854c2e9c /drivers
parent7f85565a3f7194b966de71926471d69788b6b9c3 (diff)
parentc0020756315eebec58310aca42cf9fb73e1322eb (diff)
Merge tag 'uuid-for-4.14' of git://git.infradead.org/users/hch/uuid
Pull uuid updates from Christoph Hellwig: "Just a single conversion to the new UUID API for this merge window" * tag 'uuid-for-4.14' of git://git.infradead.org/users/hch/uuid: efi: switch to use new generic UUID API
Diffstat (limited to 'drivers')
-rw-r--r--drivers/firmware/efi/cper.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/firmware/efi/cper.c b/drivers/firmware/efi/cper.c
index bf3672a81e49..d2fcafcea07e 100644
--- a/drivers/firmware/efi/cper.c
+++ b/drivers/firmware/efi/cper.c
@@ -534,7 +534,7 @@ static void
534cper_estatus_print_section(const char *pfx, struct acpi_hest_generic_data *gdata, 534cper_estatus_print_section(const char *pfx, struct acpi_hest_generic_data *gdata,
535 int sec_no) 535 int sec_no)
536{ 536{
537 uuid_le *sec_type = (uuid_le *)gdata->section_type; 537 guid_t *sec_type = (guid_t *)gdata->section_type;
538 __u16 severity; 538 __u16 severity;
539 char newpfx[64]; 539 char newpfx[64];
540 540
@@ -545,12 +545,12 @@ cper_estatus_print_section(const char *pfx, struct acpi_hest_generic_data *gdata
545 printk("%s""Error %d, type: %s\n", pfx, sec_no, 545 printk("%s""Error %d, type: %s\n", pfx, sec_no,
546 cper_severity_str(severity)); 546 cper_severity_str(severity));
547 if (gdata->validation_bits & CPER_SEC_VALID_FRU_ID) 547 if (gdata->validation_bits & CPER_SEC_VALID_FRU_ID)
548 printk("%s""fru_id: %pUl\n", pfx, (uuid_le *)gdata->fru_id); 548 printk("%s""fru_id: %pUl\n", pfx, gdata->fru_id);
549 if (gdata->validation_bits & CPER_SEC_VALID_FRU_TEXT) 549 if (gdata->validation_bits & CPER_SEC_VALID_FRU_TEXT)
550 printk("%s""fru_text: %.20s\n", pfx, gdata->fru_text); 550 printk("%s""fru_text: %.20s\n", pfx, gdata->fru_text);
551 551
552 snprintf(newpfx, sizeof(newpfx), "%s%s", pfx, INDENT_SP); 552 snprintf(newpfx, sizeof(newpfx), "%s%s", pfx, INDENT_SP);
553 if (!uuid_le_cmp(*sec_type, CPER_SEC_PROC_GENERIC)) { 553 if (guid_equal(sec_type, &CPER_SEC_PROC_GENERIC)) {
554 struct cper_sec_proc_generic *proc_err = acpi_hest_get_payload(gdata); 554 struct cper_sec_proc_generic *proc_err = acpi_hest_get_payload(gdata);
555 555
556 printk("%s""section_type: general processor error\n", newpfx); 556 printk("%s""section_type: general processor error\n", newpfx);
@@ -558,7 +558,7 @@ cper_estatus_print_section(const char *pfx, struct acpi_hest_generic_data *gdata
558 cper_print_proc_generic(newpfx, proc_err); 558 cper_print_proc_generic(newpfx, proc_err);
559 else 559 else
560 goto err_section_too_small; 560 goto err_section_too_small;
561 } else if (!uuid_le_cmp(*sec_type, CPER_SEC_PLATFORM_MEM)) { 561 } else if (guid_equal(sec_type, &CPER_SEC_PLATFORM_MEM)) {
562 struct cper_sec_mem_err *mem_err = acpi_hest_get_payload(gdata); 562 struct cper_sec_mem_err *mem_err = acpi_hest_get_payload(gdata);
563 563
564 printk("%s""section_type: memory error\n", newpfx); 564 printk("%s""section_type: memory error\n", newpfx);
@@ -568,7 +568,7 @@ cper_estatus_print_section(const char *pfx, struct acpi_hest_generic_data *gdata
568 gdata->error_data_length); 568 gdata->error_data_length);
569 else 569 else
570 goto err_section_too_small; 570 goto err_section_too_small;
571 } else if (!uuid_le_cmp(*sec_type, CPER_SEC_PCIE)) { 571 } else if (guid_equal(sec_type, &CPER_SEC_PCIE)) {
572 struct cper_sec_pcie *pcie = acpi_hest_get_payload(gdata); 572 struct cper_sec_pcie *pcie = acpi_hest_get_payload(gdata);
573 573
574 printk("%s""section_type: PCIe error\n", newpfx); 574 printk("%s""section_type: PCIe error\n", newpfx);