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/be9fa9ff582b
branches:  trunk
changeset: 992541:be9fa9ff582b
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 9efb20dc714f -r be9fa9ff582b 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