Skip to content

Commit

Permalink
powerpc: Fix compile error in EEH code with gcc4
Browse files Browse the repository at this point in the history
Gcc 4 doesn't like being told to inline a recursive function...

Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Paul Mackerras committed Nov 10, 2005
1 parent 3db9aaa commit 0a5cab4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/platforms/pseries/eeh.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ static struct device_node * find_device_pe(struct device_node *dn)
* an interrupt context, which is bad.
*/

static inline void __eeh_mark_slot (struct device_node *dn)
static void __eeh_mark_slot (struct device_node *dn)
{
while (dn) {
PCI_DN(dn)->eeh_mode |= EEH_MODE_ISOLATED;
Expand All @@ -489,7 +489,7 @@ static inline void __eeh_mark_slot (struct device_node *dn)
}
}

static inline void __eeh_clear_slot (struct device_node *dn)
static void __eeh_clear_slot (struct device_node *dn)
{
while (dn) {
PCI_DN(dn)->eeh_mode &= ~EEH_MODE_ISOLATED;
Expand Down

0 comments on commit 0a5cab4

Please sign in to comment.