[PATCH 10/13] Move GFP_NOFS to barebox-wrapper

Alexander Stein alexander.stein at systec-electronic.com
Thu Mar 17 03:00:26 PDT 2016


This will also be used by upcoming UBIFS update.

Signed-off-by: Alexander Stein <alexander.stein at systec-electronic.com>
---
 drivers/mtd/ubi/ubi-barebox.h   | 2 --
 include/linux/barebox-wrapper.h | 3 ++-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/mtd/ubi/ubi-barebox.h b/drivers/mtd/ubi/ubi-barebox.h
index 03069d0..ab970aa 100644
--- a/drivers/mtd/ubi/ubi-barebox.h
+++ b/drivers/mtd/ubi/ubi-barebox.h
@@ -42,8 +42,6 @@ static inline unsigned long copy_from_user(void *dest, const void *src,
 
 /* common */
 
-#define GFP_NOFS			1
-
 #define wake_up_process(...)	do { } while (0)
 
 #define BUS_ID_SIZE		20
diff --git a/include/linux/barebox-wrapper.h b/include/linux/barebox-wrapper.h
index 15fd726..fc1b5c2 100644
--- a/include/linux/barebox-wrapper.h
+++ b/include/linux/barebox-wrapper.h
@@ -20,7 +20,8 @@
 #define KERN_DEBUG      ""   /* debug-level messages                 */
 #define KERN_CONT       ""
 
-#define GFP_KERNEL	0
+#define GFP_KERNEL ((gfp_t) 0)
+#define GFP_NOFS ((gfp_t) 1)
 
 typedef int     gfp_t;
 
-- 
2.7.3




More information about the barebox mailing list