warnings: fix alignment warnings

These warnings are for architectures that do not
support non-aligned word access.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
Øyvind Harboe
2010-09-03 22:49:37 +02:00
parent 32ab98c9e9
commit f6a3fc818b
13 changed files with 23 additions and 23 deletions

View File

@@ -80,7 +80,7 @@ typedef bool _Bool;
*/
#define container_of(ptr, type, member) ({ \
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
(type *)( (char *)__mptr - offsetof(type,member) );})
(type *)( (void *) ( (char *)__mptr - offsetof(type,member) ) );})
/**