diff --git a/arch/x86/include/asm/refcount.h b/arch/x86/include/asm/refcount.h index 4e44250e7d0d..ccd1d2878c3a 100644 --- a/arch/x86/include/asm/refcount.h +++ b/arch/x86/include/asm/refcount.h @@ -5,6 +5,7 @@ * PaX/grsecurity. */ #include +#include /* * This is the first portion of the refcount error handling, which lives in diff --git a/include/linux/refcount.h b/include/linux/refcount.h index 29b515b96e33..6d75c1ffa83f 100644 --- a/include/linux/refcount.h +++ b/include/linux/refcount.h @@ -2,9 +2,10 @@ #define _LINUX_REFCOUNT_H #include -#include -#include -#include +#include +#include + +struct mutex; /** * refcount_t - variant of atomic_t specialized for reference counts diff --git a/lib/refcount.c b/lib/refcount.c index af5b9490a947..8bdbbe4a9518 100644 --- a/lib/refcount.c +++ b/lib/refcount.c @@ -34,7 +34,9 @@ * */ +#include #include +#include #include #ifdef CONFIG_PANIC_ON_REFCOUNT_ERROR