[PATCH 0/3] fix typing of enums

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This series teaches sparse to be as strict with enums as with
structs & unions instead of considering them as equivalent
to integers.

The 1st patch is purely aesthetical, the meat is in the 3rd one.

Surprisingly, this fix reveals ~200 enum/int errors/abuses in the
kernel, some (or most) clearly trying to workaround the problem
with bitwise & enum at the origin of this series.

Luc Van Oostenryck (3):
  fix show typename of enums
  add testcase for enum / int type difference
  fix enum typing

 evaluate.c                 |  5 ++-
 show-parse.c               |  2 +-
 validation/enum-mismatch.c |  4 +-
 validation/typediff-enum.c | 82 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 88 insertions(+), 5 deletions(-)
 create mode 100644 validation/typediff-enum.c

-- 
2.17.0

--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux