Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2488955ybd; Mon, 24 Jun 2019 07:18:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzhQV0aoKPWSNqYcGShzL4T3115ex9etaS3QoB9+pA146wmhpRHdCCoaJhmtsmwu6lqFQaP X-Received: by 2002:a17:90a:a00d:: with SMTP id q13mr24852998pjp.80.1561385914717; Mon, 24 Jun 2019 07:18:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561385914; cv=none; d=google.com; s=arc-20160816; b=A5YcJdh1/aKFOz7vBfQGbeRfZC8mcTzO96cS2cKXl/VgLcIH+SPJbMxMdyRJddyo72 6zQlixuH84+Ju+VgkQ1E+J3qRr2XpEHM667xz+q4L917SxaHR5jNkE3iSeoKH426RqmE 603tXsLSdU0pZIl1jgDIMrmd1PlIHdUFotC1zZQXASkgt04nYaCIHHKjBcD0daFnG5Gl fg1FuWQ6zjISCoUGo4eOUNm1LzYM6Z8SDa0X2Me2AwRpEkUtaM2s0TYVAkkXAOGz2VJA jqRjgtP73L2G+Cd6wRoAFcXLAYkN3iv3ObelZETCiCZvwfkYSu13nH2g+II4skYQfxZp abew== 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:cc:to:from:dkim-signature; bh=4YxMHBm2SnqxBVKghZYd5jwr6fv/9cNEFelVXaGNkFk=; b=zFZC7R/dCG0H6zUz5giXx0lbBWbDQ1JKcL3A6ncPeRQHejJCAz9tQNrcFQtKFSq2Tj C+2lg/Yr9D6oKhhOmW8gTeh8oGvBaOescdv/xvWw1pIcCt+vK9outvXx24ZSJUD62iMO lsXNmgG4OjwvkNH1VV/4w1/bWEuf2fLuZRTCWViDTLLn/5N1txXIt0i3BHwORJIqrTiB s/gRChLXXDl91T2BkMurItj6zgH1cwTqpT31j3LS7AhoOPsueFnb1gPVympZQXeqT9yV vi7QROKf3bwuaaJMuXX3keN+hvbLw0qkRFxBm55YHYsZWIrm/Uxj+RpcK0ALlF57+9lV IDUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e8ZSR6ho; 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 l13si10913429pjq.69.2019.06.24.07.18.19; Mon, 24 Jun 2019 07:18: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=e8ZSR6ho; 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 S1731509AbfFXNwU (ORCPT + 99 others); Mon, 24 Jun 2019 09:52:20 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:44469 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725562AbfFXNwU (ORCPT ); Mon, 24 Jun 2019 09:52:20 -0400 Received: by mail-pg1-f195.google.com with SMTP id n2so7147603pgp.11; Mon, 24 Jun 2019 06:52:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4YxMHBm2SnqxBVKghZYd5jwr6fv/9cNEFelVXaGNkFk=; b=e8ZSR6ho5uxjtHe5N1QmLicgOcuVPwCpB/A/NgnLkQGNtmyHPyOLAH+Z/IpaGHLRH/ tl834F4hSp6nS/C7pxd5+PG1+Sn3C+ROQTY206/glbpHIzaUZQR+QaT40ypUpwR7XrH0 G98uEZywsseRhjvTLq+mZdn/PnwsXQ6kEy7EetSndtI+OAHGoGsE543Oa95dkJ09zSbd E2mmS+F3jlZoKXtXtcaJx5I+Pjq2HaBAHNvSOW/APKdPusYj/3THxUUaUeSAeLEPrHRP r3ohEY6mvxEDbAra8k+u1hLj9w1moVPGNe+ThXJ72ERDJ4m/sxl3XeQbQ51XMR1UAxDn pPCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4YxMHBm2SnqxBVKghZYd5jwr6fv/9cNEFelVXaGNkFk=; b=fBlns+bZddajcxm+yjock4LH/mPUTOV9KODlDPF8NRGN1PB7IIzGxiBUQbOmOGbEUx jOJr6SwFfjQHnrzswqCgm2Vb0K1T/UuACb9ooeCBMc3rCm+NRxGJcRDMyg4fMf5LHLoF Mkcgf32mY/N1hB1FSJ+sM+HRJbBFe3JXOv0ufyrAVI107DC1H99eMOh1zc3jgasHaOEn Tp41l+wjKHz4mGuqlYWwxKbzwTkcYpFbEWqHOONm8gav64ytP3MaoP9a4GdEYWJG/hst MLZOsyTiMHuLt71Gvt60qaQ4KdVLYgbbHk6bgr1meA+V0u8woktuMu7vq9HxiM7mJOBE JwzA== X-Gm-Message-State: APjAAAWhBcQ8RqOL8124OYbyK7E0Gm0jDBn5z4RQvvPiH8gUBvUSd9io B/p9ea1gXG8KECK+zkYl2YE= X-Received: by 2002:a63:4f53:: with SMTP id p19mr1113561pgl.327.1561384339119; Mon, 24 Jun 2019 06:52:19 -0700 (PDT) Received: from debian.net.fpt ([58.187.168.105]) by smtp.gmail.com with ESMTPSA id 85sm11187901pgb.52.2019.06.24.06.52.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jun 2019 06:52:18 -0700 (PDT) From: Phong Tran To: tranmanphong@gmail.com Cc: acme@kernel.org, alexander.shishkin@linux.intel.com, alexander.sverdlin@gmail.com, allison@lohutok.net, andrew@lunn.ch, ast@kernel.org, bgolaszewski@baylibre.com, bpf@vger.kernel.org, daniel@iogearbox.net, daniel@zonque.org, dmg@turingmachine.org, festevam@gmail.com, gerg@uclinux.org, gregkh@linuxfoundation.org, gregory.clement@bootlin.com, haojian.zhuang@gmail.com, hsweeten@visionengravers.com, illusionist.neo@gmail.com, info@metux.net, jason@lakedaemon.net, jolsa@redhat.com, kafai@fb.com, kernel@pengutronix.de, kgene@kernel.org, krzk@kernel.org, kstewart@linuxfoundation.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux@armlinux.org.uk, liviu.dudau@arm.com, lkundrak@v3.sk, lorenzo.pieralisi@arm.com, mark.rutland@arm.com, mingo@redhat.com, namhyung@kernel.org, netdev@vger.kernel.org, nsekhar@ti.com, peterz@infradead.org, robert.jarzmik@free.fr, s.hauer@pengutronix.de, sebastian.hesselbarth@gmail.com, shawnguo@kernel.org, songliubraving@fb.com, sudeep.holla@arm.com, swinslow@gmail.com, tglx@linutronix.de, tony@atomide.com, will@kernel.org, yhs@fb.com Subject: [PATCH V2 05/15] ARM: footbridge: cleanup cppcheck shifting error Date: Mon, 24 Jun 2019 20:50:55 +0700 Message-Id: <20190624135105.15579-6-tranmanphong@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190624135105.15579-1-tranmanphong@gmail.com> References: <20190623151313.970-1-tranmanphong@gmail.com> <20190624135105.15579-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/mach-footbridge/dc21285.c:236]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour Signed-off-by: Phong Tran --- arch/arm/mach-footbridge/dc21285.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-footbridge/dc21285.c b/arch/arm/mach-footbridge/dc21285.c index 8b81a17f675d..edea41e0256f 100644 --- a/arch/arm/mach-footbridge/dc21285.c +++ b/arch/arm/mach-footbridge/dc21285.c @@ -230,7 +230,7 @@ static irqreturn_t dc21285_parity_irq(int irq, void *dev_id) printk("\n"); cmd = *CSR_PCICMD & 0xffff; - *CSR_PCICMD = cmd | 1 << 31; + *CSR_PCICMD = cmd | BIT(31); /* * back off this interrupt -- 2.11.0