Re: [PATCH] checkpatch: Emit a warning on embedded filenames

2020-10-02 Thread Joe Perches
On Fri, 2020-10-02 at 15:18 -0700, Andrew Morton wrote: > On Thu, 01 Oct 2020 11:28:10 -0700 Joe Perches wrote: > > > Embedding the complete filename path inside the file > > isn't particularly useful as often the path is moved > > around and becomes incorrect. > > > > Emit a warning when the

Re: [PATCH] checkpatch: Emit a warning on embedded filenames

2020-10-02 Thread Andrew Morton
On Thu, 01 Oct 2020 11:28:10 -0700 Joe Perches wrote: > Embedding the complete filename path inside the file > isn't particularly useful as often the path is moved > around and becomes incorrect. > > Emit a warning when the source contains the filename. > > ... > > --- a/scripts/checkpatch.pl

[PATCH] checkpatch: Emit a warning on embedded filenames

2020-10-01 Thread Joe Perches
Embedding the complete filename path inside the file isn't particularly useful as often the path is moved around and becomes incorrect. Emit a warning when the source contains the filename. Signed-off-by: Joe Perches --- scripts/checkpatch.pl | 6 ++ 1 file changed, 6 insertions(+) diff