Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/include/linux Define __GFP_NOFAIL as z...



details:   https://anonhg.NetBSD.org/src/rev/efb8d4f9502f
branches:  trunk
changeset: 365842:efb8d4f9502f
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 06:56:31 2018 +0000

description:
Define __GFP_NOFAIL as zero since it's a noop here.

diffstat:

 sys/external/bsd/drm2/include/linux/gfp.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 0dde10c0eab8 -r efb8d4f9502f sys/external/bsd/drm2/include/linux/gfp.h
--- a/sys/external/bsd/drm2/include/linux/gfp.h Mon Aug 27 06:56:22 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/gfp.h Mon Aug 27 06:56:31 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gfp.h,v 1.5 2014/07/17 14:07:44 riastradh Exp $        */
+/*     $NetBSD: gfp.h,v 1.6 2018/08/27 06:56:31 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -63,6 +63,12 @@
 #define        __GFP_WAIT              __BIT(11)
 #define        __GFP_ZERO              __BIT(12)
 
+/*
+ * XXX Linux sez nobody should be using this in new code.  We never
+ * fail in the wait case anyway, so the point is moot.
+ */
+#define        __GFP_NOFAIL            0
+
 struct page;
 
 #endif /* _LINUX_GFP_H_ */



Home | Main Index | Thread Index | Old Index