From 693b3b5aa32755a34327cac1ff10260eb68f4163 Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 7 Oct 2022 03:00:44 +0000 Subject: [PATCH] add CIRC_SPACE() --- sys/dev/pci/drm/include/linux/circ_buf.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/dev/pci/drm/include/linux/circ_buf.h b/sys/dev/pci/drm/include/linux/circ_buf.h index e69de29bb2d..41742554654 100644 --- a/sys/dev/pci/drm/include/linux/circ_buf.h +++ b/sys/dev/pci/drm/include/linux/circ_buf.h @@ -0,0 +1,8 @@ +/* Public domain. */ + +#ifndef _LINUX_CIRC_BUF_H +#define _LINUX_CIRC_BUF_H + +#define CIRC_SPACE(h,t,s) (((t) - ((h)+1)) & ((s)-1)) + +#endif -- 2.20.1