[PATCH 0/2] sparse v0.6.4 regression

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

 



Hi Luc,

I noticed a regression introduced by commit a69f8d70 which, effectively,
disables the 'memcpy-max-count' check. (I had done a 'make CC=cgcc' in
git, expecting to see some warnings, including the 'memcpy-max-count'
check, and it didn't appear ... :( ). Sorry for not noticing before, but
the 'sparse' make target is supposed to suppress that warning for the
pack-revindex.c file, so ... ;P

[I tried finding your last 'kernel sparse warnings change' list email
to see how many of these warnings still appear in the kernel ... well
it would be zero with v0.6.4!]

I also included the 'case label' patch I sent before, this time with
a commit message and a test. (The test could be extended when sparse
is updated to include the full label-positioning of C23!).

ATB,
Ramsay Jones

Ramsay Jones (2):
  sparse: fix broken 'memcpy-max-count' check
  parse: warn about a 'case label' on empty statement

 parse.c                        |  5 +++++
 sparse.c                       |  2 +-
 validation/byte-count-max.c    | 28 ++++++++++++++++++++++++++++
 validation/label-positioning.c | 22 ++++++++++++++++++++++
 4 files changed, 56 insertions(+), 1 deletion(-)
 create mode 100644 validation/byte-count-max.c
 create mode 100644 validation/label-positioning.c

-- 
2.33.0



[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