aboutsummaryrefslogtreecommitdiffstats
path: root/.gitattributes
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2018-08-21 21:57:26 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2018-08-22 10:52:48 -0700
commitd729593e492e1e4c7cd8a418ee227d0bd4d5f36d (patch)
tree364ee3dd079163719b1e75a0914517ecfc83cbc2 /.gitattributes
parentlib/test_hexdump.c: fix failure on big endian cpu (diff)
downloadlinux-dev-d729593e492e1e4c7cd8a418ee227d0bd4d5f36d.tar.xz
linux-dev-d729593e492e1e4c7cd8a418ee227d0bd4d5f36d.zip
checkpatch: add a --strict test for structs with bool member definitions
A struct with a bool member can have different sizes on various architectures because neither bool size nor alignment is standardized. So emit a message on the use of bool in structs only in .h files and not .c files. There is the real possibility that this test could have a false positive when a bool is declared as an automatic, so limit the test to .h files where the only false positive is for declarations in static inline functions. Link: http://lkml.kernel.org/r/95477c93db187bab6da8a8ba7c57836868446179.camel@perches.com Signed-off-by: Joe Perches <joe@perches.com> Suggested-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions