[PATCH] Add linux/spinlock.h to include/linux/mc146816rtc.h

Tom Rini (trini@kernel.crashing.org)
Wed, 15 Aug 2001 10:13:46 -0700


Hello. include/linux/mc146818rtc.h has the line:
'extern spinlock_t rtc_lock;' in it, but it relies on linux/spinlock.h being
included elsewhere. The inlined fixes that.

-- 
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

diff -Nru a/include/linux/mc146818rtc.h b/include/linux/mc146818rtc.h --- a/include/linux/mc146818rtc.h Wed Aug 15 09:59:45 2001 +++ b/include/linux/mc146818rtc.h Wed Aug 15 09:59:45 2001 @@ -13,6 +13,7 @@ #include <asm/io.h> #include <linux/rtc.h> /* get the user-level API */ +#include <linux/spinlock.h> /* spinlock_t */ #include <asm/mc146818rtc.h> /* register access macros */ extern spinlock_t rtc_lock; /* serialize CMOS RAM access */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/