From patchwork Tue Apr 12 11:06:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Palethorpe X-Patchwork-Id: 1616193 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.com header.i=@suse.com header.a=rsa-sha256 header.s=susede1 header.b=cz5rTyvY; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kd2wr1bBhz9sCD for ; Tue, 12 Apr 2022 21:06:51 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 84B053CA53D for ; Tue, 12 Apr 2022 13:06:46 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [IPv6:2001:4b78:1:20::6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 5A82F3C02B1 for ; Tue, 12 Apr 2022 13:06:45 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-6.smtp.seeweb.it (Postfix) with ESMTPS id D845C1400760 for ; Tue, 12 Apr 2022 13:06:44 +0200 (CEST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 00A581F856; Tue, 12 Apr 2022 11:06:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1649761604; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Hiri6qv/4SKaq0sG+N8y7Nrbtv3cd2u500zjZOFq2vA=; b=cz5rTyvYluXgNQM0ROT9Xxnk9obWXYxaeqGocNDCWFcwJq97Lgcy3e1Uo840LAMMwHoRvr hL2cZbs2E4lWCocUAGrzbzDaClh3fGdGmJ+uHWY0CebjohGfmzDjkAjFC/+7GkLIrjskM0 t5qqf12Co1gxvLo85N0vDtKaQMj1//g= Received: from g78.suse.de (unknown [10.163.24.182]) by relay2.suse.de (Postfix) with ESMTP id BE083A3B89; Tue, 12 Apr 2022 11:06:43 +0000 (UTC) To: ltp@lists.linux.it Date: Tue, 12 Apr 2022 12:06:30 +0100 Message-Id: <20220412110631.13865-1-rpalethorpe@suse.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-6.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-6.smtp.seeweb.it Subject: [LTP] [PATCH 1/2] tools/sparse: Update to v0.6.4 X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Richard Palethorpe via ltp From: Richard Palethorpe Reply-To: Richard Palethorpe Cc: Richard Palethorpe Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Use the latest version of Sparse upstream. Signed-off-by: Richard Palethorpe Reviewed-by: Petr Vorel --- 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 From patchwork Tue Apr 12 11:06:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Palethorpe X-Patchwork-Id: 1616194 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.com header.i=@suse.com header.a=rsa-sha256 header.s=susede1 header.b=ez9fp+0p; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kd2x20Hq2z9sGG for ; Tue, 12 Apr 2022 21:07:02 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id C64963CA548 for ; Tue, 12 Apr 2022 13:06:58 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [IPv6:2001:4b78:1:20::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id BFC403CA54D for ; Tue, 12 Apr 2022 13:06:45 +0200 (CEST) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-3.smtp.seeweb.it (Postfix) with ESMTPS id 0A39A1A00247 for ; Tue, 12 Apr 2022 13:06:44 +0200 (CEST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 48BFD210ED; Tue, 12 Apr 2022 11:06:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1649761604; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VyAQXIjkDqah1VcM50CWM5rnLRrC1EgsdsiSAvnB3Pk=; b=ez9fp+0pbXoWV5guuzbeMejuqvzNXyyjGlBmY949GLxOPdZFMUQ7jwsSfD89jTwBB9xOyR 4aqt9Y/QucrfxcEy9uwyDow1oeU63spJQrLC1ohLqvfX/dnKXH/oF98Kzug2dUDduOO9WX A/Vd6IwjKATkJw8pWZUgYvDM6BpnO5c= Received: from g78.suse.de (unknown [10.163.24.182]) by relay2.suse.de (Postfix) with ESMTP id 10AFAA3B89; Tue, 12 Apr 2022 11:06:44 +0000 (UTC) To: ltp@lists.linux.it Date: Tue, 12 Apr 2022 12:06:31 +0100 Message-Id: <20220412110631.13865-2-rpalethorpe@suse.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220412110631.13865-1-rpalethorpe@suse.com> References: <20220412110631.13865-1-rpalethorpe@suse.com> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-3.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-3.smtp.seeweb.it Subject: [LTP] [PATCH 2/2] tools/sparse: Allow null pointer subtraction X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Richard Palethorpe via ltp From: Richard Palethorpe Reply-To: Richard Palethorpe Cc: Richard Palethorpe Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" 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 Reviewed-by: Petr Vorel --- 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