Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1629668ybd; Sun, 23 Jun 2019 12:13:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqwSCl9kEkCHot3jXJFcIusFWs/mPXGTb9Kmz3dpGGYcD1Y18RN5bk3AvF7/bTtJQtsehcDe X-Received: by 2002:a17:90a:b883:: with SMTP id o3mr20063469pjr.50.1561317206045; Sun, 23 Jun 2019 12:13:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561317206; cv=none; d=google.com; s=arc-20160816; b=KkDLuQsYD4RcL6GT55lya1hHJUKw2DvcigZEfxUQN7hkbZ8Jzfb5bt9a3kVG7ubDR1 X3GuNuwS/dt7mhJ6aHu1eLpOUpCRQKRh4yCk9ePGW2LXKtPWVu/VkZMfT3CfWtXOfbiT n7r3VadDk3F/yDV5B0mrQhprP44hMBqAVUqv+Bb53IuibuQ+Au5l8LDydoDms42rkx+3 YyN58mjcpylTH6iBlVJi7szdsDioAYFxc6remnUoNcGsv7lt4XD8rqFV428Ysmr7oMR3 TnR4pDk30suonEUus7KwS9ICdaL32qWPXgjOtfpn4J+phawPqokY+1c/Ifr+u2LKPMQC 9CQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=2eyalmYkxaDhYQy/3RIqss2eXbjbP+cAVp92moFLNxA=; b=KIHSH1W6Y9KaIVbpLkHlVt1Ui0E3C6vPZwmbPiCJl3d3o1u1F+jwOWi1VNtTs9Jga4 0SzXZHT9518VI3TMZQubsFHFNEYit5F7OecuD6h44tLj/yzlmYwIBnOxCr/ScFYR6rFX pi0famUOFx5KjN0im6pVUL6tBuj+98OPuwju+spkR4sTEQh+Xd173pnYe2YcToLJZbS3 QqkdLWl9x8BFN2IBb/foI7M/VfNNSVSF2EQGKHAdZc7Vt0MT2+L250PRFsHkUY9uXS76 sxHLC9MeqsKDr1hJaptij9gSIPKRf3swmNpOTFVuAruecL+IlqZaiMZ9TGrhWSFKNtna Zs4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uJbKaQIy; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k3si8605362pjt.87.2019.06.23.12.13.10; Sun, 23 Jun 2019 12:13:26 -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=@kernel.org header.s=default header.b=uJbKaQIy; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726374AbfFWTMw (ORCPT + 99 others); Sun, 23 Jun 2019 15:12:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:57584 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726119AbfFWTMw (ORCPT ); Sun, 23 Jun 2019 15:12:52 -0400 Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E215B215EA; Sun, 23 Jun 2019 19:12:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561317171; bh=AsxupFvBvqb1mH3XUIHGLPhSXMlhWmiYztuijWSq/GQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=uJbKaQIyzSWaWU00fx8r+BgyZH9qH3M1R9/GjS5amJxhq2/wMRfKlESl/AGt7ycXB ha0lnIyzb/RrBbLBKIida0P9PPS0bf0gRIpgT8FKt2U21oHebm129KzlVwMeLB3caD MszeI+AS46K1WmuMqEvYmziFe5DO20u0Zy+g9YF0= Received: by mail-lj1-f181.google.com with SMTP id 205so1667253ljj.8; Sun, 23 Jun 2019 12:12:50 -0700 (PDT) X-Gm-Message-State: APjAAAVyih0uk2fF1U3ZGyOS4oqfIBKd5qK5QkrdweGrbLxmIV0Tl+Uj faEJqYQYpRG+Xa1RhqE1inUDwF+9U5igdawMqbA= X-Received: by 2002:a2e:8155:: with SMTP id t21mr26819194ljg.80.1561317169025; Sun, 23 Jun 2019 12:12:49 -0700 (PDT) MIME-Version: 1.0 References: <20190623151313.970-1-tranmanphong@gmail.com> <20190623151313.970-5-tranmanphong@gmail.com> In-Reply-To: <20190623151313.970-5-tranmanphong@gmail.com> From: Krzysztof Kozlowski Date: Sun, 23 Jun 2019 21:12:37 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 04/15] ARM: exynos: cleanup cppcheck shifting error To: Phong Tran Cc: 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, festevam@gmail.com, gregory.clement@bootlin.com, allison@lohutok.net, linux@armlinux.org.uk, 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 23 Jun 2019 at 17:14, Phong Tran wrote: > > [arch/arm/mach-exynos/suspend.c:288]: (error) Shifting signed 32-bit > value by 31 bits is undefined behaviour > > Signed-off-by: Phong Tran > --- > arch/arm/mach-exynos/suspend.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Let's switch to BIT macro. It will solve the problem and is preferred way of coding. Best regards, Krzysztof