tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Files missing in /usr/include?



On Wed, May 26, 2010 at 01:35:27PM -0500, Matt Smith wrote:
> Fair enough.
> 
> What would be the best way to deal with the existing error with intr.h
> then? It persists in the src tree as well.
> 
> /usr/include/x86/intr.h:131: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before 'ipl_cookie_t'
> /usr/include/x86/intr.h:138: error: expected '=', ',', ';', 'asm' or

An excerpt from that file:

    126 typedef uint8_t ipl_t;
    127 typedef struct {
    128         ipl_t _ipl;
    129 } ipl_cookie_t;
    130 
    131 static inline ipl_cookie_t
    132 makeiplcookie(ipl_t ipl)
    133 {

In short, alone, this code is perfectly valid C99.
Is "inline" really what you think it is?

From what I know of the OpenAFS codebase, anything could
actually be a macro in disguise.

        Jonathan Kollasch


Home | Main Index | Thread Index | Old Index