Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3189062ybd; Mon, 24 Jun 2019 21:19:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxaECMbtgKnrw3fChhZTZgAHNtXh806vQSSc8QSMAeF/teXkdcSls6D6U7UvUIBaXKWyzfQ X-Received: by 2002:a17:902:2f:: with SMTP id 44mr91383850pla.5.1561436366162; Mon, 24 Jun 2019 21:19:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561436366; cv=none; d=google.com; s=arc-20160816; b=w3FGog43fnQa3Z/JeC9wnGEGKFoySZovb7EMId1B+jXqjFjNeYC/qM3Oy6SHBjdmN1 EKWwOfO5fxEeSHkNUWlpu710gkbzIznJFfnU6tcIEUvmyvjyazhYrka4rfsc3Hc7IYll 6B3oiCy6sh2gA0zGDWOXPFppIo8yqSUEqqkxEY0vjuTeT4lpRofUyFtMUOOk4Iu2Hb9w NYsBqwVJSzk9mSu7fS8NwguZtxmrXtmx0rhuMGD4MaNrU4QW01sN+oH9rgxrTrz0rste 8pFJQmFD40cuXlNrjwUHIjBk6pGElRYnKWPv6d+qbEz4Oxc0jNF27cHF6sU00Al4FI8z lGNA== 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=NwvK03LyNmiunrWDZlJJgmSS8YZo2C1RqTMo9dix3Fs=; b=IS7mmu5yoDFY9MkUTjRhurkcpH8pnmEYjhjBSNaDSTMtr0g5ZsmN7MDjuXBZiSwLHe zOykST2JVR+1Otmp9WF5Infx93z8MLqjjTItRcg7/NExhFugMlF1CPFXFb4zJ3YIw6HY pBBvGvTmJVpMwFpi7x2f16gqQ37B8t35JxfPJTD34xgg+KnF45QgzbkWeu6ZdT7TtABY o1w+7z1jeyN251lrqor2KKckqbPZ2AAMT02ZxtfIT/M2T92A4gxjsD8EJrNHrw9u+N39 W8Bwhm+dkQKkr113Hq5gfWTX0iGQKZTlLRrT/OpNxaw+DM+h8MwQodPPmlW88SOWJlJr pMaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AAoNPyt3; 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 m13si1465657pjv.98.2019.06.24.21.19.10; Mon, 24 Jun 2019 21:19:26 -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=AAoNPyt3; 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 S1727913AbfFYEFM (ORCPT + 99 others); Tue, 25 Jun 2019 00:05:12 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:33115 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727521AbfFYEFL (ORCPT ); Tue, 25 Jun 2019 00:05:11 -0400 Received: by mail-pf1-f195.google.com with SMTP id x15so8746469pfq.0; Mon, 24 Jun 2019 21:05:11 -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=NwvK03LyNmiunrWDZlJJgmSS8YZo2C1RqTMo9dix3Fs=; b=AAoNPyt3mDNtyitZPCM2n9R1V+8lOxDrljEZ9C4uePvYyDM/UJsfFgcIlJM3WtkGkI /oWTlZnnBCoIeJwiJ0/htBXQ9r7aGBcPEVXERVZj0lqExPoE3RsTEvWGrHFhU3As3WBC X1MWbeVNF//UzWsGYwNFDKmkYbQFP9QWlTlVi73U4C7ORLit+UBWKBGVF/eJGYqUykSZ EFXlvTI2lYGJbXPMBrXQwpZOvOhPAgAa3UUu4keLtM8PKiKs0hzkLkG+LypHuwlj8+VO Hn2f5kRJ3Tkfzgj+4/5f9IDpKVgUtO3y+x6IuL8gaprH6VYg/4H8Vh8blaihIkKxk9XE Q7iA== 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=NwvK03LyNmiunrWDZlJJgmSS8YZo2C1RqTMo9dix3Fs=; b=YQfv2WvpW/b2cSzYRw2QLFFbeRTnS/OHAlMW9UVgqzW0O1C/zdcH2f55RvJ6n1Wrme GxlgR/jL6H5JqwHYzuMCPPaPJG7pC1EILfDpPumR47hKCblSvD/i3uiD21ZAxDfHBKuF FSsKkxgcjUUmCnwf9HyhYjFP0yepNtLPesDZHrLwHUb46tAjEyIzedH1m/pYK1NXOlsP ThjeUeZjkqPBstXQVAF7XLuXl46ZVetR7Bj7JBnGDQwV3wUqOsGVuuzk5GmM+pN8JxIQ 8BRGTMAk1qkt94E0XgcILWCPbrjpY8yqnnwzwKEbD0Hgkk0XKJfFelKxbjGRQe7+eeXT Cjcg== X-Gm-Message-State: APjAAAW2wVtUuA8VI2B2FzRYM1xYRkpgkQ9A9Pc5gtZTCzJPNsDaIDUC 5QCcYxfwcyK48VHPrUMdJtc= X-Received: by 2002:a63:d1d:: with SMTP id c29mr26905708pgl.251.1561435510818; Mon, 24 Jun 2019 21:05:10 -0700 (PDT) Received: from debian.net.fpt ([58.187.168.105]) by smtp.gmail.com with ESMTPSA id b24sm12408944pfd.98.2019.06.24.21.05.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jun 2019 21:05:10 -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 V3 05/15] ARM: footbridge: cleanup cppcheck shifting error Date: Tue, 25 Jun 2019 11:03:46 +0700 Message-Id: <20190625040356.27473-6-tranmanphong@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190625040356.27473-1-tranmanphong@gmail.com> References: <20190624135105.15579-1-tranmanphong@gmail.com> <20190625040356.27473-1-tranmanphong@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is error from cppcheck tool "Shifting signed 32-bit value by 31 bits is undefined behaviour errors" change to use BIT() marco for improvement. 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