All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: Julia Lawall <Julia.Lawall@inria.fr>
Cc: kvm@vger.kernel.org, kernel-janitors@vger.kernel.org,
	Cornelia Huck <cohuck@redhat.com>,
	linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,
	openrisc@lists.librecores.org
Subject: Re: [PATCH 0/4] use mmgrab
Date: Fri, 03 Jan 2020 12:31:00 +0000	[thread overview]
Message-ID: <20200103123059.GI3911@kadam> (raw)
In-Reply-To: <1577634178-22530-1-git-send-email-Julia.Lawall@inria.fr>

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

WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <dan.carpenter@oracle.com>
To: openrisc@lists.librecores.org
Subject: [OpenRISC] [PATCH 0/4] use mmgrab
Date: Fri, 3 Jan 2020 15:31:00 +0300	[thread overview]
Message-ID: <20200103123059.GI3911@kadam> (raw)
In-Reply-To: <1577634178-22530-1-git-send-email-Julia.Lawall@inria.fr>

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

WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <dan.carpenter@oracle.com>
To: Julia Lawall <Julia.Lawall@inria.fr>
Cc: kvm@vger.kernel.org, Cornelia Huck <cohuck@redhat.com>,
	kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org,
	openrisc@lists.librecores.org, linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH 0/4] use mmgrab
Date: Fri, 3 Jan 2020 15:31:00 +0300	[thread overview]
Message-ID: <20200103123059.GI3911@kadam> (raw)
In-Reply-To: <1577634178-22530-1-git-send-email-Julia.Lawall@inria.fr>

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

WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <dan.carpenter@oracle.com>
To: Julia Lawall <Julia.Lawall@inria.fr>
Cc: kvm@vger.kernel.org, kernel-janitors@vger.kernel.org,
	Cornelia Huck <cohuck@redhat.com>,
	linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,
	openrisc@lists.librecores.org
Subject: Re: [PATCH 0/4] use mmgrab
Date: Fri, 3 Jan 2020 15:31:00 +0300	[thread overview]
Message-ID: <20200103123059.GI3911@kadam> (raw)
In-Reply-To: <1577634178-22530-1-git-send-email-Julia.Lawall@inria.fr>

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

  parent reply	other threads:[~2020-01-03 12:31 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-29 15:42 [PATCH 0/4] use mmgrab Julia Lawall
2019-12-29 15:42 ` Julia Lawall
2019-12-29 15:42 ` Julia Lawall
2019-12-29 15:42 ` [OpenRISC] " Julia Lawall
2019-12-29 15:42 ` [PATCH 1/4] misc: cxl: " Julia Lawall
2019-12-29 15:42   ` Julia Lawall
2019-12-29 15:42   ` Julia Lawall
2019-12-29 22:38   ` Andrew Donnellan
2019-12-29 22:38     ` Andrew Donnellan
2019-12-29 22:38     ` Andrew Donnellan
2020-01-29  5:17   ` Michael Ellerman
2020-01-29  5:17     ` Michael Ellerman
2019-12-29 15:42 ` [PATCH 2/4] vfio: vfio_pci_nvlink2: " Julia Lawall
2019-12-29 15:42   ` Julia Lawall
2020-01-06 23:05   ` Alex Williamson
2020-01-06 23:05     ` Alex Williamson
2020-01-07  5:51     ` Dan Carpenter
2020-01-07  5:51       ` Dan Carpenter
2020-01-07 17:00     ` Julia Lawall
2020-01-07 17:00       ` Julia Lawall
2020-01-07 17:10       ` Alex Williamson
2020-01-07 17:10         ` Alex Williamson
2020-01-07  9:14   ` Cornelia Huck
2020-01-07  9:14     ` Cornelia Huck
2019-12-29 15:42 ` [PATCH 3/4] vfio/spapr_tce: " Julia Lawall
2019-12-29 15:42   ` Julia Lawall
2020-01-06 23:05   ` Alex Williamson
2020-01-06 23:05     ` Alex Williamson
2020-01-07  9:14   ` Cornelia Huck
2020-01-07  9:14     ` Cornelia Huck
2019-12-29 15:42 ` [PATCH 4/4] openrisc: " Julia Lawall
2019-12-29 15:42   ` Julia Lawall
2019-12-29 15:42   ` [OpenRISC] " Julia Lawall
2019-12-30  4:49   ` kbuild test robot
2019-12-30  4:49     ` kbuild test robot
2019-12-30  4:49     ` kbuild test robot
2019-12-30  4:49     ` [OpenRISC] " kbuild test robot
2020-01-06 14:53     ` Stafford Horne
2020-01-06 14:53       ` Stafford Horne
2020-01-06 14:53       ` Stafford Horne
2020-01-06 14:53       ` [OpenRISC] " Stafford Horne
2020-01-31 13:25     ` Stafford Horne
2020-01-31 13:25       ` Stafford Horne
2020-01-31 13:25       ` Stafford Horne
2020-01-31 13:25       ` [OpenRISC] " Stafford Horne
2020-01-03 12:31 ` Dan Carpenter [this message]
2020-01-03 12:31   ` [PATCH 0/4] " Dan Carpenter
2020-01-03 12:31   ` Dan Carpenter
2020-01-03 12:31   ` [OpenRISC] " Dan Carpenter
2020-01-03 12:47   ` Julia Lawall
2020-01-03 12:47     ` Julia Lawall
2020-01-03 12:47     ` Julia Lawall
2020-01-03 12:47     ` [OpenRISC] " Julia Lawall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200103123059.GI3911@kadam \
    --to=dan.carpenter@oracle.com \
    --cc=Julia.Lawall@inria.fr \
    --cc=cohuck@redhat.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=openrisc@lists.librecores.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.