summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/include/linux/vmalloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/drm/include/linux/vmalloc.h')
-rw-r--r--sys/dev/pci/drm/include/linux/vmalloc.h25
1 files changed, 5 insertions, 20 deletions
diff --git a/sys/dev/pci/drm/include/linux/vmalloc.h b/sys/dev/pci/drm/include/linux/vmalloc.h
index 7daa7bea5bd..fd6cc54b7db 100644
--- a/sys/dev/pci/drm/include/linux/vmalloc.h
+++ b/sys/dev/pci/drm/include/linux/vmalloc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmalloc.h,v 1.1 2019/04/14 10:14:53 jsg Exp $ */
+/* $OpenBSD: vmalloc.h,v 1.2 2021/01/08 23:02:09 kettenis Exp $ */
/*
* Copyright (c) 2013, 2014, 2015 Mark Kettenis
*
@@ -25,25 +25,10 @@
#include <linux/overflow.h>
void *vmap(struct vm_page **, unsigned int, unsigned long, pgprot_t);
-void vunmap(void *, size_t);
-
-static inline void *
-vmalloc(unsigned long size)
-{
- return malloc(size, M_DRM, M_WAITOK | M_CANFAIL);
-}
-
-static inline void *
-vzalloc(unsigned long size)
-{
- return malloc(size, M_DRM, M_WAITOK | M_CANFAIL | M_ZERO);
-}
-
-static inline void
-vfree(void *objp)
-{
- free(objp, M_DRM, 0);
-}
+void vunmap(void *, size_t);
+void *vmalloc(unsigned long);
+void *vzalloc(unsigned long);
+void vfree(const void *);
#endif