Received: by 10.223.164.202 with SMTP id h10csp1098029wrb; Thu, 23 Nov 2017 11:14:43 -0800 (PST) X-Google-Smtp-Source: AGs4zMYVuvPwJXGSRqKu5ayRKdnQISwHaDnv3hg9vhgphA3YBuam0eQV0gNet3YtfJ5mN92p1hyb X-Received: by 10.84.234.198 with SMTP id i6mr26496072plt.410.1511464483026; Thu, 23 Nov 2017 11:14:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511464482; cv=none; d=google.com; s=arc-20160816; b=CaGA5xxPjIA5NVVOYNz2ANZDG4636Osmr/QkxVC5VpWKabKtJNWsX2iSm7czIysL0C a9mST1LYNHR9cR5K/5wUXDU3xMkphnCaA0jrRgBUOVKQ6757/pxDFSghp28NYyfUO1v6 Hh+E3pP3TenDJYBBXD19KZpHr/+7Suhb97/lGbE+MMBoRS/FzydFUWH6somRB7gkD6Sw lb92Eqkrn5IWnZoGylE4cRYHqOP7GkYXAx+/bZ+3VmvPSwIuPM/WDkKce9jCrXJBmFtf UEGuJM6N+SJ/lf4wHn2y9kXqSEtiQgT8gDHDRFyKJmpGu07irFZ/PcR47RaWFSph9Yzw mYCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=yxi7L+cKz9s2iuAWq+Ol6KBdAnTaKB/Li+qdkvhpDdo=; b=D+hExZpoOLj0GywdufvXDblzYcC+sKsDbhzb03sCCJdFZzbD3idrDtZ+nqt9eySt4Q GNKq3YuvWfajOPkKFji1Zly7yQG1KGj1JKJNmE4AeBcbV1/cMvgQnKq1bOYcAuZaYfjo z9B+KKS6cJr1PbhQEZBfcU2sLXgOPfy7v3SJlXK3qgDsU0Sd735uRGIswFkh18LcxXzo FzWU019AVrptPwaFzgLNkgel8Jns4EglsH7brThG9ZgAtubbzOVbmLfzTlv52gw1vaMF +ml0QNNUyo2NgtFPFHromQIx512grA0eQA+DSUcYlgCEHyHnQJtB3nTaXC5R6nrwGvh1 JSIA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p13si16036422plo.815.2017.11.23.11.14.32; Thu, 23 Nov 2017 11:14:42 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753311AbdKWTMk (ORCPT + 72 others); Thu, 23 Nov 2017 14:12:40 -0500 Received: from terminus.zytor.com ([65.50.211.136]:53901 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752948AbdKWTMg (ORCPT ); Thu, 23 Nov 2017 14:12:36 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id vANJASxB018474; Thu, 23 Nov 2017 11:10:28 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id vANJARcW018470; Thu, 23 Nov 2017 11:10:27 -0800 Date: Thu, 23 Nov 2017 11:10:27 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Vasyl Gomonovych Message-ID: Cc: hpa@zytor.com, mingo@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, gomonovych@gmail.com Reply-To: tglx@linutronix.de, gomonovych@gmail.com, hpa@zytor.com, mingo@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <1511215361-8279-1-git-send-email-gomonovych@gmail.com> References: <1511215361-8279-1-git-send-email-gomonovych@gmail.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/urgent] irqchoip/imgpdc: Use resource_size function on resource object Git-Commit-ID: a994988d73db142fbe842ce08bbda62b12456577 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: a994988d73db142fbe842ce08bbda62b12456577 Gitweb: https://git.kernel.org/tip/a994988d73db142fbe842ce08bbda62b12456577 Author: Vasyl Gomonovych AuthorDate: Mon, 20 Nov 2017 23:02:41 +0100 Committer: Thomas Gleixner CommitDate: Thu, 23 Nov 2017 20:04:55 +0100 irqchoip/imgpdc: Use resource_size function on resource object drivers/irqchip/irq-imgpdc.c:327:20-23: WARNING: Suspicious code. resource_size is maybe missing with res_regs Generated by: scripts/coccinelle/api/resource_size.cocci Signed-off-by: Vasyl Gomonovych Signed-off-by: Thomas Gleixner Cc: marc.zyngier@arm.com Cc: jason@lakedaemon.net Link: https://lkml.kernel.org/r/1511215361-8279-1-git-send-email-gomonovych@gmail.com --- drivers/irqchip/irq-imgpdc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-imgpdc.c b/drivers/irqchip/irq-imgpdc.c index 1f59998..e80263e 100644 --- a/drivers/irqchip/irq-imgpdc.c +++ b/drivers/irqchip/irq-imgpdc.c @@ -325,7 +325,7 @@ static int pdc_intc_probe(struct platform_device *pdev) /* Ioremap the registers */ priv->pdc_base = devm_ioremap(&pdev->dev, res_regs->start, - res_regs->end - res_regs->start); + resource_size(res_regs)); if (!priv->pdc_base) return -EIO; From 1589055575040174956@xxx Mon Jan 08 19:58:09 +0000 2018 X-GM-THRID: 1586497410054347973 X-Gmail-Labels: Inbox,Category Forums,Downloaded_2018-01