Re: [mmotm:master 42/137] include/linux/page_counter.h:19:27: error: 'LONG_MAX' undeclared

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From fdaa13a2de736eea4a54014964e907d04acec4b6 Mon Sep 17 00:00:00 2001
From: Johannes Weiner <hannes@xxxxxxxxxxx>
Date: Thu, 16 Oct 2014 08:49:55 -0400
Subject: [patch] mm: memcontrol: lockless page counters fix

include/linux/page_counter.h:19:27: error: 'LONG_MAX' undeclared (first use in this function)
include/linux/page_counter.h:19:38: error: 'PAGE_SIZE' undeclared (first use in this function)

Include <linux/kernel.h> for LONG_MAX and <asm/page.h> for PAGE_SIZE.

Signed-off-by: Johannes Weiner <hannes@xxxxxxxxxxx>
Reported-by: kbuild test robot <fengguang.wu@xxxxxxxxx>
---
 include/linux/page_counter.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/linux/page_counter.h b/include/linux/page_counter.h
index a878ef61d073..955421575d16 100644
--- a/include/linux/page_counter.h
+++ b/include/linux/page_counter.h
@@ -2,6 +2,8 @@
 #define _LINUX_PAGE_COUNTER_H
 
 #include <linux/atomic.h>
+#include <linux/kernel.h>
+#include <asm/page.h>
 
 struct page_counter {
 	atomic_long_t count;
-- 
2.1.2

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]