From: Dan Carpenter Date: Fri, 03 Jan 2020 12:31:00 +0000 Subject: Re: [PATCH 0/4] use mmgrab Message-Id: <20200103123059.GI3911@kadam> List-Id: References: <1577634178-22530-1-git-send-email-Julia.Lawall@inria.fr> In-Reply-To: <1577634178-22530-1-git-send-email-Julia.Lawall@inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Julia Lawall Cc: kvm@vger.kernel.org, kernel-janitors@vger.kernel.org, Cornelia Huck , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, openrisc@lists.librecores.org On Sun, Dec 29, 2019 at 04:42:54PM +0100, Julia Lawall wrote: > Mmgrab was introduced in commit f1f1007644ff ("mm: add new mmgrab() > helper") and most of the kernel was updated to use it. Update a few > remaining files. I wonder if there is an automatic way to generate these kind of Coccinelle scripts which use inlines instead of open coding. Like maybe make a list of one line functions, and then auto generate a recipe. Or the mmgrab() function could have multiple lines if the first few were just sanity checks for NULL or something... regards, dan carpenter