Received: by 10.223.164.202 with SMTP id h10csp4292376wrb; Mon, 20 Nov 2017 13:04:25 -0800 (PST) X-Google-Smtp-Source: AGs4zMZGSUfmNBESxwpGFj1Xz651wSbZZoYNmpsxgcOn7tqAw1hwWaeA2AxTnvnet20y0Y1vsogl X-Received: by 10.101.101.12 with SMTP id x12mr13860307pgv.420.1511211865073; Mon, 20 Nov 2017 13:04:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511211865; cv=none; d=google.com; s=arc-20160816; b=DZmEghueL/eoXtGNraTXctyaQkUB3MeaQNLk9KOEHiPGmNznPZZFkvQyiDvgPU35+a TSy8/wHuOUuM295IjTD6OUQ52X1AWV7Ev6YyjDeNNt29ypd9vYziak6H71bIHvjfDYRT MVso0QW+hh4h2ysxiV9C9qtJl7kfgAnqLB4ntlc9mBEb8olAvqxWfMtDEPqkWl16Ggey 8N+CmziFj+//gGmO5wz9sC5X+YbCFPcbd34P2N+Q6c6b5zZ9slq1lFUvIcV55HVjyWA5 kOob1YCEPHMX74qVploxmemwP+4Jwkq2+68cwH1uAKsViFjFdyhVgxPUvldvc273R0oO 4RcQ== 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=4IvdrezJjv+mvob6OeTpeS3dGPOiDAbYEnW+uK1dSZo=; b=q2h8v+WjJ8+NrfnSNwNFnfsLvU62Stbip/K6E8k1zN4MWljqkvE+kWYk6Rjx+OK02G oa0xWDz3wpwfnHDjWRcRCobwBZuaj0DGzUmvsBQweuF8CaHNkJX93pw06zvKanzMdPlq gLZ34tRvLh9QLAStSE9C1hXWRZ5WE3E5/ppXCIzYHV0CRyzCHPY2Qe/XFeA8MVh+nB3O CxhRwmePdi+Dj9t0hwRGP3tLKLBAxc0bczevdJJxt6bdexp85bvXh53aKW614Q0rIpte pmp67WEnfoxDumRVDd6cvsnB2FL030pEaXsx7evooEhFY9ExN6/T6kMwvi/8XeSYs+Lc 28HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AXYnzzra; 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 a64si9871657pfl.299.2017.11.20.13.04.14; Mon, 20 Nov 2017 13:04:25 -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=AXYnzzra; 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 S1752831AbdKTVDL (ORCPT + 67 others); Mon, 20 Nov 2017 16:03:11 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:47078 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751109AbdKTVDK (ORCPT ); Mon, 20 Nov 2017 16:03:10 -0500 Received: by mail-lf0-f65.google.com with SMTP id g35so11626561lfi.13 for ; Mon, 20 Nov 2017 13:03:09 -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=4IvdrezJjv+mvob6OeTpeS3dGPOiDAbYEnW+uK1dSZo=; b=AXYnzzraNuTdbVs11O2piYvAcf+oYitFe3Q1079u6VT43EASmJ2jhgYt8wY9unNneh PS7xnCe7bG37PskotRakzpoeVbYV3qXNKcBuo/DibT9mO50i3FOVugQ23QWnBYkzuqa4 k6dL3GlZSCHw9RBL40V8ynafTllFCfaOysDrZtGlPT7EfFX9RLeSbGWFWmtNUPEuY7fF spKDg+qPGEePxB24Ix81MTUpGBAxv5JzzEmduAp2a1537uyo0jKlTmiKEpu3HFHs7fNb RjfkNsuqsAMehuVGbb5bQAfuugQ58r67VN+3dcWevoePGhKCncySY5kX9fjzvh0PLVKV rhAA== 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=4IvdrezJjv+mvob6OeTpeS3dGPOiDAbYEnW+uK1dSZo=; b=PQbAZsNSp5t2Z/JbVd+2QQzuYRjiQunJewL4CriPlFJ4twV/fElXtIkJbQ0tffQXg/ VaZTAKcyNPPz2qOaeo/zJ3NFklWGHAwjekH41wteqavkQF0E3kFhyKM5Dfn5626LzRqx kfVnEa6i7BAEK/HDLIyu2SbU8hXYxxyPQ2Oqg9PSUebEMMcIcaGssFfai/FT+5xzxoSp 9P3KsR9QAS6RvFi3F7BPSqSOvKfmSLsldrkyNZVNQzeKvlZOhn+ysXvWEi+XCN1YYRGi WWnECCvWBcH6LaVS2NB5E5GyDF4P1wJBtKnjKznkPJxRQ1qSTwEeJgykXnlqTuXGaY54 IGAw== X-Gm-Message-State: AJaThX7Y42wD3WxwQeCgtP/uoL16sFK5S2dTyfgMI6TkPhg8oelnwpkc mG5ZowUUBqPNiui2PvmwbC6rPw== X-Received: by 10.25.150.67 with SMTP id y64mr3876493lfd.124.1511211789136; Mon, 20 Nov 2017 13:03:09 -0800 (PST) Received: from localhost.localdomain ([195.254.138.66]) by smtp.gmail.com with ESMTPSA id f13sm2102045lfe.69.2017.11.20.13.03.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Nov 2017 13:03:08 -0800 (PST) From: Vasyl Gomonovych To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, gomonovych@gmail.com Subject: [PATCH] mfd: kempld-core: Use resource_size function on resource object Date: Mon, 20 Nov 2017 22:02:55 +0100 Message-Id: <1511211775-13659-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/mfd/kempld-core.c:461:13-16: WARNING: Suspicious code. resource_size is maybe missing with ioport Generated by: scripts/coccinelle/api/resource_size.cocci Signed-off-by: Vasyl Gomonovych --- drivers/mfd/kempld-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/kempld-core.c b/drivers/mfd/kempld-core.c index 55d824b3a808..390b27cb2c2e 100644 --- a/drivers/mfd/kempld-core.c +++ b/drivers/mfd/kempld-core.c @@ -458,7 +458,7 @@ static int kempld_probe(struct platform_device *pdev) return -EINVAL; pld->io_base = devm_ioport_map(dev, ioport->start, - ioport->end - ioport->start); + resource_size(ioport)); if (!pld->io_base) return -ENOMEM; -- 1.9.1 From 1585414695434162920@xxx Wed Nov 29 15:27:55 +0000 2017 X-GM-THRID: 1585411538321318438 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread