[PACKET_IO]unallocated memory related bugfix for marsio mode

This commit is contained in:
liuwentan
2022-08-01 15:19:57 +08:00
parent 523748e05a
commit 2cccb3ec04
11 changed files with 298 additions and 75 deletions

View File

@@ -25,4 +25,8 @@
#define container_of(ptr, type, member) ({ \
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
(type *)( (char *)__mptr - offsetof(type,member) );})
#endif
#ifndef __unused
#define __unused __attribute__((__unused__))
#endif