Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1470289ybd; Sun, 23 Jun 2019 08:17:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZ4h2in+svSbNee3rYTtB2elUDqhyYKdt99pHQk5VorcFiL1Q7pFymAWgxBc8dDCkhL/N9 X-Received: by 2002:a17:90a:fa07:: with SMTP id cm7mr19431756pjb.115.1561303054575; Sun, 23 Jun 2019 08:17:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561303054; cv=none; d=google.com; s=arc-20160816; b=u7BUY+Djko5pNQ4/coxICCvNRBwRFtUGOs6R83TobSovFwqVsSSCrYinqAVxoi6yV7 yMQp5B0Mb6Tzl9ql13tVSz7JyxGR2ZhaLKsxYyqP99L2UxhYU+Uifg4z5UIlTFxBvsZG ADqeO1Mh9dkgUmvnj/Jf+DYRMVOqsVzFFiHSjw6BF+ytnTbEuYZt/YKyuGYFbW4TFYMC sEBRiD01YRcl3XRiVod48Wwhp5cvIgrsxp5Ay56NosCAAFXKKpT5AMzKU0xKwEieeBlt ltvPijFiZUphzEESrMw2z/deFOtFXAcR7ldntDZPXahQMOjWE0zmixrT667iVf0ek/fz 7J+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:to:from:dkim-signature; bh=ZxzCRyv0CcL1EwsY/PU88e+Vu4wijfnzZQqmGfRcvmQ=; b=iYuaUOrkoCNOLEk37StxaEaKu65Mgv9ZVhJUEN2k2oAuhDFNweh34tozzWuuCqjaUJ ECnmiq6NF8mQFwt7ZKqZZLJGtzERTNy3sbNHYML7ZcV456sctwIHNaEKB0AbrZvt6Qnc 6NQEx7+Y9PI5BvprtHT5gXh93WAC163es3+wpJzkZWDPYsI0bt6o2QNTHhW+KVg4pWQS xlk4cGBbSe3muWxkIU0YvtE6ffSDnZ3iuHR4hNpGDVGabwDcplQd4IwY4La/awRCpZOC Ak0ZsCpEmajzG5cuDaZPXQuMNkC0q7EqhS2eTX+A8XNWteuq4XBRQ6Ip36z2D0n0yRze +zrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vgTCL0YB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c3si7915978pgh.340.2019.06.23.08.17.18; Sun, 23 Jun 2019 08:17:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vgTCL0YB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727050AbfFWPQc (ORCPT + 99 others); Sun, 23 Jun 2019 11:16:32 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:32790 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726399AbfFWPQb (ORCPT ); Sun, 23 Jun 2019 11:16:31 -0400 Received: by mail-pf1-f196.google.com with SMTP id x15so6073029pfq.0; Sun, 23 Jun 2019 08:16:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=ZxzCRyv0CcL1EwsY/PU88e+Vu4wijfnzZQqmGfRcvmQ=; b=vgTCL0YBz+SjMkIA6M21UqkDR5Sm+MyXUpUAt2ppFbRP6h4lQkU1ALA8+1lifxZEqC CrHNO4PI9dNjKUmiw53MJEiUKVo4QWpH/TYezTMZGEVvV632GITn4gTxn7XWyrz9Y/Ha yRq07HeukfO0uzwequyJA8X/R39UE2QsHIWyY0KH8k4ElHtAZoKH0j+NJFiZHH+6O1Jl 0b22ljuBF+fFNV4xIrj917s+IRzHbm1Hbai3C4Kp20nRBh+6vANvN0qniAx7/KVSTTVz n1/3ZvCv4h8Dq/Y2KI8Tq3eFpkRDadVzgekap6P7+iCBB5qWI7zHOcmQMHSL9/y8VxCi YFuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=ZxzCRyv0CcL1EwsY/PU88e+Vu4wijfnzZQqmGfRcvmQ=; b=DW/RhgUpIWaUXk1wyEEUi/2DS3dTITAEU4Qy4F2p0vCz4vXyGfHhUigMcbTxJnkCLs RCZavpG7a1oNL6oSs6zEgMld0vP3kSC2wMi4h227OLlWHMoUzmGnejkEyrnV7TBVAY2R KTx7JcwwHpl5GMcJoEkBOCSjtQkSwsK2ayxURYpBtIfRAErxUHsp8SLk00L94hweMMr0 2ypJaDmUIOHANQS+zfo4bQQSPZHFxYofI9HG0T5vrUpEKuT2SGW/un0a2cmrhKbFS4PF csGHZLPwTXS7VXn6qEjtvtIG6r/bcB72MdMPEpcS+qfuBhlYGv6epN5Sl2IULczNTS48 IPiw== X-Gm-Message-State: APjAAAVuRPfu77A2HPbDqvLXGykb+yRw3HbGKfeYfDcHqMUuwwsb+LPV JlvI+LqY14cIzIge/WEBEO4= X-Received: by 2002:a17:90a:9b88:: with SMTP id g8mr19522545pjp.100.1561302990450; Sun, 23 Jun 2019 08:16:30 -0700 (PDT) Received: from debian.net.fpt ([1.55.47.94]) by smtp.gmail.com with ESMTPSA id p6sm8329194pgs.77.2019.06.23.08.16.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Jun 2019 08:16:29 -0700 (PDT) From: Phong Tran To: mark.rutland@arm.com, kstewart@linuxfoundation.org, songliubraving@fb.com, andrew@lunn.ch, peterz@infradead.org, nsekhar@ti.com, ast@kernel.org, jolsa@redhat.com, netdev@vger.kernel.org, gerg@uclinux.org, lorenzo.pieralisi@arm.com, will@kernel.org, linux-samsung-soc@vger.kernel.org, daniel@iogearbox.net, tranmanphong@gmail.com, festevam@gmail.com, gregory.clement@bootlin.com, allison@lohutok.net, linux@armlinux.org.uk, krzk@kernel.org, haojian.zhuang@gmail.com, bgolaszewski@baylibre.com, tony@atomide.com, mingo@redhat.com, linux-imx@nxp.com, yhs@fb.com, sebastian.hesselbarth@gmail.com, illusionist.neo@gmail.com, jason@lakedaemon.net, liviu.dudau@arm.com, s.hauer@pengutronix.de, acme@kernel.org, lkundrak@v3.sk, robert.jarzmik@free.fr, dmg@turingmachine.org, swinslow@gmail.com, namhyung@kernel.org, tglx@linutronix.de, linux-omap@vger.kernel.org, alexander.sverdlin@gmail.com, linux-arm-kernel@lists.infradead.org, info@metux.net, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, alexander.shishkin@linux.intel.com, hsweeten@visionengravers.com, kgene@kernel.org, kernel@pengutronix.de, sudeep.holla@arm.com, bpf@vger.kernel.org, shawnguo@kernel.org, kafai@fb.com, daniel@zonque.org Subject: [PATCH 14/15] ARM: bpf: cleanup cppcheck shifting error Date: Sun, 23 Jun 2019 22:13:12 +0700 Message-Id: <20190623151313.970-15-tranmanphong@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190623151313.970-1-tranmanphong@gmail.com> References: <20190623151313.970-1-tranmanphong@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [arch/arm/net/bpf_jit_32.c:618]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour Signed-off-by: Phong Tran --- arch/arm/net/bpf_jit_32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/net/bpf_jit_32.c b/arch/arm/net/bpf_jit_32.c index adff54c312bf..9c3f8fb871e5 100644 --- a/arch/arm/net/bpf_jit_32.c +++ b/arch/arm/net/bpf_jit_32.c @@ -612,7 +612,7 @@ static inline void emit_a32_mov_se_i64(const bool is64, const s8 dst[], const u32 val, struct jit_ctx *ctx) { u64 val64 = val; - if (is64 && (val & (1<<31))) + if (is64 && (val & (1U<<31))) val64 |= 0xffffffff00000000ULL; emit_a32_mov_i64(dst, val64, ctx); } -- 2.11.0