From: Joe Perches Date: Thu, 19 Oct 2017 11:45:36 +0000 Subject: Re: kernel/module: Delete an error message for a failed memory allocation in add_module_usage() Message-Id: <1508413536.6806.38.camel@perches.com> List-Id: References: <20171019110824.wqkep7bpcx3dcw5w@redbean> <43c71898-82c3-215a-3176-e1a6d56ef10a@users.sourceforge.net> <1508412567.6806.36.camel@perches.com> <1dee801c-37b5-4d72-b33f-ebdc135b4f25@users.sourceforge.net> In-Reply-To: <1dee801c-37b5-4d72-b33f-ebdc135b4f25@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: SF Markus Elfring , kernel-janitors@vger.kernel.org, linux-doc@vger.kernel.org Cc: Jessica Yu , Rusty Russell , LKML On Thu, 2017-10-19 at 13:35 +0200, SF Markus Elfring wrote: > > > > > Omit an extra message for a memory allocation failure in this fun= ction. > > > > >=20 > > > > > 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? > >=20 > > Add=A0a description of _why_ this is being done. > >=20 > > Something like: > >=20 > > "because there is a dump_stack() done on allocation failures > > without __GFP_JNOWARN" >=20 > 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 or )" for additional details" -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html