]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/eeh: Fix build error caused by pci_dn
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Tue, 1 Mar 2016 05:02:43 +0000 (16:02 +1100)
committerSasha Levin <sasha.levin@oracle.com>
Fri, 4 Mar 2016 15:25:46 +0000 (10:25 -0500)
commit35cc814663e4f3515fb6bae8a3b5c188aa2b6f89
tree5e45ae8dae175aeed219270cc1b9d20df9108419
parent62adae8f26b918f4403129e355d81301a629b6a2
powerpc/eeh: Fix build error caused by pci_dn

eeh.h could be included when we have following condition. Then we
run into build error as below: (CONFIG_PPC64 && !CONFIG_EEH) ||
(!CONFIG_PPC64 && !CONFIG_EEH)

In file included from arch/powerpc/kernel/of_platform.c:30:0:
./arch/powerpc/include/asm/eeh.h:344:48: error: ‘struct pci_dn’ \
declared inside parameter list [-Werror]
    :
In file included from arch/powerpc/mm/hash_utils_64.c:49:0:
./arch/powerpc/include/asm/eeh.h:344:48: error: ‘struct pci_dn’ \
declared inside parameter list [-Werror]

This fixes the issue by replacing those empty inline functions
with macro so that we don't rely on @pci_dn when CONFIG_EEH is
disabled.

Cc: stable@vger.kernel.org # v4.1+
Fixes: ff57b45 ("powerpc/eeh: Do probe on pci_dn")
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
arch/powerpc/include/asm/eeh.h