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/f05dc1bf0ac7
branches:  trunk
changeset: 834923:f05dc1bf0ac7
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 c43d67e64cab -r f05dc1bf0ac7 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