Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3188400ybd; Mon, 24 Jun 2019 21:18:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7EHuiKyxHDCz30gc54EJcpjf/vfhzp+HAhhFTd8DFQcV13d/jB64RdfUlwIYfZ0FMz8Gy X-Received: by 2002:a17:90a:37c8:: with SMTP id v66mr29774410pjb.33.1561436310894; Mon, 24 Jun 2019 21:18:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561436310; cv=none; d=google.com; s=arc-20160816; b=tm3WjeRWtxD7feSbsg/0QVbRkSejd2FHhzpw+/18LuMsN2mu7muzBv2BlXYDEbCQ8o d/ExEtSSLWDxIWqRrmC9ouo04wtSpSLeK7BCD8UoXsY8kqyLjbGbhZSf5AdOAJozz6xY 3RmJeVCKo+ZAO0Id1xaxFZPFeJtgmXmmvJTTN14p37GfnyWLdULcmV0NVZsmWMI+fOxr aqvsFnj40xWGBsyn3CG2lnRTx7MObG/WKUxrZB9EtXvCjLI+FHfQeTk5cz4caLetYTol u51tbyRSoeScjyy6tQOi8leClGQW3R+1JaULEZTXoI9efo0bnn6zYg8qwmBOGvZMvHec 78gw== 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=lKJzQsTdWRiDE4LC6jT5wD3fUjkhZSxKv66YO52/0Io=; b=0ktJG7izkkqpbtk5vbS2ga51lb1NNZJv49I9yZCrTnzVXKjbFiMnwPFy1HUhTlkKZr 2RZxRo99iDnIVXgvNGzDNsbzZJLtZJnTGVD79cEwsNdwc/TVacteR1rtnoFU674gCDRj 6RW/PH/wmn9MYowD9ByAsacjpAtdEeI6z6+EjINhqVa946fuy4NuzfxjhKsTRssHOjcZ mCzirE+sXUAbwzD4Igb0VTNPg3z6lWdRe+Z0xQFVlyX9ioSbUWE8ZLiAeM+u0dO3Kwmq pmPwKkfq5tsfb01uWiMJYoTd6rIN+tjsEWQvItQSOLYrtt96XCYhXvjIR+UI10B8Zip6 jPxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Pyn37ak+; 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 c127si6637485pfa.20.2019.06.24.21.18.15; Mon, 24 Jun 2019 21:18:30 -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=Pyn37ak+; 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 S1727579AbfFYEER (ORCPT + 99 others); Tue, 25 Jun 2019 00:04:17 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:39677 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727540AbfFYEER (ORCPT ); Tue, 25 Jun 2019 00:04:17 -0400 Received: by mail-pf1-f193.google.com with SMTP id j2so8724656pfe.6; Mon, 24 Jun 2019 21:04:16 -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=lKJzQsTdWRiDE4LC6jT5wD3fUjkhZSxKv66YO52/0Io=; b=Pyn37ak+v6Ct7FBS87A6cqV6Q+HmCXkxXjRSAU2haW+C01rhiL8/FPl5o5feklwBgA G4M6AYWdtoAwRn2baMYR9UeN+jEJPdrnXY3rjJ8X0gLAfKhK8SCf7cYLzDtSyQeIxJTb Ur+1coG8C0o3hwaew4r74zMHsfBDLzxSCeDnZ73sC6Ghm02eWvB8oziMQ2UUBkYhGMeI zjyhoe2OxMXzrCUabWztTeSSyAg0lY7heQP+t6WcEBI49MoamdLPcp4JTNcxx4E35hLb uMhFcFScixboCUs6oI5I7wVHBM00sUpr2vblLlQe0OnnBdmPjW6xpXkh+21VDlgXHsNL bv0w== 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=lKJzQsTdWRiDE4LC6jT5wD3fUjkhZSxKv66YO52/0Io=; b=BFvf5LrvGWV5dVZAuBRemT00sTfq+13zfbOf+hs/WhzPfx9vMQ931PPaRFPCw39BsI u7xoynoCWknTqM1/SXBDah+wVulS1O/ql3gGYeG6WvHPtxIHya6faASr653xYlQVAXea pG0OT8fJZ+KXWbSKqSLy+OUWI9Frz1GXgp6Ngk1rDlOVaHiuZgWlct7RKh8Lf+3hnLZH BYjS/iO1AxsXWcRlID+aW8WzufSaKo+VDOUQKBN1WI/mEfDpKY4C8SnX3xPq4xNnk2Q4 8FUcrEPnGGvDR/DjCFAAegnklGCaOkIS4LdS1+VnVQ3CD4iE0IEBM5P0uomG8iU5FB9/ b0Cg== X-Gm-Message-State: APjAAAVW0H/s5p54rt0u6+ldHx/k783PIdQRoqQB+81h9Y8qZEVlDFUi IKzFnWPEFdOEY4iAUMWB1tY= X-Received: by 2002:a17:90a:b883:: with SMTP id o3mr28893337pjr.50.1561435456007; Mon, 24 Jun 2019 21:04:16 -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.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jun 2019 21:04:15 -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 00/15] cleanup cppcheck signed shifting errors Date: Tue, 25 Jun 2019 11:03:41 +0700 Message-Id: <20190625040356.27473-1-tranmanphong@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190624135105.15579-1-tranmanphong@gmail.com> References: <20190624135105.15579-1-tranmanphong@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is also do as the suggestion of "Linux Kernel Mentorship Task List" https://wiki.linuxfoundation.org/lkmp/lkmp_task_list#cleanup_cppcheck_errors "Shifting signed 32-bit value by 31 bits is undefined behaviour errors" Change Log: V2: Using BIT() macro instead of (1UL << nr) V3: * Update the comments from Russell King. * Update commit message and cover letter for clearly the reason as request Peter Zijlstra * For avoiding the broken only change (1<