Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2492279ybd; Mon, 24 Jun 2019 07:21:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqycMy2leR4Y2178dTiWCs4TkgE4qyq94ZSWAV6m639yK2jYD5M70h8rdei/an49T52X6cob X-Received: by 2002:a17:90a:258b:: with SMTP id k11mr24069805pje.110.1561386107387; Mon, 24 Jun 2019 07:21:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561386107; cv=none; d=google.com; s=arc-20160816; b=Zi0R6/Hldwr3fOovWS4cyzm5jcQSuOk8Uj9mhhdr9Vy0lWDFxXb31Wdt7TPi7jioTI uuMFcED0RrAVxwSFaodahtE6jTzhi7hjxVVBNpcIbYwdL0kefmQLbj2+gAAFI01llndY Fj5SS41/JZ2xF8GxbAsjwiWebBnRPRGTyoluFnwruHqjBYR5+n819OnwfBNgyiKUpaNo 9vXecq2cPMgALpCpR1pbRKJhdF8GyIkRTSNIB03xnqp/QiWt97sslb6B0ItGddkX+POU vk+2vJpK6mklGkiqWKp/MRmay7xouCrDJ7Cjo9MKBEfSLjHSAPc+zAdh9TWOVWZC0Pcs AXMA== 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=5smB2m4Y0klWGWmyQa1vij++fAOVw9JkYbzzRYavqp0=; b=B3ksZHBhFmaS9tHxp1iL2ce64JxYaSlzyS2MFak5uuvbH02XkWqRCpXsx58RU8PctA 9CTBoZ1NIuMgezdsqIbd71ENTbxH0c4aFTnuqRsvGuWKWW7SFI8HVC14P7cf3d7HpVSN QIEjohJZ1RLIZaflX/45TMEwt4BRxwhc+u+qm64EHvVkMjwhXyrIKLThknqN1Qu8SD0z sAFIyUX/sCvgZOeh0mfF5YqKb+xaB3kRlzq5qY21llTbfRwjyrpHWR0yCeyuKtB9kpl+ VdtfSp/70lAjYjF0V/uLf9uPSGmQY8uq6TmR0Kn9MOBz6M9LLzgHdybDwlNwTBWyYCjI JdTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=RqvOmp3X; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g22si10231798pgb.107.2019.06.24.07.21.31; Mon, 24 Jun 2019 07:21:47 -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 (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=RqvOmp3X; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731709AbfFXN6f (ORCPT + 99 others); Mon, 24 Jun 2019 09:58:35 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:34828 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727170AbfFXN6e (ORCPT ); Mon, 24 Jun 2019 09:58:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: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=5smB2m4Y0klWGWmyQa1vij++fAOVw9JkYbzzRYavqp0=; b=RqvOmp3XCu8FvyJ4/NnZgL9F9 O+oWz0ngTcwSIz0vq1xJMc7pIDWXKVxRJsS0GDEIixdtmJvp8JkDEj03OSWb5lIP1iKSSifK7IrBt 5qVxBYLQJ0Nq5iS2OLrnVZ0rOpf6XH5bcGjBlB69YPrlPghhFQIZNj/xtO2MSpOHdMg25LVQ7GZXc heHcRY08SNZ7sPS8jk5zUua9UQYFPzuWBilAO3eqxm/U5MxAxi+tUnyBT9UfcGnxTc6A+Z1p1sZ7o MLF3aXvnzV4T6Ynia00aB8mrNldelIynZsG4wpG1V4bMhNpxEX4UOfIDX+RT8vtpNrbOonXhcJxwk Yp8JldWCw==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:58948) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1hfPUA-0008Pi-EE; Mon, 24 Jun 2019 14:58:18 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.89) (envelope-from ) id 1hfPU6-0006L9-0v; Mon, 24 Jun 2019 14:58:14 +0100 Date: Mon, 24 Jun 2019 14:58:13 +0100 From: Russell King - ARM Linux admin To: Phong Tran 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, 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: Re: [PATCH V2 04/15] ARM: exynos: cleanup cppcheck shifting error Message-ID: <20190624135813.ojywq36nljk4ukyj@shell.armlinux.org.uk> References: <20190623151313.970-1-tranmanphong@gmail.com> <20190624135105.15579-1-tranmanphong@gmail.com> <20190624135105.15579-5-tranmanphong@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190624135105.15579-5-tranmanphong@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 24, 2019 at 08:50:54PM +0700, 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(-) > > diff --git a/arch/arm/mach-exynos/suspend.c b/arch/arm/mach-exynos/suspend.c > index be122af0de8f..b6a73dc5bde4 100644 > --- a/arch/arm/mach-exynos/suspend.c > +++ b/arch/arm/mach-exynos/suspend.c > @@ -285,7 +285,7 @@ static void exynos_pm_set_wakeup_mask(void) > * Set wake-up mask registers > * EXYNOS_EINT_WAKEUP_MASK is set by pinctrl driver in late suspend. > */ > - pmu_raw_writel(exynos_irqwake_intmask & ~(1 << 31), S5P_WAKEUP_MASK); > + pmu_raw_writel(exynos_irqwake_intmask & ~(BIT(31)), S5P_WAKEUP_MASK); Parens around BIT() are no longer required. > } > > static void exynos_pm_enter_sleep_mode(void) > -- > 2.11.0 > > -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up