Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2490361ybd; Mon, 24 Jun 2019 07:19:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKPNierFn0civl0cYH1lo2Ib4zhEjRco+tK7x5XIRA8bTK7zBSY6V9dWrvyEYbR506r5ns X-Received: by 2002:a65:4507:: with SMTP id n7mr809890pgq.291.1561385998541; Mon, 24 Jun 2019 07:19:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561385998; cv=none; d=google.com; s=arc-20160816; b=UB6A8ZxNC60kEjfUxnp4VWzE3+WFgxeyfXiTvHqe3cUKoBhboKXAn+YKYbnQG/UhCg BTuvPXqoy2ZlWoqpKd2/l1tJSnpCNw7D9goEgZDN0SeRIYF0VeoePYvXkfiOJJNFdeBU nIvuhM5ohDUWgLHnQTlcNOclvjNvF19RL7Ngm1ZIxqZw2qF0zMunI/kfaKEoTCh0zO9J zGvUAXfTt8J6cFLJpTTp4aUdWWgGiPFYy38V8k1xgWY7dnHGAVJRU5me1ht2aOmX65fu yJWYVXYk3nLyQvR46rUg5FxW7Q8kdP1xr0TnKkKb6G+JTdZYiSJ0dns0j+rbALOmlozR NIHQ== 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=6Rl1Rw52Am1I8m2WryMsusM3MGfrM8Bk30uCJ+05MEU=; b=QOAHN1kK1jBRArhOlTt+mGBobriod+qNnrqunhZrP5GPX0pc7aNH8GybABwmkOh/9A xcMQdyssSDlFtyrAS7xXfH1WhqIZ1i2mXn64o9SkZA/rqMcZQNDakS48jGwfciZlQXhp EUiNzv065n3JHkIXLy7PawUkP4v0EzfNjQMTlC7Fy4nbwhv2QyTESWFDaovn4YikJO0G p7cNtsC2B/HbPgTPAfFUvpxQzU/u4G8zl4r1kpCgQ4C2LaauaXrP+BX0CdO6u1zyuYzi uLMCAEHFxrGwIZcqEvjXwra53ZPxo1FjG4vD/qNCD6JThEBZ45cjARUvJ0j80T4aKgF9 FNUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ADhfwRf6; 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 207si11396618pfu.258.2019.06.24.07.19.42; Mon, 24 Jun 2019 07:19:58 -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=ADhfwRf6; 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 S1731547AbfFXNwl (ORCPT + 99 others); Mon, 24 Jun 2019 09:52:41 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:42412 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728789AbfFXNwk (ORCPT ); Mon, 24 Jun 2019 09:52:40 -0400 Received: by mail-pg1-f196.google.com with SMTP id k13so990999pgq.9; Mon, 24 Jun 2019 06:52:40 -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=6Rl1Rw52Am1I8m2WryMsusM3MGfrM8Bk30uCJ+05MEU=; b=ADhfwRf6R9ObgqU4OrDi6gyPC9FQsexdSIR7mdd2foTq4NqZfpBHm5MbIwXc9r1Lov BUT9b+YbAeGm0dRjzQZIXSd120rnkhk7gvQeJrurE7Q7vA3J2gSEztsKSBYyJxKuRpcK 6YQPKqLPzGLC/KtBIyK4+rS4CRTt3vkI2Rr4+xX0lBSop0KyViBCJGCM3LvSUig3CvYg GP1cov+BB67FIM+dhcQCLDT51WzrtXYq58YuJM5h7Xs0LIwKZiriV9QYkpgh2Jcld2Se OrtJ37eS2eS+hOLIDaYr4k6Cjes1pJp+zbUxU1PkAfagLYTsMnuFckULBo4q1KfyyNzF KLfw== 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=6Rl1Rw52Am1I8m2WryMsusM3MGfrM8Bk30uCJ+05MEU=; b=ZZxuX+UN8MASv2dFIkfDW2Eu70QeiHndl0pJ3DM7zN8wYeLxTTt5ArU6hpjGGx5T+W trJdUbKq82m3KZEFY/1UhNXX2PAfnF3uwLyIl7CdgHo61Mz8Xt/aC9ffCU5GbXCJA29Z /PSjxo4Lrabnp66o8FbB89vpatj0tDeDRM2ChKteWv2eXPK3CyGkkWydmMX5aiJRTkdA 7HviGdp36vaN5XThgnoGvm74fBRQktmvj+r/tz6+wwFfu5Kn/mShYzehrW/1D6XhJhXC Ju3du1C9vl3ODqGAHSVR5rkSBVTXjsgHHnflpZUZJOPGjuqyW+/Uby5Tb2ilvw9x2Zpf lyag== X-Gm-Message-State: APjAAAVuLVDlLNhNxRus43MxKcqbvDojYn9RJ4wb9sq6cxqk67KHrFTh HHqsZnHZMLZx6Z6cv3B1Agk= X-Received: by 2002:a63:ec13:: with SMTP id j19mr13305911pgh.174.1561384359719; Mon, 24 Jun 2019 06:52:39 -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.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jun 2019 06:52:39 -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 07/15] ARM: ks8695: cleanup cppcheck shifting error Date: Mon, 24 Jun 2019 20:50:57 +0700 Message-Id: <20190624135105.15579-8-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-ks8695/pci.c:33]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour 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