You can use __attribute__ ((unused)) to suppress the warning, this
has worked for a long time.
You can't stick the attribute on the typedef for spinlock_t directly,
it is ignored, but what you can do in <asm/spinlock.h> is:
typedef struct { } __spinlock_t;
#define spinlock_t __spinlock_t __attribute__ ((__unused__))
Then `static spinlock_t lock' doesn't issue a warning if it's not used.
Presumably the above #define would only be done for UP.
-- Jamie "compiler tricks 'R' us"
-
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