* Issue with rdmsr_on_cpu
@ 2007-04-23 18:01 Rafał Bilski
2007-04-23 18:36 ` Alexey Dobriyan
0 siblings, 1 reply; 2+ messages in thread
From: Rafał Bilski @ 2007-04-23 18:01 UTC (permalink / raw)
To: linux-kernel
Hi!
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? 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)
[...]
make[2]: *** [drivers/hwmon/c7temp.o] Błąd 1
make[1]: *** [drivers/hwmon] Błąd 2
make: *** [drivers] Błąd 2
----------------------------------------------------------------------
Kasia Cichopek eksponuje biust
>>> http://link.interia.pl/f1a6f
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Issue with rdmsr_on_cpu
2007-04-23 18:01 Issue with rdmsr_on_cpu Rafał Bilski
@ 2007-04-23 18:36 ` Alexey Dobriyan
0 siblings, 0 replies; 2+ messages in thread
From: Alexey Dobriyan @ 2007-04-23 18:36 UTC (permalink / raw)
To: Rafał Bilski; +Cc: linux-kernel
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)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-23 18:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-23 18:01 Issue with rdmsr_on_cpu Rafał Bilski
2007-04-23 18:36 ` Alexey Dobriyan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.