Merge branch 'perf/urgent' into perf/core, to pick up fixes
authorIngo Molnar <mingo@kernel.org>
Thu, 26 Aug 2021 07:14:05 +0000 (09:14 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 26 Aug 2021 07:14:05 +0000 (09:14 +0200)
Signed-off-by: Ingo Molnar <mingo@kernel.org>
1  2 
arch/x86/events/intel/uncore_snbep.c

index f665b163cb29d66691a34f3f8b63b9d51a91ab22,c682b09b18fa00d75adf7989e4129215e293deac..5ddc0f30db6fccb4ddcaa89577e5c3f7e75fa9ad
@@@ -4831,10 -4808,10 +4835,10 @@@ static int snr_uncore_mmio_map(struct i
        u32 pci_dword;
  
        if (!pdev)
 -              return;
 +              return -ENODEV;
  
        pci_read_config_dword(pdev, SNR_IMC_MMIO_BASE_OFFSET, &pci_dword);
-       addr = (pci_dword & SNR_IMC_MMIO_BASE_MASK) << 23;
+       addr = ((resource_size_t)pci_dword & SNR_IMC_MMIO_BASE_MASK) << 23;
  
        pci_read_config_dword(pdev, mem_offset, &pci_dword);
        addr |= (pci_dword & SNR_IMC_MMIO_MEM0_MASK) << 12;