Commit-ID:  318b1dedcd39012624f466d281627553e9fa2570
Gitweb:     http://git.kernel.org/tip/318b1dedcd39012624f466d281627553e9fa2570
Author:     Elena Reshetova <[email protected]>
AuthorDate: Thu, 23 Feb 2017 15:09:34 +0200
Committer:  Ingo Molnar <[email protected]>
CommitDate: Fri, 24 Feb 2017 09:02:10 +0100

locking/refcounts: Add missing kernel.h header to have UINT_MAX defined

Fix header dependency.

Suggested-by: Arnaldo Carvalho de Melo <[email protected]>
Signed-off-by: Elena Reshetova <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: 
http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
---
 include/linux/refcount.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/refcount.h b/include/linux/refcount.h
index 0e8cfb2..0023fee 100644
--- a/include/linux/refcount.h
+++ b/include/linux/refcount.h
@@ -4,6 +4,7 @@
 #include <linux/atomic.h>
 #include <linux/mutex.h>
 #include <linux/spinlock.h>
+#include <linux/kernel.h>
 
 typedef struct refcount_struct {
        atomic_t refs;

Reply via email to