[lkml]   [2003]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[2.5 patch] fix oprofile/init.c compilation
On Sun, May 04, 2003 at 11:57:50PM -0500, wrote:
> I get the following error trying to compile 2.5.69. This is the same config as 2.5.68, make with 'make oldconfig' and 'make bzlilo && make modules modules_install'.
> Config and config.old attached.
> Error:
> arch/i386/oprofile/init.c: In function `oprofile_arch_init':
> arch/i386/oprofile/init.c:25: `ENODEV' undeclared (first use in this function)
> arch/i386/oprofile/init.c:25: (Each undeclared identifier is reported only once
> arch/i386/oprofile/init.c:25: for each function it appears in.)
> arch/i386/oprofile/init.c:27: warning: control reaches end of non-void function
> make[1]: *** [arch/i386/oprofile/init.o] Error 1
> make: *** [arch/i386/oprofile] Error 2

The following patch should fix it:

--- linux-2.5.69-full/arch/i386/oprofile/init.c.old 2003-05-05 08:51:10.000000000 +0200
+++ linux-2.5.69-full/arch/i386/oprofile/init.c 2003-05-05 08:51:37.000000000 +0200
@@ -9,6 +9,7 @@

#include <linux/oprofile.h>
#include <linux/init.h>
+#include <linux/errno.h>

/* We support CPUs that have performance counters like the Pentium Pro
* with the NMI mode driver.



"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:35    [W:0.046 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site