summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/include/linux/overflow.h
blob: 93615be569bf82b0111b9970e18abf26e4c9d26b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
/* Public domain. */

#ifndef _LINUX_OVERFLOW_H
#define _LINUX_OVERFLOW_H

#define array_size(x, y)	((x) * (y))

#define struct_size(p, member, n) \
	(sizeof(*(p)) + ((n) * (sizeof(*(p)->member))))

#endif