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 Stub vmap purge notifiers.



details:   https://anonhg.NetBSD.org/src/rev/76ab54368be0
branches:  trunk
changeset: 1027964:76ab54368be0
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:22:29 2021 +0000

description:
Stub vmap purge notifiers.

diffstat:

 sys/external/bsd/drm2/include/linux/vmalloc.h |  16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r 14071e9f794b -r 76ab54368be0 sys/external/bsd/drm2/include/linux/vmalloc.h
--- a/sys/external/bsd/drm2/include/linux/vmalloc.h     Sun Dec 19 01:22:22 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/vmalloc.h     Sun Dec 19 01:22:29 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmalloc.h,v 1.8 2021/12/19 00:59:01 riastradh Exp $    */
+/*     $NetBSD: vmalloc.h,v 1.9 2021/12/19 01:22:29 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2013, 2018 The NetBSD Foundation, Inc.
@@ -41,6 +41,8 @@
 
 #include <asm/page.h>
 
+struct notifier_block;
+
 /*
  * XXX vmalloc and kmalloc both use malloc(9).  If you change this, be
  * sure to update kmalloc in <linux/slab.h> and kvfree in <linux/mm.h>.
@@ -141,4 +143,16 @@
            UVM_KMF_VAONLY);
 }
 
+static inline int
+register_vmap_purge_notifier(struct notifier_block *nb __unused)
+{
+       return 0;
+}
+
+static inline int
+unregister_vmap_purge_notifier(struct notifier_block *nb __unused)
+{
+       return 0;
+}
+
 #endif  /* _LINUX_VMALLOC_H_ */



Home | Main Index | Thread Index | Old Index