summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/include/linux/overflow.h
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2020-06-08 04:47:57 +0000
committerjsg <jsg@openbsd.org>2020-06-08 04:47:57 +0000
commitc349dbc7938c71a30e13c1be4acc1976165f4630 (patch)
tree8798187dfd7a927a15123e8dad31b782b074baa8 /sys/dev/pci/drm/include/linux/overflow.h
parentThe errcheck() function treats an errno of ERANGE or EDOM as something (diff)
downloadwireguard-openbsd-c349dbc7938c71a30e13c1be4acc1976165f4630.tar.xz
wireguard-openbsd-c349dbc7938c71a30e13c1be4acc1976165f4630.zip
update drm to linux 5.7
adds kernel support for amdgpu: vega20, raven2, renoir, navi10, navi14 inteldrm: icelake, tigerlake Thanks to the OpenBSD Foundation for sponsoring this work, kettenis@ for helping, patrick@ for helping adapt rockchip drm and many developers for testing.
Diffstat (limited to 'sys/dev/pci/drm/include/linux/overflow.h')
-rw-r--r--sys/dev/pci/drm/include/linux/overflow.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/include/linux/overflow.h b/sys/dev/pci/drm/include/linux/overflow.h
index ea8fa45e399..93615be569b 100644
--- a/sys/dev/pci/drm/include/linux/overflow.h
+++ b/sys/dev/pci/drm/include/linux/overflow.h
@@ -5,4 +5,7 @@
#define array_size(x, y) ((x) * (y))
+#define struct_size(p, member, n) \
+ (sizeof(*(p)) + ((n) * (sizeof(*(p)->member))))
+
#endif