tools/sparse: Update to v0.6.4
PATCH 1/2 tools/sparse: Update to v0.6.4
Use the latest version of Sparse upstream.
Signed-off-by Richard Palethorpe <[email protected]>
--- tools/sparse/sparse-src | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/sparse/sparse-src +1 -1
@@ -1 +1 @@ -Subproject commit 8af2432923486c753ab52cae70b94ee684121080 +Subproject commit c4706aa764f3ae68258ba60be6325a5662900362
Signature · 5 lines
2.35.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH 2/2 tools/sparse: Allow null pointer subtraction
Used for the offsetof trick. Technically it is undefined behavior. A patch to Sparse is waiting upstream:
https://lore.kernel.org/linux-sparse/[email protected]/T/#u
In the meantime we can disable the warning to make it compile.
Signed-off-by Richard Palethorpe <[email protected]>
--- tools/sparse/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/sparse/Makefile +1 -1
@@ -20,7 +20,7 @@ $(SPARSE_SRC)/libsparse.a: $(SPARSE_SRC)/Makefile HOST_MAKE_TARGETS := sparse-ltp MAKE_DEPS += $(SPARSE_SRC)/libsparse.a -HOST_CFLAGS += -I$(SPARSE_SRC) -Werror +HOST_CFLAGS += -I$(SPARSE_SRC) -Werror -Wno-null-pointer-subtraction HOST_LDLIBS += $(SPARSE_SRC)/libsparse.a
Signature · 5 lines
2.35.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH 2/2] tools/sparse: Allow null pointer subtraction
Hi Richie,
Reviewed-by Petr Vorel <[email protected]>
Fortunately we can workaround the issue with compiler flag. Hopefully we never need to fork remote repo due need to add a patch to source code.
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Hi Richie,
obviously correct.
Reviewed-by Petr Vorel <[email protected]>
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp