Module Name:    src
Committed By:   riastradh
Date:           Sun Dec 19 01:22:29 UTC 2021

Modified Files:
        src/sys/external/bsd/drm2/include/linux: vmalloc.h

Log Message:
Stub vmap purge notifiers.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/external/bsd/drm2/include/linux/vmalloc.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/include/linux/vmalloc.h
diff -u src/sys/external/bsd/drm2/include/linux/vmalloc.h:1.8 src/sys/external/bsd/drm2/include/linux/vmalloc.h:1.9
--- src/sys/external/bsd/drm2/include/linux/vmalloc.h:1.8	Sun Dec 19 00:59:01 2021
+++ src/sys/external/bsd/drm2/include/linux/vmalloc.h	Sun Dec 19 01:22:29 2021
@@ -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 @@ vunmap(void *ptr, unsigned npages)
 	    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_ */

Reply via email to