That was not a typo. This is the same problem discussed now regarding 114
with empty structure initializers. In 109, just keep sigmask_lock as the
last member...
BTW: Isn't it much better to use a
typedef struct { char old_gcc_is_buggy } spinlock_t;
isntead of
typedef { int gcc_is_buggy } spinlock_t;
for spinlock_t on UP (so that it does
not waste that much space) or even better, conditionally define it to {} for
egcs and gcc 2.8 if those handle it right?
Like
#if __GNUC__ > 2 || __GNUC_MINOR__ >= 8
typedef struct {} spinlock_t;
#define SPIN_LOCK_UNLOCKED {}
#else
typedef struct { char old_gcc_is_buggy } spinlock_t;
#define SPIN_LOCK_UNLOCKED { 0 }
#endif
Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz
Administrator of SunSITE Czech Republic, MFF, Charles University
___________________________________________________________________
Ultralinux - first 64bit OS to take full power of the UltraSparc
Linux version 2.1.112 on a sparc64 machine (498.80 BogoMips).
___________________________________________________________________
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html