Messages in this thread | | | Date | Mon, 23 Apr 2007 22:36:20 +0400 | From | Alexey Dobriyan <> | Subject | Re: Issue with rdmsr_on_cpu |
| |
On Mon, Apr 23, 2007 at 08:01:06PM +0200, Rafał Bilski wrote: > Some time ago I have written hwmon driver for Centaur C7 > processors. Nobody was interested in testing it, so it > spend long time on my harddisk. Recently one person wanted > to test it with 2.6.21-rc7. Unfortunatly compile fails. > I don't understand why. I'm not using rdmsr_on_cpu > functions. Code is assuming that only one CPU is present > and using rdmsr function direcly. Is this no longer > possible? Do I have to #include something?
asm/types.h in the beginning of asm/msr.h should do the trick.
> Build log attached. > I'm not attaching code because error isn't reported in my > source file, but in Linux includes. My compiler is GCC 4.1.2 > and kernel isn't SMP. > > Please CC me. > > Thanks > Rafał > > CHK include/linux/version.h > CHK include/linux/utsrelease.h > CC [M] drivers/hwmon/c7temp.o > In file included from drivers/hwmon/c7temp.c:19: > include/asm/msr.h:90: error: expected declaration specifiers or '...' before 'u32' > include/asm/msr.h:90: error: expected declaration specifiers or '...' before 'u32' > include/asm/msr.h:90: error: expected declaration specifiers or '...' before 'u32' > include/asm/msr.h: In function 'rdmsr_on_cpu': > include/asm/msr.h:92: error: 'l' undeclared (first use in this function) > include/asm/msr.h:92: error: (Each undeclared identifier is reported only once > include/asm/msr.h:92: error: for each function it appears in.) > include/asm/msr.h:92: error: 'h' undeclared (first use in this function) > include/asm/msr.h:92: error: 'msr_no' undeclared (first use in this function) > include/asm/msr.h:92: error: invalid lvalue in asm output 0 > include/asm/msr.h:92: error: invalid lvalue in asm output 1 > include/asm/msr.h: At top level: > include/asm/msr.h:94: error: expected declaration specifiers or '...' before 'u32' > include/asm/msr.h:94: error: expected declaration specifiers or '...' before 'u32' > include/asm/msr.h:94: error: expected declaration specifiers or '...' before 'u32' > include/asm/msr.h: In function 'wrmsr_on_cpu': > include/asm/msr.h:96: error: 'msr_no' undeclared (first use in this function) > include/asm/msr.h:96: error: 'l' undeclared (first use in this function) > include/asm/msr.h:96: error: 'h' undeclared (first use in this function)
- 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/
| |