We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7bfaa7 commit 2ec1b17Copy full SHA for 2ec1b17
drivers/cxl/pci.c
@@ -554,8 +554,11 @@ static bool cxl_report_and_clear(struct cxl_dev_state *cxlds)
554
555
/* If multiple errors, log header points to first error from ctrl reg */
556
if (hweight32(status) > 1) {
557
- addr = cxlds->regs.ras + CXL_RAS_CAP_CONTROL_OFFSET;
558
- fe = BIT(FIELD_GET(CXL_RAS_CAP_CONTROL_FE_MASK, readl(addr)));
+ void __iomem *rcc_addr =
+ cxlds->regs.ras + CXL_RAS_CAP_CONTROL_OFFSET;
559
+
560
+ fe = BIT(FIELD_GET(CXL_RAS_CAP_CONTROL_FE_MASK,
561
+ readl(rcc_addr)));
562
} else {
563
fe = status;
564
}
0 commit comments