[PATCH 33/88] xenbus: fix compile failure on ARM with Xen enabled

From: Luis Henriques
Date: Thu Mar 14 2013 - 06:56:04 EST


3.5.7.8 -stable review patch. If anyone has any objections, please let me know.

------------------

From: Steven Noonan <steven@xxxxxxxxxxxxxx>

commit 45e27161c62216c163880d7aed751cb55a65c8e9 upstream.

Adding an include of linux/mm.h resolves this:
drivers/xen/xenbus/xenbus_client.c: In function âxenbus_map_ring_valloc_hvmâ:
drivers/xen/xenbus/xenbus_client.c:532:66: error: implicit declaration of function âpage_to_sectionâ [-Werror=implicit-function-declaration]

Signed-off-by: Steven Noonan <steven@xxxxxxxxxxxxxx>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Signed-off-by: Luis Henriques <luis.henriques@xxxxxxxxxxxxx>
---
drivers/xen/xenbus/xenbus_client.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/xen/xenbus/xenbus_client.c b/drivers/xen/xenbus/xenbus_client.c
index b3e146e..1a77f2b 100644
--- a/drivers/xen/xenbus/xenbus_client.c
+++ b/drivers/xen/xenbus/xenbus_client.c
@@ -30,6 +30,7 @@
* IN THE SOFTWARE.
*/

+#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/spinlock.h>
--
1.8.1.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/