open_pic.c compilation error (fwd)

Geert Uytterhoeven geert at linux-m68k.org
Sun Mar 23 05:15:58 EST 2003


---------- Forwarded message ----------
Date: Sat, 22 Mar 2003 17:00:23 +0100
From: Ludovico Cavedon <lumaca82 at inwind.it>
To: Geert Uytterhoeven <geert at linux-m68k.org>
Subject: open_pic.c compilation error

Hi.

I have just tried to compile linux 2.4.20 behn kernel on a new-world
iMac and found that ppc/open_pic.c has a compilation problem:

openpic_setup_lock is defined this way:
>>>
#if defined(CONFIG_SMP) || defined(CONFIG_PMAC_PBOOK)
static spinlock_t openpic_setup_lock = SPIN_LOCK_UNLOCKED;
#endif
<<<

but if CONFIG_SMP nor CONFIG_PMAC_PBOOK are defined, but CONFIG_ALL_PPC
is, openpic_sleep_save_intrs fails to compile:
>>>
#ifdef CONFIG_ALL_PPC
[...]
void __pmac
openpic_sleep_save_intrs(void)
{
	[...]
        spin_lock_irqsave(&openpic_setup_lock, flags);
<<<

I'm not sending a patch becouse I don't have the knoledge to know where
it has to be modified.

Bye,
Ludovico Cavedon


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list