[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1508413536.6806.38.camel@perches.com>
Date: Thu, 19 Oct 2017 04:45:36 -0700
From: Joe Perches <joe@...ches.com>
To: SF Markus Elfring <elfring@...rs.sourceforge.net>,
kernel-janitors@...r.kernel.org, linux-doc@...r.kernel.org
Cc: Jessica Yu <jeyu@...nel.org>,
Rusty Russell <rusty@...tcorp.com.au>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: kernel/module: Delete an error message for a failed memory
allocation in add_module_usage()
On Thu, 2017-10-19 at 13:35 +0200, SF Markus Elfring wrote:
> > > > > Omit an extra message for a memory allocation failure in this function.
> > > > >
> > > > > This issue was detected by using the Coccinelle software.
[]
> > > Do you see any need that I should extend subsequent commit messages
> > > for this software transformation pattern?
> >
> > Add a description of _why_ this is being done.
> >
> > Something like:
> >
> > "because there is a dump_stack() done on allocation failures
> > without __GFP_JNOWARN"
>
> How do you think about to convert such a description into a special format
> for further reference documentation?
I think it's a bad idea if it's a "special" format.
Always write _why_ some code is being changed.
People could read the commit descriptions and would not need
to take extra time to lookup external references.
Maybe add something like
"see (commit <foo> or <file>)" for additional details"
Powered by blists - more mailing lists