263
274
#define kzalloc(x, y) calloc(1, x)
264
275
#define kstrdup(x, y) strdup(x)
267
281
#define BUG_ON(c) assert_trace(#c, __FILE__, __func__, __LINE__, !(c))
269
286
#define WARN_ON(c) BUG_ON(c)
270
289
#define ASSERT(c) assert_trace(#c, __FILE__, __func__, __LINE__, (c))
272
294
#define container_of(ptr, type, member) ({ \
273
295
const typeof( ((type *)0)->member ) *__mptr = (ptr); \