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, 26 May 2010, Jonathan A. Kollasch wrote:
> On Wed, May 26, 2010 at 01:35:27PM -0500, Matt Smith wrote:
> > /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.
on the other hand, it could be that it needs to include <sys/types.h> as
that is only included by the file when _KERNEL is defined..
iain
Home |
Main Index |
Thread Index |
Old Index