From 47c92fe951545e780ca31c598bbcbe5347059b27 Mon Sep 17 00:00:00 2001
From: Yubin Ruan <ablacktsh...@gmail.com>
Date: Mon, 12 Mar 2018 11:22:35 +0800
Subject: [PATCH] fix misspelling in the example of container_of
Signed-off-by: Yubin Ruan <ablacktsh...@gmail.com>
---
cca
Hi,
typesaft_cb_cast() is defined in typesaft_cb.h as:
#define typesafe_cb_cast(desttype, oktype, expr) \
__builtin_choose_expr(\
__builtin_types_compatible_p(__typeof__(0?(expr):(expr)), \
Hi,
I notice that in the implementation of container_of(), the resulting pointer
will be advanced by 1 if types mismatch:
#define container_of(member_ptr, containing_type, member) \
((containing_type *) \
((char *)(member_ptr)
From 32f86c701ab0e0ad0ad6981314a9bff2dc5ebb74 Mon Sep 17 00:00:00 2001
From: Yubin Ruan <ablacktsh...@gmail.com>
Date: Wed, 14 Mar 2018 11:14:54 +0800
Subject: [PATCH] fix misuse of typesafe_cb_cast() in example
Signed-off-by: Yubin Ruan <ablacktsh...@gmail.com>
---
ccan