Skip to content

Commit b62061b

Browse files
committed
Merge tag 'edac_for_5.6' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras
Pull EDAC updates from Borislav Petkov: "A totally boring branch this time around: a garden variety of small fixes all over the place" * tag 'edac_for_5.6' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras: EDAC/amd64: Do not warn when removing instances EDAC/sifive: Fix return value check in ecc_register() EDAC/aspeed: Remove unneeded semicolon EDAC: remove set but not used variable 'ecc_loc' EDAC: skx_common: downgrade message importance on missing PCI device EDAC/Kconfig: Fix Kconfig indentation
2 parents 35417d5 + 7e5d6cf commit b62061b

File tree

6 files changed

+6
-17
lines changed

6 files changed

+6
-17
lines changed

drivers/edac/Kconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,7 @@ config EDAC_TI
491491
tristate "Texas Instruments DDR3 ECC Controller"
492492
depends on ARCH_KEYSTONE || SOC_DRA7XX
493493
help
494-
Support for error detection and correction on the
495-
TI SoCs.
494+
Support for error detection and correction on the TI SoCs.
496495

497496
config EDAC_QCOM
498497
tristate "QCOM EDAC Controller"

drivers/edac/amd64_edac.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3573,9 +3573,6 @@ static void remove_one_instance(unsigned int nid)
35733573
struct mem_ctl_info *mci;
35743574
struct amd64_pvt *pvt;
35753575

3576-
mci = find_mci_by_dev(&F3->dev);
3577-
WARN_ON(!mci);
3578-
35793576
/* Remove from EDAC CORE tracking list */
35803577
mci = edac_mc_del_mc(&F3->dev);
35813578
if (!mci)

drivers/edac/aspeed_edac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ static int init_csrows(struct mem_ctl_info *mci)
243243
if (!np) {
244244
dev_err(mci->pdev, "dt: missing /memory node\n");
245245
return -ENODEV;
246-
};
246+
}
247247

248248
rc = of_address_to_resource(np, 0, &r);
249249

@@ -252,7 +252,7 @@ static int init_csrows(struct mem_ctl_info *mci)
252252
if (rc) {
253253
dev_err(mci->pdev, "dt: failed requesting resource for /memory node\n");
254254
return rc;
255-
};
255+
}
256256

257257
dev_dbg(mci->pdev, "dt: /memory node resources: first page r.start=0x%x, resource_size=0x%x, PAGE_SHIFT macro=0x%x\n",
258258
r.start, resource_size(&r), PAGE_SHIFT);

drivers/edac/i5100_edac.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,6 @@ static inline u32 i5100_nrecmemb_ras(u32 a)
259259
return a & ((1 << 16) - 1);
260260
}
261261

262-
static inline u32 i5100_redmemb_ecc_locator(u32 a)
263-
{
264-
return a & ((1 << 18) - 1);
265-
}
266-
267262
static inline u32 i5100_recmema_merr(u32 a)
268263
{
269264
return i5100_nrecmema_merr(a);
@@ -486,7 +481,6 @@ static void i5100_read_log(struct mem_ctl_info *mci, int chan,
486481
u32 dw;
487482
u32 dw2;
488483
unsigned syndrome = 0;
489-
unsigned ecc_loc = 0;
490484
unsigned merr;
491485
unsigned bank;
492486
unsigned rank;
@@ -499,7 +493,6 @@ static void i5100_read_log(struct mem_ctl_info *mci, int chan,
499493
pci_read_config_dword(pdev, I5100_REDMEMA, &dw2);
500494
syndrome = dw2;
501495
pci_read_config_dword(pdev, I5100_REDMEMB, &dw2);
502-
ecc_loc = i5100_redmemb_ecc_locator(dw2);
503496
}
504497

505498
if (i5100_validlog_recmemvalid(dw)) {

drivers/edac/sifive_edac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ static int ecc_register(struct platform_device *pdev)
5454
p->dci = edac_device_alloc_ctl_info(0, "sifive_ecc", 1, "sifive_ecc",
5555
1, 1, NULL, 0,
5656
edac_device_alloc_index());
57-
if (IS_ERR(p->dci))
58-
return PTR_ERR(p->dci);
57+
if (!p->dci)
58+
return -ENOMEM;
5959

6060
p->dci->dev = &pdev->dev;
6161
p->dci->mod_name = "Sifive ECC Manager";

drivers/edac/skx_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ int skx_get_hi_lo(unsigned int did, int off[], u64 *tolm, u64 *tohm)
256256

257257
pdev = pci_get_device(PCI_VENDOR_ID_INTEL, did, NULL);
258258
if (!pdev) {
259-
skx_printk(KERN_ERR, "Can't get tolm/tohm\n");
259+
edac_dbg(2, "Can't get tolm/tohm\n");
260260
return -ENODEV;
261261
}
262262

0 commit comments

Comments
 (0)