From: Borislav Petkov Date: Mon, 21 Feb 2011 18:37:24 +0000 (+0100) Subject: amd64_edac: Fix PCI config addressing types X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=71d2a32e8e8411e160705aad88d26fb993a1faba;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git amd64_edac: Fix PCI config addressing types Adjust argument types to the PCI config API's types. Signed-off-by: Borislav Petkov --- diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index e6adc73e70c..24253326a77 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c @@ -856,8 +856,8 @@ static void read_dct_base_mask(struct amd64_pvt *pvt) prep_chip_selects(pvt); for_each_chip_select(cs, 0, pvt) { - u32 reg0 = DCSB0 + (cs * 4); - u32 reg1 = DCSB1 + (cs * 4); + int reg0 = DCSB0 + (cs * 4); + int reg1 = DCSB1 + (cs * 4); u32 *base0 = &pvt->csels[0].csbases[cs]; u32 *base1 = &pvt->csels[1].csbases[cs]; @@ -874,8 +874,8 @@ static void read_dct_base_mask(struct amd64_pvt *pvt) } for_each_chip_select_mask(cs, 0, pvt) { - u32 reg0 = DCSM0 + (cs * 4); - u32 reg1 = DCSM1 + (cs * 4); + int reg0 = DCSM0 + (cs * 4); + int reg1 = DCSM1 + (cs * 4); u32 *mask0 = &pvt->csels[0].csmasks[cs]; u32 *mask1 = &pvt->csels[1].csmasks[cs]; @@ -947,7 +947,7 @@ static u64 get_error_address(struct mce *m) static void read_dram_base_limit_regs(struct amd64_pvt *pvt, unsigned range) { - u32 off = range << 3; + int off = range << 3; amd64_read_pci_cfg(pvt->F1, DRAM_BASE_LO + off, &pvt->ranges[range].base.lo); amd64_read_pci_cfg(pvt->F1, DRAM_LIMIT_LO + off, &pvt->ranges[range].lim.lo);