Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1470661ybd; Sun, 23 Jun 2019 08:18:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEtCpaz+F//Cgy7/tERJWZuIvk9Zuaut9yAUWpekiBwJTJt6A6uKUN3b97tfKXNVuGAsZU X-Received: by 2002:a17:90a:d817:: with SMTP id a23mr18883526pjv.54.1561303084993; Sun, 23 Jun 2019 08:18:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561303084; cv=none; d=google.com; s=arc-20160816; b=Xe+dQBh/yODl6pik+CPUWiODTqN6c5UpSmh0hLngYo7K6ZpvIauXYRAU+WETXypgho Y0QSws5apQJEEh58ZFOT1tUKu/EJqFunkWg2dJqguT4pCLR+GEWVq1X+9Za1a0D2P6EJ fv3E1ORbq1UHnwN0PVQ7gl2EfwyD+W84GGAjOuIQOHtq5GAX53yWk0XJqd/s14LyTlQ2 odh5fDmWfsC7td9Ed1vQKcNuRXgS4NspwTUdpNFTsX7I3EhUfgYWWY8SNafywFCgNW4h BOghZfTe4DhA0RSALcL1ZtNDDOOEgDQJyUy111KOUhKcgnn57sgq4+lirakjDF6cPujD fdMA== 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:to:from:dkim-signature; bh=27Dd+11hcQLVrCDdfJRmH2CVp0pm40m3tYEo3qo12qs=; b=EKeOZRvzJa1xUBT30KvFGRpDTBW68zY40g/8eb358lwKlAhklWYIVhb1PzL+4fz5A7 fX/sg+Ga2NRf4+zKz2qY7GL7mkWgq2NyaAlh43ekO/5PDuhD2Maj6cUBqD3lZWiTI1Bi Wp+JnDFUvnFsvSr6CnLtwK5ZE8v6yNSF/BLS/O1vb8SUPEzyJqUDsnb9k6ot9uITsJWf E3jK2w7eoLESOiuNh3pZuAFVioYr94/kBlNmCfFmRTMMko1UOPQENCPkM7Rb9S7BIz7/ hX3msfL5UEKTsdM0vqon/+eNXhOEGQsWJGJqb03Xi72nhmS3Z1vdolwsJwTXxJ/qAFft Hivg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NXRendbF; 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 u11si7580022plz.219.2019.06.23.08.17.49; Sun, 23 Jun 2019 08:18:04 -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=NXRendbF; 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 S1726984AbfFWPQB (ORCPT + 99 others); Sun, 23 Jun 2019 11:16:01 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:35149 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726399AbfFWPQA (ORCPT ); Sun, 23 Jun 2019 11:16:00 -0400 Received: by mail-pl1-f195.google.com with SMTP id p1so5455122plo.2; Sun, 23 Jun 2019 08:15:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=27Dd+11hcQLVrCDdfJRmH2CVp0pm40m3tYEo3qo12qs=; b=NXRendbFoWcBJVE1B14YBXSstsRgsHHtt6tr0UZTG3m4kpQJfh4KTbvO68o4fhW1Zq pG0NHgRgu8itpBoS0yruwpcfCgICUg0E3gCUZoRHFslejfqTrinEuvXmQ/xeFHjdoeeh +JmMT1YxZsYKrwqXSeXst4CtzMmqMJsKH3PyfErSFRY1aBpRfc9aZhYsPVw/WJzbvzCr lqmKtFjCl5gttQUnsWRYLF/hHtKg+DAaw3YZ7eg2V+nn1dim9i2zOFJkxQyk1RGMWtzY UM6lc0HJLy1Y6zavZ9mIomCdC54EAsH/v5s2JZHc0GTaJC17QFZVCenkKLvbID2iG/iK 5dSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=27Dd+11hcQLVrCDdfJRmH2CVp0pm40m3tYEo3qo12qs=; b=CaeceKmBf+cMPJRJkfCQz8DBybLfayCym2EB2seIsRX/4x8118+kdThP6uV99+Z2LS 7HuSsVO/lAv7tot0pRiwntKnlJUOYvDJ6eHr+/9vT+SbCbewHwq6xEOLwLZF2v2WFt9+ j6PZWgFbwWZa9m3DRKKf/kX4xPF12UEgR5gZpchCUX/uxeRAxpHR1toXCNXI6qwJvMXk 8gLguBChO9/43p4MINEGc3gqg6zdo2ir3r8v3xiv5GdoHTBwmZp6MTl7Ee6e95v8fEZj 6IWMK+riVKS5WP4RcLcK7c/qAE2Qw+3v727YLXUZVWGg+Cw4RCbWfr3p43UWSOw6mC+U lUlA== X-Gm-Message-State: APjAAAWbArpk91M+niXq9J5IM+fe93ZZtgktSMjuGG/RPd/o3FqzdpLo QwwuIi9+t30Ktk4Lb0n4obrfcutbr9o1kg== X-Received: by 2002:a17:902:f204:: with SMTP id gn4mr125374032plb.3.1561302959602; Sun, 23 Jun 2019 08:15:59 -0700 (PDT) Received: from debian.net.fpt ([1.55.47.94]) by smtp.gmail.com with ESMTPSA id p6sm8329194pgs.77.2019.06.23.08.15.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Jun 2019 08:15:58 -0700 (PDT) From: Phong Tran To: mark.rutland@arm.com, kstewart@linuxfoundation.org, songliubraving@fb.com, andrew@lunn.ch, peterz@infradead.org, nsekhar@ti.com, ast@kernel.org, jolsa@redhat.com, netdev@vger.kernel.org, gerg@uclinux.org, lorenzo.pieralisi@arm.com, will@kernel.org, linux-samsung-soc@vger.kernel.org, daniel@iogearbox.net, tranmanphong@gmail.com, festevam@gmail.com, gregory.clement@bootlin.com, allison@lohutok.net, linux@armlinux.org.uk, krzk@kernel.org, haojian.zhuang@gmail.com, bgolaszewski@baylibre.com, tony@atomide.com, mingo@redhat.com, linux-imx@nxp.com, yhs@fb.com, sebastian.hesselbarth@gmail.com, illusionist.neo@gmail.com, jason@lakedaemon.net, liviu.dudau@arm.com, s.hauer@pengutronix.de, acme@kernel.org, lkundrak@v3.sk, robert.jarzmik@free.fr, dmg@turingmachine.org, swinslow@gmail.com, namhyung@kernel.org, tglx@linutronix.de, linux-omap@vger.kernel.org, alexander.sverdlin@gmail.com, linux-arm-kernel@lists.infradead.org, info@metux.net, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, alexander.shishkin@linux.intel.com, hsweeten@visionengravers.com, kgene@kernel.org, kernel@pengutronix.de, sudeep.holla@arm.com, bpf@vger.kernel.org, shawnguo@kernel.org, kafai@fb.com, daniel@zonque.org Subject: [PATCH 11/15] ARM: pxa: cleanup cppcheck shifting errors Date: Sun, 23 Jun 2019 22:13:09 +0700 Message-Id: <20190623151313.970-12-tranmanphong@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190623151313.970-1-tranmanphong@gmail.com> References: <20190623151313.970-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-pxa/irq.c:117]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour [arch/arm/mach-pxa/irq.c:131]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour Signed-off-by: Phong Tran --- arch/arm/mach-pxa/irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-pxa/irq.c b/arch/arm/mach-pxa/irq.c index 74efc3ab595f..2e2afe16069c 100644 --- a/arch/arm/mach-pxa/irq.c +++ b/arch/arm/mach-pxa/irq.c @@ -35,9 +35,9 @@ #define IPR(i) (((i) < 32) ? (0x01c + ((i) << 2)) : \ ((i) < 64) ? (0x0b0 + (((i) - 32) << 2)) : \ (0x144 + (((i) - 64) << 2))) -#define ICHP_VAL_IRQ (1 << 31) +#define ICHP_VAL_IRQ (1U << 31) #define ICHP_IRQ(i) (((i) >> 16) & 0x7fff) -#define IPR_VALID (1 << 31) +#define IPR_VALID (1U << 31) #define MAX_INTERNAL_IRQS 128 -- 2.11.0