Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1075408ybl; Fri, 10 Jan 2020 11:38:13 -0800 (PST) X-Google-Smtp-Source: APXvYqzX0XU+KP3yDfpknp2d4nVxQMCy3wNCT4dwVDJgNUVeqvAk+6ZijQYBqGpedxjDpNiU+t/J X-Received: by 2002:aca:fcd0:: with SMTP id a199mr3325142oii.143.1578685093134; Fri, 10 Jan 2020 11:38:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578685093; cv=none; d=google.com; s=arc-20160816; b=f4yBTT63h/+c0IBK/flzjAhGtH3k/27MmFx739Dl7+xHNPXXHjHdzAFUeIrfDT8FUm ilVmpgrAKd6biVdlSdj2drnyDInxeEjKLJYhuksvjFplZo8XLhDbTUtcvJBX+RcS/PSO 7ArcBR8kplYgdos2f6+bACLKyyM5um1S6t91TQL9sDFRMBnzk3b2CrQb5v0dPis7yQBa m/aNx36ReYjbgh/88b1DApljIsGfFqKFXcwSN09BfU1zO9T1Muvs75PzTGT7bQR4M9Ha oyKvm3OKxrYH7MZWK9zvkXnBPjlcW4LQw6mCbInUqmX0BTDJqz4jChRTFx4L/gYkhtwV 8v/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:references:subject:cc:cc:cc :to:from:date:message-id; bh=Ubz1pY/rEGbBUXDLqdjiVBBYYj5VCsEXF78ESs6AqOE=; b=MNaN2FoFnSNQ1F9v8VeKZXX/GW5dfgk/+nP+ntc9TBCYx/YAe8+aabWDDvP4/egnpl M8VKHGEQcnCQcl1s4x+TG17jy8UIe5QPzjfBvWjhatSn9bhKpzrvFTdZxc+zv7z7jCFt 9lvXunRZZ1Sg9AUlNmA4T1YemKvd1IxzdwbtThef9v7260gt99GTe0Czino/hujdx+FY JqWeii0pimQm2yoYg7heIJe8u3wFw1eb3W9d1KRw9c5UW5r7P+fCcreKyzWXdfO6zcVF zwCjrG3WhsAUFSWq4xOtzjsdjoh45LwhyJ+ymWf96zk/fBdp7Y/5DMH8cSyPWhJIapra 5e0g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f190si1619686oig.229.2020.01.10.11.38.01; Fri, 10 Jan 2020 11:38:13 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728633AbgAJTgJ (ORCPT + 99 others); Fri, 10 Jan 2020 14:36:09 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:39286 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727709AbgAJTgJ (ORCPT ); Fri, 10 Jan 2020 14:36:09 -0500 Received: by mail-pf1-f196.google.com with SMTP id q10so1596825pfs.6; Fri, 10 Jan 2020 11:36:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:to:cc:cc:cc:subject :references:in-reply-to; bh=Ubz1pY/rEGbBUXDLqdjiVBBYYj5VCsEXF78ESs6AqOE=; b=Cd+eptk/5ytFyFd9qQefKPJFdBwhFPbc0OQ6BtItgkQDgKgX1ccw4gOMKM3/3/AN4G Jg7aEIjUUoaCycAqHZHEOznrReCKcnv8Y0Iq/5QK4JYRcHBPB9RpnieZmaW55Dbf4Wje q8eWvcihYfa2s380XnlinvbiaVCw7Mhp25lY3aK9aTpV6JJNNtvqphLXpXHlHkXffLVc VujdVjaaj2xW4JDWdDKZXKFu9EJoS5I+yjQl7JbZKP44/uEEx4nTAJvh/sfzuRfYHOdq GpXb9wB4Yp8Yc1/NIbTWnQ2aXKA2VRVw3Lo9QJU0kraqndGsLvgwOt1yAHmsJKib/iqP k8Yg== X-Gm-Message-State: APjAAAU0SFa7d7hT6Djq0XSn0srjEcg/zPvRWq6/epGYajJhki4m07MC BwNy9gr69dMp7KjvVxG9HFE= X-Received: by 2002:a62:e912:: with SMTP id j18mr6008649pfh.4.1578684968302; Fri, 10 Jan 2020 11:36:08 -0800 (PST) Received: from localhost (MIPS-TECHNO.ear1.SanJose1.Level3.net. [4.15.122.74]) by smtp.gmail.com with ESMTPSA id y203sm4145509pfb.65.2020.01.10.11.36.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jan 2020 11:36:07 -0800 (PST) Message-ID: <5e18d227.1c69fb81.44066.9d0d@mx.google.com> Date: Fri, 10 Jan 2020 11:36:06 -0800 From: Paul Burton To: Julia Lawall CC: Ralf Baechle CC: kernel-janitors@vger.kernel.org, Paul Burton , James Hogan , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org CC: linux-mips@vger.kernel.org Subject: Re: [PATCH 08/10] MIPS: use resource_size References: <1577900990-8588-9-git-send-email-Julia.Lawall@inria.fr> In-Reply-To: <1577900990-8588-9-git-send-email-Julia.Lawall@inria.fr> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Julia Lawall wrote: > Use resource_size rather than a verbose computation on > the end and start fields. > > The semantic patch that makes these changes is as follows: > (http://coccinelle.lip6.fr/) > > > @@ struct resource ptr; @@ > - (ptr.end - ptr.start + 1) > + resource_size(&ptr) > Applied to mips-next. > commit ecb983790fe8 > https://git.kernel.org/mips/c/ecb983790fe8 > > Signed-off-by: Julia Lawall > Reviewed-by: Philippe Mathieu-Daudé > Signed-off-by: Paul Burton Thanks, Paul [ This message was auto-generated; if you believe anything is incorrect then please email paulburton@kernel.org to report it. ]