Re: compile error in drivers/perfctr/x86.c (Re: 2..5.73-osdl2)

Mikael Pettersson (mikpe@csd.uu.se)
Thu, 26 Jun 2003 09:21:51 +0200


Ed L Cashin writes:
> On Wed, Jun 25, 2003 at 05:40:48PM -0700, Stephen Hemminger wrote:
> > http://developer.osdl.org/shemminger/patches/patch-2.5.73-osdl2.bz2
>
> Hi. I'm getting a compile error:
>
> CC drivers/perfctr/x86_setup.o
> CC drivers/perfctr/x86.o
> drivers/perfctr/x86.c: In function `unregister_nmi_pmdev':
> drivers/perfctr/x86.c:1484: `nmi_pmdev' undeclared (first use in this function)
> drivers/perfctr/x86.c:1484: (Each undeclared identifier is reported only once
> drivers/perfctr/x86.c:1484: for each function it appears in.)
> drivers/perfctr/x86.c:1485: warning: implicit declaration of function `apic_pm_unregister'
> drivers/perfctr/x86.c: In function `x86_pm_init':
> drivers/perfctr/x86.c:1500: warning: implicit declaration of function `apic_pm_register'
> drivers/perfctr/x86.c:1500: warning: assignment makes pointer from integer without a cast
> make[2]: *** [drivers/perfctr/x86.o] Error 1
> make[1]: *** [drivers/perfctr] Error 2
> make: *** [drivers] Error 2

It looks a lot like OSDL includes an old obsolete version of perfctr.
The PM code you're getting errors in is for kernels older than 2.5.68.
The current release of perfctr knows that current 2.5 kernels use the
driver model for local APIC and NMI watchdog power management.

Unfortunately, the -osdl kernel announcements don't state _which_ release
of perfctr they're including. I was assuming they got new releases off
the download site on a regular basis, but perhaps they don't.

/Mikael
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/