From 132c23b4b9134b9e8969fb57484f9fcdad1d46f5 Mon Sep 17 00:00:00 2001 From: hunt Date: Wed, 15 Nov 2006 17:52:23 +0000 Subject: 2006-11-15 Martin Hunt * alloc.c (STP_ALLOC_FLAGS): Define. Cleanup ifdefs. * map.c: Use STP_ALLOC_FLAGS. * stat.c: ditto. --- runtime/stat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/stat.c') diff --git a/runtime/stat.c b/runtime/stat.c index d9eff2c3..c1bf07b1 100644 --- a/runtime/stat.c +++ b/runtime/stat.c @@ -96,7 +96,7 @@ Stat _stp_stat_init (int type, ...) } va_end (ap); } - st = (Stat) kmalloc (sizeof(struct _Stat), GFP_KERNEL); + st = (Stat) kmalloc (sizeof(struct _Stat), STP_ALLOC_FLAGS); if (st == NULL) return NULL; @@ -115,7 +115,7 @@ Stat _stp_stat_init (int type, ...) } #endif - agg = (stat *)kmalloc (size, GFP_KERNEL); + agg = (stat *)kmalloc (size, STP_ALLOC_FLAGS); if (agg == NULL) goto exit2; -- cgit