* [LTP] [PATCH 1/2] tools/sparse: Update to v0.6.4
@ 2022-04-12 11:06 Richard Palethorpe via ltp
2022-04-12 11:06 ` [LTP] [PATCH 2/2] tools/sparse: Allow null pointer subtraction Richard Palethorpe via ltp
2022-04-14 15:32 ` [LTP] [PATCH 1/2] tools/sparse: Update to v0.6.4 Petr Vorel
0 siblings, 2 replies; 4+ messages in thread
From: Richard Palethorpe via ltp @ 2022-04-12 11:06 UTC (permalink / raw)
To: ltp; +Cc: Richard Palethorpe
Use the latest version of Sparse upstream.
Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
---
tools/sparse/sparse-src | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/sparse/sparse-src b/tools/sparse/sparse-src
index 8af243292..c4706aa76 160000
--- a/tools/sparse/sparse-src
+++ b/tools/sparse/sparse-src
@@ -1 +1 @@
-Subproject commit 8af2432923486c753ab52cae70b94ee684121080
+Subproject commit c4706aa764f3ae68258ba60be6325a5662900362
--
2.35.1
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [LTP] [PATCH 2/2] tools/sparse: Allow null pointer subtraction
2022-04-12 11:06 [LTP] [PATCH 1/2] tools/sparse: Update to v0.6.4 Richard Palethorpe via ltp
@ 2022-04-12 11:06 ` Richard Palethorpe via ltp
2022-04-14 15:35 ` Petr Vorel
2022-04-14 15:32 ` [LTP] [PATCH 1/2] tools/sparse: Update to v0.6.4 Petr Vorel
1 sibling, 1 reply; 4+ messages in thread
From: Richard Palethorpe via ltp @ 2022-04-12 11:06 UTC (permalink / raw)
To: ltp; +Cc: Richard Palethorpe
Used for the offsetof trick. Technically it is undefined behavior. A
patch to Sparse is waiting upstream:
https://lore.kernel.org/linux-sparse/20220321112119.23308-1-rpalethorpe@suse.com/T/#u
In the meantime we can disable the warning to make it compile.
Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
---
tools/sparse/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/sparse/Makefile b/tools/sparse/Makefile
index 4247dd86e..d35c9cabf 100644
--- a/tools/sparse/Makefile
+++ b/tools/sparse/Makefile
@@ -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
--
2.35.1
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [LTP] [PATCH 1/2] tools/sparse: Update to v0.6.4
2022-04-12 11:06 [LTP] [PATCH 1/2] tools/sparse: Update to v0.6.4 Richard Palethorpe via ltp
2022-04-12 11:06 ` [LTP] [PATCH 2/2] tools/sparse: Allow null pointer subtraction Richard Palethorpe via ltp
@ 2022-04-14 15:32 ` Petr Vorel
1 sibling, 0 replies; 4+ messages in thread
From: Petr Vorel @ 2022-04-14 15:32 UTC (permalink / raw)
To: Richard Palethorpe; +Cc: ltp
Hi Richie,
obviously correct.
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LTP] [PATCH 2/2] tools/sparse: Allow null pointer subtraction
2022-04-12 11:06 ` [LTP] [PATCH 2/2] tools/sparse: Allow null pointer subtraction Richard Palethorpe via ltp
@ 2022-04-14 15:35 ` Petr Vorel
0 siblings, 0 replies; 4+ messages in thread
From: Petr Vorel @ 2022-04-14 15:35 UTC (permalink / raw)
To: Richard Palethorpe; +Cc: ltp
Hi Richie,
Reviewed-by: Petr Vorel <pvorel@suse.cz>
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
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-04-14 15:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-12 11:06 [LTP] [PATCH 1/2] tools/sparse: Update to v0.6.4 Richard Palethorpe via ltp
2022-04-12 11:06 ` [LTP] [PATCH 2/2] tools/sparse: Allow null pointer subtraction Richard Palethorpe via ltp
2022-04-14 15:35 ` Petr Vorel
2022-04-14 15:32 ` [LTP] [PATCH 1/2] tools/sparse: Update to v0.6.4 Petr Vorel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox