Skip to content

Commit 8497333

Browse files
skoralahdavejiang
authored andcommitted
efi/cper, cxl: Prefix protocol error struct and function names with cxl_
Rename the protocol error struct from struct cper_sec_prot_err to struct cxl_cper_sec_prot_err and cper_print_prot_err() to cxl_cper_print_prot_err() to maintain naming consistency. No functional changes. Signed-off-by: Smita Koralahalli <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Reviewed-by: Ira Weiny <[email protected]> Reviewed-by: Dave Jiang <[email protected]> Reviewed-by: Fan Ni <[email protected]> Reviewed-by: Gregory Price <[email protected]> Reviewed-by: Dan Williams <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Dave Jiang <[email protected]>
1 parent 2014c95 commit 8497333

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

drivers/firmware/efi/cper.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,11 +624,11 @@ cper_estatus_print_section(const char *pfx, struct acpi_hest_generic_data *gdata
624624
else
625625
goto err_section_too_small;
626626
} else if (guid_equal(sec_type, &CPER_SEC_CXL_PROT_ERR)) {
627-
struct cper_sec_prot_err *prot_err = acpi_hest_get_payload(gdata);
627+
struct cxl_cper_sec_prot_err *prot_err = acpi_hest_get_payload(gdata);
628628

629629
printk("%ssection_type: CXL Protocol Error\n", newpfx);
630630
if (gdata->error_data_length >= sizeof(*prot_err))
631-
cper_print_prot_err(newpfx, prot_err);
631+
cxl_cper_print_prot_err(newpfx, prot_err);
632632
else
633633
goto err_section_too_small;
634634
} else {

drivers/firmware/efi/cper_cxl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ enum {
5555
USP, /* CXL Upstream Switch Port */
5656
};
5757

58-
void cper_print_prot_err(const char *pfx, const struct cper_sec_prot_err *prot_err)
58+
void cxl_cper_print_prot_err(const char *pfx,
59+
const struct cxl_cper_sec_prot_err *prot_err)
5960
{
6061
if (prot_err->valid_bits & PROT_ERR_VALID_AGENT_TYPE)
6162
pr_info("%s agent_type: %d, %s\n", pfx, prot_err->agent_type,

drivers/firmware/efi/cper_cxl.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#pragma pack(1)
1919

2020
/* Compute Express Link Protocol Error Section, UEFI v2.10 sec N.2.13 */
21-
struct cper_sec_prot_err {
21+
struct cxl_cper_sec_prot_err {
2222
u64 valid_bits;
2323
u8 agent_type;
2424
u8 reserved[7];
@@ -61,6 +61,7 @@ struct cper_sec_prot_err {
6161

6262
#pragma pack()
6363

64-
void cper_print_prot_err(const char *pfx, const struct cper_sec_prot_err *prot_err);
64+
void cxl_cper_print_prot_err(const char *pfx,
65+
const struct cxl_cper_sec_prot_err *prot_err);
6566

6667
#endif //__CPER_CXL_

0 commit comments

Comments
 (0)