Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2488496ybd; Mon, 24 Jun 2019 07:18:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwrdB9o5r8b2KX7rjKotyEsMSG+hPFfr5CjffJTKAMfLJi9/F5O1/JxX32yxsfNNe+h/Nz2 X-Received: by 2002:a17:902:d20a:: with SMTP id t10mr39546571ply.52.1561385888820; Mon, 24 Jun 2019 07:18:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561385888; cv=none; d=google.com; s=arc-20160816; b=l2jjD7PAJhrpMkcJFi+KKd9XfUMdXd5kcQEjjihRr0znIwQP2owa/y9PMQdISxIGKd lC1Pf9FPt1tzDQc1MordlqqHh2SzQjp/sqXxoIvoSzLcD6WJh2DIZLBEpdTHjzaZCaXE 8G2/8JvIHgoLTwx1AkSwU498Xiat9Pmlko9/wwFTBN2aE5735iq1BnaC+a16PGLT8njZ eCVjl3sxDphQAaFPr32qDfRpsCttNxYtF1Cs/8Ng1Gf2E0lRPiZolPGqPBkj3bjh5I6S UyLybfHwSDIKZb/7sFdu1J1hokm6cwG7BwwSGzdp4WVQvWiNrt5NBszefomI8NmRdU7c 0rsg== 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=XeelbuqeW5y33N8d1ijYmgxZuObEd378TU1ddXNdHBg=; b=DgLPtAwrI+J9LeJqLwWGK8+jBQH9looo9Ehh84OWcS8GOtlfX1f3fyghkszEfji0cp 8HZ7rQrWREGYgqaR2w+Tc0kKAqrdLy0dhZRjGYditj/bG9w7j8AikkBHFfNPeITeCeI7 dvnM0Q+lO0BaSnaM90qGj8MNt+xETZfg4eU7SBGugN761L8NVVDfFb+UMmxAyxQn8Vcl m7sZok7RKmTXL6exjuyQKrIEfIDV8mRBrXl9sE5PGpuFxxLIEn6wq8xTmnvlbBVjPWlg guaZrolbGhZoIVQ4tM3YSQSEdu1PV+TsdzhgipqCmFe3SJc2EQp0rppD6r/N1ctHIKAM Amew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eZDQHFQE; 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 e8si9656830pgs.308.2019.06.24.07.17.53; Mon, 24 Jun 2019 07:18:08 -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=eZDQHFQE; 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 S1731453AbfFXNvr (ORCPT + 99 others); Mon, 24 Jun 2019 09:51:47 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:39061 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731432AbfFXNvr (ORCPT ); Mon, 24 Jun 2019 09:51:47 -0400 Received: by mail-pf1-f193.google.com with SMTP id j2so7554829pfe.6; Mon, 24 Jun 2019 06:51:46 -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=XeelbuqeW5y33N8d1ijYmgxZuObEd378TU1ddXNdHBg=; b=eZDQHFQEb3Qaxu1uQXyb+4XzgZNV+xjY5evkbwj5Z5rEQCmqnj4z/nRQizGk6envsh YYWcrUOPIgfGcpqnCZ4MEOrOvDtl739M0MgpNHCfCxllcVTUv/oBcT3Ioq6mpTF/S/hu x72kZZIVa97G9smPur9BXeTVSDLZR8HAMUJcTzAGJs5k9+P6m713Z71fgof7CvzbePlA WEZ/DtetV4bp1GEDYTWcY3zf/GLAQuYN8l5gvL4JY74Bn9nU3guTT9vsktbX0e0bAFKU GVJIsHCo5lT5u0xz/ErZPR6jD3ewmhqpWa2/2l0Xz1f8Y3Kt8hHvE2qYtcF6Jd/sY4N5 UJHg== 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=XeelbuqeW5y33N8d1ijYmgxZuObEd378TU1ddXNdHBg=; b=jZ2wBuH1jbOzqEmZED5ihAy65tPKcA8N2UXhN7v240of3Mwi26s94OCH3R/KPLktpR NVnf4iY3fN5vMatgJCjgdXiriPJWLGTfW5RoqGRZMJuPdxIL+IQSk1K1gksbkCR3CroR zDxN/vFFSwpiU1Bi3/rYVDIMOYZIjBEDMb3kuzmoxLQ2DvdxAmqSTiDuQpXuPHbEOjsK K5UTvclzdqcEvih+TuVAbyPbdNoY9ZoK7Omt1gDTnfq9gIgLfnc4YUABCpeacw+1DRKS EpokCEzKP9C3ioKbirAeiaLCmXmn2Zk57XtgjGd7FsYdte3EiC9iBo1LQc5W3juPOgmW lu/Q== X-Gm-Message-State: APjAAAUwNYQHhfzshimHxxOByMJKIKuE8IlG94+PVPYLtBnIsR44sjXA kuEDPemV2H5lIPnduvgd+64= X-Received: by 2002:a63:5d54:: with SMTP id o20mr31625270pgm.97.1561384306046; Mon, 24 Jun 2019 06:51:46 -0700 (PDT) Received: from debian.net.fpt ([58.187.168.105]) by smtp.gmail.com with ESMTPSA id 85sm11187901pgb.52.2019.06.24.06.51.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jun 2019 06:51:45 -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 02/15] ARM: davinci: cleanup cppcheck shifting errors Date: Mon, 24 Jun 2019 20:50:52 +0700 Message-Id: <20190624135105.15579-3-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-davinci/cpuidle.c:41]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour [arch/arm/mach-davinci/cpuidle.c:43]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour Signed-off-by: Phong Tran --- arch/arm/mach-davinci/ddr2.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-davinci/ddr2.h b/arch/arm/mach-davinci/ddr2.h index 4f7d7824b0c9..f2f56d16d7d5 100644 --- a/arch/arm/mach-davinci/ddr2.h +++ b/arch/arm/mach-davinci/ddr2.h @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: GPL-2.0 */ #define DDR2_SDRCR_OFFSET 0xc -#define DDR2_SRPD_BIT (1 << 23) -#define DDR2_MCLKSTOPEN_BIT (1 << 30) -#define DDR2_LPMODEN_BIT (1 << 31) +#define DDR2_SRPD_BIT BIT(23) +#define DDR2_MCLKSTOPEN_BIT BIT(30) +#define DDR2_LPMODEN_BIT BIT(31) -- 2.11.0