Module Name:    src
Committed By:   riastradh
Date:           Sun Dec 19 10:57:34 UTC 2021

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

Log Message:
statically allocated kfifo


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/external/bsd/drm2/include/linux/kfifo.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/kfifo.h
diff -u src/sys/external/bsd/drm2/include/linux/kfifo.h:1.3 src/sys/external/bsd/drm2/include/linux/kfifo.h:1.4
--- src/sys/external/bsd/drm2/include/linux/kfifo.h:1.3	Mon Aug 27 14:41:53 2018
+++ src/sys/external/bsd/drm2/include/linux/kfifo.h	Sun Dec 19 10:57:34 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: kfifo.h,v 1.3 2018/08/27 14:41:53 riastradh Exp $	*/
+/*	$NetBSD: kfifo.h,v 1.4 2021/12/19 10:57:34 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -52,7 +52,14 @@ struct kfifo_meta {
 		TYPE			*kf_buf;			      \
 	}
 
+#define	_KFIFO_TYPE(TAG, TYPE, N)					      \
+	struct TAG {							      \
+		struct kfifo_meta	kf_meta;			      \
+		TYPE			kf_buf[N];			      \
+	}
+
 #define	DECLARE_KFIFO_PTR(FIFO, TYPE)	_KFIFO_PTR_TYPE(, TYPE) FIFO
+#define	DECLARE_KFIFO(FIFO, TYPE, N)	_KFIFO_TYPE(, TYPE, N) FIFO
 
 _KFIFO_PTR_TYPE(kfifo, void);
 

Reply via email to