From: Andrew Morton Date: Sun, 1 Oct 2006 06:27:10 +0000 (-0700) Subject: [PATCH] arch/i386/pci/mmconfig.c tweaks X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=be5b7a8987f23281b146f22b13e2079f448c69c7;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [PATCH] arch/i386/pci/mmconfig.c tweaks - Add soothing comment - uninline thrice-called function Cc: OGAWA Hirofumi Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/i386/pci/mmconfig.c b/arch/i386/pci/mmconfig.c index 05be8db58a8c..d0c3da3aa2aa 100644 --- a/arch/i386/pci/mmconfig.c +++ b/arch/i386/pci/mmconfig.c @@ -67,7 +67,10 @@ static u32 get_base_addr(unsigned int seg, int bus, unsigned devfn) return 0; } -static inline void pci_exp_set_dev_base(unsigned int base, int bus, int devfn) +/* + * This is always called under pci_config_lock + */ +static void pci_exp_set_dev_base(unsigned int base, int bus, int devfn) { u32 dev_base = base | (bus << 20) | (devfn << 12); if (dev_base != mmcfg_last_accessed_device) {