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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]