]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - scripts/checkpatch.pl
Merge tag 'auxdisplay-for-linus-v5.1-rc2' of git://github.com/ojeda/linux
[linux.git] / scripts / checkpatch.pl
index 8d8d26b5cbbd8913b649ef6556050f1795f018d5..5b756278df13e8aa7f5daf92914858afbfd24482 100755 (executable)
@@ -6396,19 +6396,6 @@ sub process {
                        }
                }
 
-# check for bool bitfields
-               if ($sline =~ /^.\s+bool\s*$Ident\s*:\s*\d+\s*;/) {
-                       WARN("BOOL_BITFIELD",
-                            "Avoid using bool as bitfield.  Prefer bool bitfields as unsigned int or u<8|16|32>\n" . $herecurr);
-               }
-
-# check for bool use in .h files
-               if ($realfile =~ /\.h$/ &&
-                   $sline =~ /^.\s+bool\s*$Ident\s*(?::\s*d+\s*)?;/) {
-                       CHK("BOOL_MEMBER",
-                           "Avoid using bool structure members because of possible alignment issues - see: https://lkml.org/lkml/2017/11/21/384\n" . $herecurr);
-               }
-
 # check for semaphores initialized locked
                if ($line =~ /^.\s*sema_init.+,\W?0\W?\)/) {
                        WARN("CONSIDER_COMPLETION",