Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp323650pxu; Wed, 25 Nov 2020 04:16:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtqMjqcn0y5mg8QIHMzcx+5SDUk41iZ7tUP3mM/lqd6djRNFAWxF/Ilt7T7cQ8pcQtQqbJ X-Received: by 2002:a17:906:3ec8:: with SMTP id d8mr2991180ejj.32.1606306612244; Wed, 25 Nov 2020 04:16:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606306612; cv=none; d=google.com; s=arc-20160816; b=LY1MUCOQgpDI7IibytT6MJVOZxKCw+ZGil6J4ClvfyUvsQO3qYhS4Ni3WZYSOuxBtA U4zrfVZU9pTPpd+d1cgTDQHgT467G9LFdSIf631JtvgHKjhYIwpGCx5hpsZH6U99MmL0 IZeETV9fLUGOevLwIAqPqqOtXIxGBp8iJRvICZ55JEsga2Qghq2lYLZqg7VOtLafnncx DQylP44Sia4/k78P+yxmWaDUX2J23T3pTG7gk0xKE60P/9fb0CYQy3prHXhZijA/VDtv dnbr0K3JV0UMIA5qsytwGI3sU1V4i2iFLYNwO+aesGge+OMgH32kKC/QHEHJJRtBZ2oo Wjuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Gc4qMJXhyMRQIhW7uEhJjTGAKZr58S2+Yff/bL5CKfw=; b=A5YewiwXsQo1/mJ3S2qLezIeRewZ8T0ON846c10Qa3KjIhPlw/4Q+pZXvGm6q1F00L O1LeMt8dhn7+YkBiM7tngvjyJhWRE24yAn0CwQRuK1eu09TSv3zUxvXBWcIG9kP1rRwn LQIvyGip9NI4SGdHQaBLW5PksDjBoweuD8THfw7PclJjXz26vFvRUQKbYTtDHKtPmDw9 s5f830l+srdusLqE0gv+W24eLlEoQaoZHMT5duBc9d4olnx8YjSPPdNM+qZ1U59ZIcXT ju7f+Na921+iTQwmYm+9xkLi4SZFr7tf8kzckTnXOtFZeyduBOvEvmwflE7CJDeWqN+f gFhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aQKjaBEp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id f24si1061119edw.120.2020.11.25.04.16.29; Wed, 25 Nov 2020 04:16:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aQKjaBEp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726034AbgKYMOz (ORCPT + 99 others); Wed, 25 Nov 2020 07:14:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725616AbgKYMOy (ORCPT ); Wed, 25 Nov 2020 07:14:54 -0500 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F09A5C0613D4; Wed, 25 Nov 2020 04:14:53 -0800 (PST) Received: by mail-lj1-x242.google.com with SMTP id i17so2057915ljd.3; Wed, 25 Nov 2020 04:14:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Gc4qMJXhyMRQIhW7uEhJjTGAKZr58S2+Yff/bL5CKfw=; b=aQKjaBEpeAeb6ZLZ17pm9DV8Yu0vy67SxJ+5DD1ssG9wouS3ZRkXMX3EpDGWBHQADp pJNr2c7o2gTNKwfG+3a4PliR36t49LMWvq1PTsmUMU4zVmumc4nGxnBes50fCH6ItjFm 1nDsqevMKyyaZ1ms5f2beyvnZr8SsltvkDte21eB2VPvEq+dr9PqrCmUWQk87Ril29Aq n59xXxhH26E5j+m4w8EGnYWQS3tY4NlJYLceABykfG17vWKLSXAomeHu34FrKT2jVZXO QraytfXvW5a5UxpbQvjLlJAI3vVG7C9tBX/KYZT5OhkHcJ5xvb7ThkeLx807WlCBwojx 2zyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Gc4qMJXhyMRQIhW7uEhJjTGAKZr58S2+Yff/bL5CKfw=; b=W3ca2JaiOZmHRsn8nSZjLPfeUesUFyQ12x02BVRIu53hGfmJbtycCICxIF+c4Q20IK zbnpOzj49NjK75kmSov12dX2U8fQMXEn6NRzOJyfpPR9hJHAW+0rCn0alBOUTnUu1Fju l4avD1PXm/tc898JOYzK1/i3sPDKhmaljw3RVBh3hIW7mOKSE5jNmMGmkiRD4kFoLN78 cGoc0SLnXg8pOtAA4c3B/Get3BRYVJTW7On9589l0RH0Z+OEMHdfZlk4Kj7h09HV1pjY tp1u8C6KpLOfs0EKAwdzEDyt4prRtUUULsDppdoirCJkZAO2O126UCXrIZzUqomndrRx 9gsw== X-Gm-Message-State: AOAM5331WryQXSuzZMr4BZJ4cl4qlNviS3LTWzRW6LjlPqmkut06jWl3 Jo33TCnESzcX1RjV3mWJ6KaNf4sBm9Q= X-Received: by 2002:a2e:7005:: with SMTP id l5mr1213755ljc.175.1606306492472; Wed, 25 Nov 2020 04:14:52 -0800 (PST) Received: from mobilestation ([95.79.141.114]) by smtp.gmail.com with ESMTPSA id w3sm224227ljm.37.2020.11.25.04.14.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2020 04:14:51 -0800 (PST) Date: Wed, 25 Nov 2020 15:14:49 +0300 From: Serge Semin To: Tian Tao Cc: broonie@kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] spi: dw: fixed missing resource_size Message-ID: <20201125121449.zo2njliv4typz4ca@mobilestation> References: <1606114975-31362-1-git-send-email-tiantao6@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1606114975-31362-1-git-send-email-tiantao6@hisilicon.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 23, 2020 at 03:02:55PM +0800, Tian Tao wrote: > fixed the coccicheck: > drivers/spi/spi-dw-bt1.c:220:27-30: ERROR: Missing > resource_size with mem. Thanks, Tian! Acked-by: Serge Semin > > Signed-off-by: Tian Tao > --- > drivers/spi/spi-dw-bt1.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/spi/spi-dw-bt1.c b/drivers/spi/spi-dw-bt1.c > index f382dfad..da4f4d8 100644 > --- a/drivers/spi/spi-dw-bt1.c > +++ b/drivers/spi/spi-dw-bt1.c > @@ -217,7 +217,7 @@ static int dw_spi_bt1_sys_init(struct platform_device *pdev, > if (mem) { > dwsbt1->map = devm_ioremap_resource(&pdev->dev, mem); > if (!IS_ERR(dwsbt1->map)) { > - dwsbt1->map_len = (mem->end - mem->start + 1); > + dwsbt1->map_len = resource_size(mem); > dws->mem_ops.dirmap_create = dw_spi_bt1_dirmap_create; > dws->mem_ops.dirmap_read = dw_spi_bt1_dirmap_read; > } else { > -- > 2.7.4 >