Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3188691ybd; Mon, 24 Jun 2019 21:18:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzpQojqWyb+6XkBAJis2h+LVDO7Dt7NSte5oGFodyTJQvzc3IkD+JMSwhPWECoo5wkJ+/LQ X-Received: by 2002:a17:90a:3210:: with SMTP id k16mr28153762pjb.13.1561436335799; Mon, 24 Jun 2019 21:18:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561436335; cv=none; d=google.com; s=arc-20160816; b=T+4fhlw1u0nFQqOYe2U0GCTMwrY7+0L4ntBkKReGzQgyuRvgmAmz4c3fL31KokdniN HMSPFsxLo2z2A81wIuNYybvF7SY7wu1EL5P+Om6pYktGmLsxE+MvJQvsQevgnzCCscRR APp27+5JRyXOyVRrRCtOUPvBw/6WKIMNTRJhlszqTHHpreMVcTO33cxTIb/hDhNd1t9U imXd9Gsd54TZrXjap0hZcQKMXFeIqqb/6WtdgqESrO3uIVkI/XgKb3EXV7yBpz9/k6jm Na0NludDneDePS9zlJ2WSQhVugig3j0e6Wdn0zCHud+HAMNr5mglNbL2fa+NVqKHuFwn T12Q== 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=tcmSm3hw/C8D+isK27AbfqRPmFCyR1+5B65dPM4uqtg=; b=ygZJqWUmNnuCRwqYbt8b1s9/giKdV+ioSPR+K6Ir9gD/kLJe0MkKdwWjKlqlj1fCHY 23sFjg30FqgAsrKV6gnqj/psHOCANjarkv+73g2vYc+CQYXdzVo0Dt7S6xW7dwGekRjr kBKabD41wo12zr7cc38pYUgCZtdplnWQ344c4+E3xs1nmzP5sYGZUm7wGUik7g3Aoepi kFj8z1wExZ+qDAiQZ3CosjvMRy8Br2B5xEaAHszW34H96XTso/I0j2VtggC2wqUhv2kB N0DOlKeIpbzH/Gkw/sNqENnrWsPmXJFEDg2FoKc+QPfWKo3GDme9Z86R43bldVZk7/Pj PvZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mu1QVdM1; 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 d16si12499514pfr.229.2019.06.24.21.18.40; Mon, 24 Jun 2019 21:18:55 -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=mu1QVdM1; 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 S1727837AbfFYEFB (ORCPT + 99 others); Tue, 25 Jun 2019 00:05:01 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:33077 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727521AbfFYEFB (ORCPT ); Tue, 25 Jun 2019 00:05:01 -0400 Received: by mail-pg1-f195.google.com with SMTP id m4so7627081pgk.0; Mon, 24 Jun 2019 21:05:00 -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=tcmSm3hw/C8D+isK27AbfqRPmFCyR1+5B65dPM4uqtg=; b=mu1QVdM1AkIn8/v63c/WAWX38xkY+s9zX86yN8ezeyi38zz7UMXQqXRAIrpWTdEj22 ADYxJkjVzJW29+m0cOYfIWcJOZA+McBGv5n8cPFyZl9zUPkHTxX+tQzyN3u3lLIHB+B+ oNrOHO4FTVSc6kt0xEaV+IpEkz7SzzjlgCQyIRnQJC8GQZfo2cGKyG7h2slh/aSdeSV1 /C9nywHxGxtnmDOEqS4uis4AwMoHyPFM/XdWkvUQ9Ivv52gi1SXNJmv496LD4z/IxnNO xporYbqLrwnulcN+LQ+D5OsbqKDLwkUP9J0OhPxVw50LvUAGHHx8jL8n98ZfT6sGQsY0 HvAw== 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=tcmSm3hw/C8D+isK27AbfqRPmFCyR1+5B65dPM4uqtg=; b=nVvqeZuv5FB1EPngznMVca0DqtSAJLWA1+dwv7fkFKtkRZ4j+guo8H4S5fyq8plnUZ ClXA07wzgPrKvFUOlgw4tyRegCfKWlMz9h/t/eCUooUMGdGzX647DHCigN7Vs140uAqu OUfBOjdimQw2N+EYWSjJ+3SwPO8XW+ccXRxEszIAGe/EdXMFHSDZNKZaFApm82WEUJZG KE5cV12Ipm4NMzyuytOVjjTBkRCiqve0UT0mTRWe1gfA25i6SXwbIKKzUUBx2IQ2/b1s u/k7TvgtHo+qvYsSo5RyMunIRlGHGwLgeXzUuijUI+HFqui3BLq0bvuzuprfInCsNXzv yCIw== X-Gm-Message-State: APjAAAU0Yp9/i62mJ2l7z46YqqpkqVCjeooibCye0mPQ8KlnPV2U7lAP DvCJ/JTbl6yixBUqT2hDYu4= X-Received: by 2002:a17:90a:360c:: with SMTP id s12mr29602003pjb.30.1561435500184; Mon, 24 Jun 2019 21:05:00 -0700 (PDT) Received: from debian.net.fpt ([58.187.168.105]) by smtp.gmail.com with ESMTPSA id b24sm12408944pfd.98.2019.06.24.21.04.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jun 2019 21:04:59 -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 V3 04/15] ARM: exynos: cleanup cppcheck shifting error Date: Tue, 25 Jun 2019 11:03:45 +0700 Message-Id: <20190625040356.27473-5-tranmanphong@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190625040356.27473-1-tranmanphong@gmail.com> References: <20190624135105.15579-1-tranmanphong@gmail.com> <20190625040356.27473-1-tranmanphong@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is error from cppcheck tool "Shifting signed 32-bit value by 31 bits is undefined behaviour errors" change to use BIT() marco for improvement. 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..983d5f1d0c29 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); } static void exynos_pm_enter_sleep_mode(void) -- 2.11.0