Hi
One of our developers has come across an issue with the new release. He
provided this piece of code to show the problem:-
cat failure.c
#include </usr/include/asm-x86_64/msr.h>
int main( int argc, char* argv[] )
{
return 0;
}
gcc failure.c
/usr/include/asm-x86_64/msr.h:169: error: expected declaration
specifiers or ‘...’ before ‘u32’
/usr/include/asm-x86_64/msr.h:169: error: expected declaration
specifiers or ‘...’ before ‘u32’
/usr/include/asm-x86_64/msr.h:169: error: expected declaration
specifiers or ‘...’ before ‘u32’
/usr/include/asm-x86_64/msr.h: In function ‘rdmsr_on_cpu’:
/usr/include/asm-x86_64/msr.h:171: error: ‘l’ undeclared (first use in
this function)
/usr/include/asm-x86_64/msr.h:171: error: (Each undeclared identifier is
reported only once
/usr/include/asm-x86_64/msr.h:171: error: for each function it appears in.)
/usr/include/asm-x86_64/msr.h:171: error: ‘h’ undeclared (first use in
this function)
/usr/include/asm-x86_64/msr.h:171: error: ‘msr_no’ undeclared (first use
in this function)
/usr/include/asm-x86_64/msr.h:171: error: invalid lvalue in asm output 0
/usr/include/asm-x86_64/msr.h:171: error: invalid lvalue in asm output 1
/usr/include/asm-x86_64/msr.h: At top level:
/usr/include/asm-x86_64/msr.h:173: error: expected declaration
specifiers or ‘...’ before ‘u32’
/usr/include/asm-x86_64/msr.h:173: error: expected declaration
specifiers or ‘...’ before ‘u32’
/usr/include/asm-x86_64/msr.h:173: error: expected declaration
specifiers or ‘...’ before ‘u32’
/usr/include/asm-x86_64/msr.h: In function ‘wrmsr_on_cpu’:
/usr/include/asm-x86_64/msr.h:175: error: ‘msr_no’ undeclared (first use
in this function)
/usr/include/asm-x86_64/msr.h:175: error: ‘l’ undeclared (first use in
this function)
/usr/include/asm-x86_64/msr.h:175: error: ‘h’ undeclared (first use in
this function)
Anyone else seen this or found a bug with these function definitions ?
Thanks
Phil