All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rafał Bilski" <rafalbilski@interia.pl>
To: linux-kernel@vger.kernel.org
Subject: Issue with rdmsr_on_cpu
Date: Mon, 23 Apr 2007 20:01:06 +0200	[thread overview]
Message-ID: <462CF462.10907@interia.pl> (raw)

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


             reply	other threads:[~2007-04-23 18:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-23 18:01 Rafał Bilski [this message]
2007-04-23 18:36 ` Issue with rdmsr_on_cpu Alexey Dobriyan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=462CF462.10907@interia.pl \
    --to=rafalbilski@interia.pl \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.