[PATCH v5 0/6] kernel.h: container_of() pointer checking

2017-05-25 Thread Ian Abbott
TL;DR: This series of patches splits BUILD_BUG related macros out of "include/linux/bug.h" into new file "include/linux/build_bug.h" (patch 5), and changes the pointer type checking in the `container_of()` macro to deal with pointers of array type better (patch 6). Patches 1 to 4 are

[PATCH v5 0/6] kernel.h: container_of() pointer checking

2017-05-25 Thread Ian Abbott
TL;DR: This series of patches splits BUILD_BUG related macros out of "include/linux/bug.h" into new file "include/linux/build_bug.h" (patch 5), and changes the pointer type checking in the `container_of()` macro to deal with pointers of array type better (patch 6). Patches 1 to 4 are