Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1502292ybd; Sun, 23 Jun 2019 09:02:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqypTKjZFxcEZGb7AIYMiKodZKTiAZF4fhtZiTw/j0WXfSJbOA6rlm7PAO0vcTXVAl4A5SQn X-Received: by 2002:a17:90a:ac0e:: with SMTP id o14mr19644962pjq.142.1561305763790; Sun, 23 Jun 2019 09:02:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561305763; cv=none; d=google.com; s=arc-20160816; b=1LqaBnuGiBOFBH18A7sWC67SphJzBYHw0gDX/84VDk0xATYrodxc6SuMkPL0cTelRu 1cGBMJwo97FJj9vC4dMqe9G8V21TRdJW0T5eUWL3WLsUdrEPKuJwpsGvVqV0CKXZ+mR2 9eMLYLi4Bbv1RhTlloKjzQsQTboNmlfHgNmoZHJXz5WE+US2nuaH6eQaS/vpGEiXqbWN Lf7vR4ffQ6ubtszeK38trGfkT+1CJdSRV9s3KREHw2uQyM4935EGc4Gi//2AKrY980H3 S5WmSnuix01C+L3Bu+2z5xsUSU2VP0/YSh5SGcqwrH57GTReHR0LE8TUAseXpm2Q9ozL YzCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=tO9c/rs97W0ia9zMhQ+rkqpEZpffIjpr7pWLTraofSE=; b=BjWrSvkns20dbChd93kkVEAOk9l48WdIx3a7eqC2qdP2rHotgjo+Zlwfm49JEiV5dF eDVNJLCtCDxiWKULehFcr3Pcc6MlqWpo0QSJYbuf0l+4zbAR1/NiN877BEscT0ANplT4 uE5uLKNuhidwGwUM1AHgl5SEJTjCbqx1Z7fbXhm3UL6OAgfHGSHKzxL2wkNT6kb43ezZ iuVg9pZcqxhUwhebzpfxUPOrf3bp8WUZh2TCxjuRjbUdtoD19+nab2nPIL41dZmwBYpJ s+gto8COX46gkqTpoaM1O71XiFvUu/udm+F2Ou+b4t63CIzVjB0S1Sx9sNf7bsvOHIir 83/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=qaLFmSnM; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si7576663pls.83.2019.06.23.09.02.28; Sun, 23 Jun 2019 09:02:43 -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=fail header.i=@lunn.ch header.s=20171124 header.b=qaLFmSnM; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726725AbfFWPYW (ORCPT + 99 others); Sun, 23 Jun 2019 11:24:22 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:50638 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726399AbfFWPYV (ORCPT ); Sun, 23 Jun 2019 11:24:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=tO9c/rs97W0ia9zMhQ+rkqpEZpffIjpr7pWLTraofSE=; b=qaLFmSnMQl4sPp1o2z/HXGCzah gMwwcsQXCYPlG6KtqEJ2hGiujAEeoKTqb98ksLJhFsHhnSDfRILIc+zxWu0H7DSDIuWGK71T6hTOU 14HFECNi1bjjVp3jlL82mzgEJBIVQFKM1uMHnP/u93T3aVmFe6tYIfHVKB48U4sWi+G8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hf4Kt-00088y-5x; Sun, 23 Jun 2019 17:23:19 +0200 Date: Sun, 23 Jun 2019 17:23:19 +0200 From: Andrew Lunn To: Phong Tran Cc: mark.rutland@arm.com, kstewart@linuxfoundation.org, songliubraving@fb.com, 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, 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: Re: [PATCH 10/15] ARM: orion5x: cleanup cppcheck shifting errors Message-ID: <20190623152319.GD28942@lunn.ch> References: <20190623151313.970-1-tranmanphong@gmail.com> <20190623151313.970-11-tranmanphong@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190623151313.970-11-tranmanphong@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 23, 2019 at 10:13:08PM +0700, Phong Tran wrote: > [arch/arm/mach-orion5x/pci.c:281]: (error) Shifting signed 32-bit value > by 31 bits is undefined behaviour > [arch/arm/mach-orion5x/pci.c:305]: (error) Shifting signed 32-bit value > by 31 bits is undefined behaviour > > Signed-off-by: Phong Tran Maybe using the BIT() macro would be better, but this is O.K. Reviewed-by: Andrew Lunn Andrew