Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3191554ybd; Mon, 24 Jun 2019 21:22:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3Ld0Zp1QwHXGl00evIYv7rdL06TJFgiSgKvwDUWhhakkkHMrzJyM9TTv3CMw3exYQJ8cR X-Received: by 2002:a17:90a:26e4:: with SMTP id m91mr29383963pje.93.1561436576987; Mon, 24 Jun 2019 21:22:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561436576; cv=none; d=google.com; s=arc-20160816; b=cIe5Qq62n9OrtLB+LrFdZ+tFdKZP6TCM3J4AGMqAGCi5H94pkX2TSxgZR3YeiR03vP sxi0b7xg2A5qg1ZAfNHY6mkI7C6B8ymD/wgoxMKzUulxB/R5Fnhwb48cL+oYsnP79319 GPHeIsOdTSoy2GOLyqk/+L7ktKSbwMLsUnfu5xIqQAILu78L9h59uZVyrsFy1otkSdDw Ld6J0KRC8px94EchlNjJ6Ur/ZzAjah0/FSFItJ/tjXvcDmdQ9e8LmpaecyhJ8woYNber NeQmsCo+X+nHHXCXuAxFDkwe0k+kIU+8avEOyTJNCJkOx+tYSksKXFK62/4zLSrsbTLd 3WCQ== 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=KDwfnX7xwMMDkQMnHt3pFpXnjghwDdHkKtC4VLqB4SU=; b=s/z98kLQlDw5NUPlUyxp6OYnDOhEXiMDF+Q6oEYQ/arca6ePQX+a7xMPA3XxdeATBi 5QIHEQ9GppPcqIfM2nYJQ3tdndWfRlisJp+M2DG1oa8xJ78tWtgbBbM34lHoLLg7efPl 51DAyg6y6H/g6jfnW5L+adk1W0QeG6gRRlX9NL5dvauAnvtZFKZiHMgZWLjhFweqpJIe XSIcZB5D/8zsKIpkG+E9JirAsshElJ6fGSgoR4MnvFTb0/+NE8PXWw0D04Z3DQhxEYk9 0yZ7KQ7sD11X5lzTd+3cUD4q+eGO++8I0lrdFx6xzs0/1oagbKONkFFUE7lO57NrcDT5 utdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rDQhi8bG; 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 cx20si1560525pjb.97.2019.06.24.21.22.41; Mon, 24 Jun 2019 21:22:56 -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=rDQhi8bG; 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 S1728214AbfFYEFz (ORCPT + 99 others); Tue, 25 Jun 2019 00:05:55 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:40956 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726631AbfFYEFy (ORCPT ); Tue, 25 Jun 2019 00:05:54 -0400 Received: by mail-pf1-f194.google.com with SMTP id p184so8724609pfp.7; Mon, 24 Jun 2019 21:05:54 -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=KDwfnX7xwMMDkQMnHt3pFpXnjghwDdHkKtC4VLqB4SU=; b=rDQhi8bGChxtNTh0gJtFuNhA03rAKj8scYAP7zQ3uoDPLFL73c2ylvY99p16axkPaL kbScHvo2weEld0oKeaEF2JxNAe+ielVIRdbMoa+XVd6KR3XbetkuDPI6BO7nEVSVi1fK Hto0YznWmSl3cRt0lQg47xEmErd7f8tDXwQf4gLRkYHrQx9ZWNisKDPYSmr9sae3W34+ lC9yTM8o3eXYvfIG8mvFNWcYDVw9JOQVK8mQP8h+Nr1M2vN+LFgSV0ie1K9dPWXQmqEH FLl5xEktRDb4+x+l3CkIYsi6YLJkwdAJRwWmlSMDXlKEidhZZxF6y9Lvl+6EWWkR+I77 oDXw== 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=KDwfnX7xwMMDkQMnHt3pFpXnjghwDdHkKtC4VLqB4SU=; b=AYvagOEriaVTQSZbntBp13zQbhM0Kxkkrg1sbqMauvvZwqfWQPr0WB3mdrgbvJrbKe yL+ohubEzfEh44rF1cu1twnB4ucCo4n7tOkp45j9gc2XokWT80hHdjxNXIXWvNwdVXEd jZ/jPgx6XkKcmT02HPdFNgJXuUP2CYtO4tUlQNneO4FFJZUEr30MrPrt+TMGYQ4zXXJ0 H2272Zv4qjN3u6wqdmvip5Nh1eb4vtuGoC9eAyQRMk/L6jrBIt10Agv4sXlyhpGZ2IbT eCsx8+3XWam72TAzrxoPqmgEv5ypvDlC6lLW9KTINe4wEunHant70t7iCEvenOsSCuHi rfXQ== X-Gm-Message-State: APjAAAV6ae8KKZJuZNYxEi26boc1QCnE0rb+5QU92EkAl3bA5vTG0ZCf +9daAJET0qLNi7AqUBux5HY= X-Received: by 2002:a63:d53:: with SMTP id 19mr1887507pgn.453.1561435553986; Mon, 24 Jun 2019 21:05:53 -0700 (PDT) Received: from debian.net.fpt ([58.187.168.105]) by smtp.gmail.com with ESMTPSA id b24sm12408944pfd.98.2019.06.24.21.05.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jun 2019 21:05:53 -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 09/15] ARM: omap2: cleanup cppcheck shifting error Date: Tue, 25 Jun 2019 11:03:50 +0700 Message-Id: <20190625040356.27473-10-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-omap2/powerdomain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/powerdomain.c b/arch/arm/mach-omap2/powerdomain.c index 1cbac76136d4..886961726380 100644 --- a/arch/arm/mach-omap2/powerdomain.c +++ b/arch/arm/mach-omap2/powerdomain.c @@ -35,7 +35,7 @@ #include "soc.h" #include "pm.h" -#define PWRDM_TRACE_STATES_FLAG (1<<31) +#define PWRDM_TRACE_STATES_FLAG BIT(31) void pwrdms_save_context(void); void pwrdms_restore_context(void); -- 2.11.0