mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-21 20:12:37 +01:00
util: Remove container_of
This commit is contained in:
parent
f8af73f2c7
commit
5c9e6b255f
@ -28,10 +28,6 @@
|
||||
|
||||
#define align_len(len, boundary) (((len)+(boundary)-1) & ~((boundary)-1))
|
||||
|
||||
#define container_of(ptr, type, member) ({ \
|
||||
const __typeof__( ((type *)0)->member ) *__mptr = (ptr); \
|
||||
(type *)( (char *)__mptr - offsetof(type,member) );})
|
||||
|
||||
#define MAC "%02x:%02x:%02x:%02x:%02x:%02x"
|
||||
#define MAC_STR(a) a[0], a[1], a[2], a[3], a[4], a[5]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user