Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3189619ybd; Mon, 24 Jun 2019 21:20:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyWShA9wjg30qfy1rZfZx8xLs7Y088gUOvY0L+cXfFkPy3fXIWw65uJ141b5g2p/Rr8AiHc X-Received: by 2002:a17:902:4e25:: with SMTP id f34mr10654814ple.305.1561436416275; Mon, 24 Jun 2019 21:20:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561436416; cv=none; d=google.com; s=arc-20160816; b=v8pLrhclPKvYNMoqYfHK9UjtDvpOHHqARn2YeezutMm6DvsYf5IQmmw56PbkeZVtHX Bve9avG8gZhsUZnAG48sGX08RaTHRJy1YIGDAMWZHBZn4BnU0afvt2Vgn4iJJA3WbZ+H /4gjgskvyVZFKto1ysJ9/rPSoA3PhpN9MZ+jrhCtY3U+hRA9/47WzZWAFkuxLAakbPad Tj7bJY4Q0PR6FWFPmnKnjBLwnWYF53ESBxMc5cCCULvCrs49yK6mJJrpkoShjRkzfV3A nSOMmOhrxLGVVIBBpUTiq2APC684CXuZstN9pHCGa9+bCt+Mw9ciYpFEetYghPG3fWoo qgnQ== 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=YRyG2m/HTgUXvb9XPa4NKmZS68q/D8dq2TH6hCDyN6g=; b=Z9nRELar5j8cv9i/Y38qQHEh5sl3owHQV8ftQyNrxgihWug9LmIYAHc5Za9bQak1Rb Od2Aowg/r3gC9PQrT5IrRq4zgRrbPs6tz4qbDtm28TTUyEh+Kno8eQM5yxZKLcmhyYqY gRHFDJtN7kLOf6A2/TxvdBwAlW3Oek7uruJ9XUbDSUG4n/jayJdh3gQiFQbDzYUzWdlO GOPXD8g2F02X3EdeFE+QbTBs/BCCkXlIGlPp+3ZImY46fMzQc+Wzco8xFccSlBqhAO4Y GDcBLEntNOtaPlVI5CqSIrelTbN9VvFwf3f61ieK3GYG+Jg4e1wB42m4DMDXgRfGQpQ1 2/aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MD8nMSyW; 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 c38si12128061pgc.65.2019.06.24.21.20.00; Mon, 24 Jun 2019 21:20:16 -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=MD8nMSyW; 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 S1728078AbfFYEFe (ORCPT + 99 others); Tue, 25 Jun 2019 00:05:34 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:36237 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727521AbfFYEFd (ORCPT ); Tue, 25 Jun 2019 00:05:33 -0400 Received: by mail-pf1-f193.google.com with SMTP id r7so8736594pfl.3; Mon, 24 Jun 2019 21:05:32 -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=YRyG2m/HTgUXvb9XPa4NKmZS68q/D8dq2TH6hCDyN6g=; b=MD8nMSyWkqgB9886a77oHe9Ojrkt37f+JaT0Og5afSgCAJEAzkBVNZXdmWchGl4NCa yP1bAIv9Rx40J9EDvwT2D+LvbN8zwdBSQfsOkLf/0tUOsO7zX+Rg6Ne4q8Ggkd5nxrTn A2uViA0BsQQpw5hl0COiSXM5vSMRKQeodOZB/x6Un4p/jRnbfJBNUaYdePJ8fOJWCiE6 tOzWC4oXE+21kpAawt33vXU6s6pFWnNujwFf8UK47wxlnyttO/s6wg3HWZCxuJzZaXSp uf/k1lIYp6hM/mNIIPkU2dBqyu1jniXQsDGE/AxhS3KJGEJvQ7P1PxMY2Wjg9gutgHRH vFAg== 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=YRyG2m/HTgUXvb9XPa4NKmZS68q/D8dq2TH6hCDyN6g=; b=qi+nZga1AUMXBzRPqTLhBFR+kj0PEYWYyiyqW6K4zyIrTxHAAxG3WnDfRHzaJUxer6 oHB0r3O/Y5+8nsJIaykNFmxSTrpJM2c3OxWScvbBSkSWQ6l/HIJgdU3p5gV1eJyyplPT HRsdvY7scYpZ6V8o9eojtAttZgqUyFhONEsecudTk+SZf1KldM6NqnVL4IzquXhs6xI7 aolO8HVMf0OR7fWdJ75+gYUlG7zUur2kwKiIdLDz87XjRKJDbgHgoq3pYRlHzzcQOt3y 04G+4sPwf2LT6qxwxlOo6vxTGBkqMWWkh+Uqn2EJuwjkbQ23pybN9OgSo77pr1mluVv5 2Zbw== X-Gm-Message-State: APjAAAX3sQaOsx7lfawnp3lxBEX8kYeHksqBbjXLg/sGcPGJyh5O1xGD xNIPONEfI9CgsIiZX57YfpA= X-Received: by 2002:a63:c106:: with SMTP id w6mr36891650pgf.422.1561435532450; Mon, 24 Jun 2019 21:05:32 -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.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jun 2019 21:05:31 -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 07/15] ARM: ks8695: cleanup cppcheck shifting error Date: Tue, 25 Jun 2019 11:03:48 +0700 Message-Id: <20190625040356.27473-8-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-ks8695/regs-pci.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-ks8695/regs-pci.h b/arch/arm/mach-ks8695/regs-pci.h index 75a9db6edbd9..7d28a83bb574 100644 --- a/arch/arm/mach-ks8695/regs-pci.h +++ b/arch/arm/mach-ks8695/regs-pci.h @@ -45,9 +45,9 @@ -#define CFRV_GUEST (1 << 23) +#define CFRV_GUEST BIT(23) #define PBCA_TYPE1 (1) -#define PBCA_ENABLE (1 << 31) +#define PBCA_ENABLE BIT(31) -- 2.11.0