Received: by 10.223.164.202 with SMTP id h10csp4347882wrb; Mon, 20 Nov 2017 14:04:23 -0800 (PST) X-Google-Smtp-Source: AGs4zMaQKwMUxoxj2dBFQqCtj7i/alLuao7GB1YJlaEXb+P4dlexyCUdz1dAe/Q9F6WccnY8AHAg X-Received: by 10.101.67.140 with SMTP id m12mr14459310pgp.51.1511215463691; Mon, 20 Nov 2017 14:04:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511215463; cv=none; d=google.com; s=arc-20160816; b=Pl1vLfQLZStQTUXFPMv7DCEcRPLt1CBbYtokicyC+zCsJbhfiS7cOUoaJ5ek2bgNZY 7ybtz/D7BKWWpmaLYViiEacsPKW07vdgPG04PkmpDo9GPo/Y/liZuiBOJMiPtICuVguH zG74sT1rtktOvoBygETt8+POgLnTd0P/7FBAT16apwNBABlB9n/C6oAcyEYBKkOVho1g g8SMAkWbLMfgs4DRkvyJBRvBJ6medkiNI0y+wJ6HD7TQWR1LcDBh3feeyENUzinR0SWR 13lwx2TsURiSTKdlqiT6V5o29FlOVUJC6mGfSwizdi16gjTFDGi/wzf9vk76z4/y2Edt 6qWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=D2PHGKc39TMkuoZ+Yf05UuBmshBVaj35zwCJ0U/kUHo=; b=c6mBu4hDUH8bGlJHA5hA1hsoZylOjXUDFHCCXIM8FDXe6Egb7MaLnGohfvU5wjXVlV /9HaoK2M+dcKTrb0vfdmbulfo+GxmoA0gLadM5OtzVLNkJl5r5WGdggLG/sKuaawqzWv 1FCmdWBcTfsf4wA0L9D+mgCTDahf1WpyfaAKVB0vVcjn5aFfTRrTPQG7YmENhGRfv1/q Zmza6nbv6wxxS8pK+fbw3v0AfV3Kvl4QPk4Q3o9N2xO/kG+bsZgIajWkcz7ocT2kj2P6 asWOunaXsPylu+JAUekBYOzWMiXA0/FYFZI3XrKRKRHaeTFQyy8OcLrw+LZGUvr1BPWP VbeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eP239dnN; 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=NONE 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 e15si8902820pgr.15.2017.11.20.14.04.13; Mon, 20 Nov 2017 14:04:23 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eP239dnN; 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=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751715AbdKTWC6 (ORCPT + 67 others); Mon, 20 Nov 2017 17:02:58 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:37715 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751664AbdKTWCz (ORCPT ); Mon, 20 Nov 2017 17:02:55 -0500 Received: by mail-lf0-f67.google.com with SMTP id y2so10885585lfj.4 for ; Mon, 20 Nov 2017 14:02:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=D2PHGKc39TMkuoZ+Yf05UuBmshBVaj35zwCJ0U/kUHo=; b=eP239dnN1tCP0SAPFUxf7IWQM7bM1U8sA08Rvqww2v4YirRcHR7pmuhNClMWmigZEe cb3Xf48mMoINAqI5vLG3EfclLKj3jAuRKHzfOJinSuQt209veVoOI01Qi+7WkWi0MTXb gCaNojohf3OA9OAHMSforUNP0HmcasJ9kBZp96p+wXVmSVpZ4SYvBnucrSUwWJBPBGOb N2q+qMgNCtgWlpmaWVknr1gw+UTX3gT0kIBMZec1z3iItpwkBZGigNVB6d8OxnvaIseY LfiRXtXtKPVfTzVFGv+oDCLgerknRQPT2b0eu28Pp5CU36m0QlHeMbDrzIufnUFe3T+i B/vQ== 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; bh=D2PHGKc39TMkuoZ+Yf05UuBmshBVaj35zwCJ0U/kUHo=; b=o/pcd5q8UzJYlHi3eB/55r/L/xpkClZPvGHnp7G7M33bhsKe1nI4OSL2bC7oCLAUtx /+lLA4wl/N7X1Sg3TSyZhtlBAEfxROyXJ8kLQZR5RaDhZgdBtR6FRw9HUbot5AXMXhhM YAR4EnQJeEqMJBUAqrFNntIqupJps+QBAwg9uTEncwI7fOA07asyS21SFh+I8LoRIOUY WbDiBd8nTGcIsUMsO7W9otxbgdPzZjNkijZIjVmTawCDGRGqavIyumUpTJSVhzAmFfIA 7FcW9k8PT6i3bOZaTY8Ry5XUKrRiriPE8JhylLMb4k1eM/2CSGCMQ+EfSqTXMBvLUPQE TyZQ== X-Gm-Message-State: AJaThX5VmM+kpxnPY935a4r3Qh+6qCutQRPmfyeX+8qSMOkdyveQgr/d iartQPNkbMY+2N7L9dA6z80= X-Received: by 10.46.58.22 with SMTP id h22mr4876264lja.194.1511215373793; Mon, 20 Nov 2017 14:02:53 -0800 (PST) Received: from localhost.localdomain ([195.254.138.66]) by smtp.gmail.com with ESMTPSA id c73sm2142128lfc.58.2017.11.20.14.02.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Nov 2017 14:02:53 -0800 (PST) From: Vasyl Gomonovych To: tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com Cc: linux-kernel@vger.kernel.org, gomonovych@gmail.com Subject: [PATCH] irq-imgpdc: Use resource_size function on resource object Date: Mon, 20 Nov 2017 23:02:41 +0100 Message-Id: <1511215361-8279-1-git-send-email-gomonovych@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 1f59998e03f8..e80263e16c4c 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; -- 1.9.1 From 1584464886834133942@xxx Sun Nov 19 03:51:07 +0000 2017 X-GM-THRID: 1584464886834133942 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread