Skip to contentSkip to conversation

appldata build fix

PATCH NAK Al Viro 1 participant 1 message Mar 14, 2007 s390

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 3/13 appldata build fix

PGALLOC_DMA is defined only if we have CONFIG_ZONE_DMA

---
 arch/s390/appldata/appldata_mem.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
arch/s390/appldata/appldata_mem.c +4 -1
index 4ca6157..697eb30 100644
@@ -117,7 +117,10 @@ static void appldata_get_mem_data(void *data)
 	mem_data->pgpgout    = ev[PGPGOUT] >> 1;
 	mem_data->pswpin     = ev[PSWPIN];
 	mem_data->pswpout    = ev[PSWPOUT];
-	mem_data->pgalloc    = ev[PGALLOC_NORMAL] + ev[PGALLOC_DMA];
+	mem_data->pgalloc    = ev[PGALLOC_NORMAL];
+#ifdef CONFIG_ZONE_DMA
+	mem_data->pgalloc    += ev[PGALLOC_DMA];
+#endif
 	mem_data->pgfault    = ev[PGFAULT];
 	mem_data->pgmajfault = ev[PGMAJFAULT];
 
Signature · 1 line
1.5.0-rc2.GIT