checkpatch warns a symbolic link has not a newline
From: Michael.Wu
Date: Wed Nov 10 2021 - 01:50:47 EST
Hi Andy & Joe,
I have a commit that contains a newly created symbolic link pointing to a certain file. I used ./scripts/checkpatch.pl to check this commit and then I got a WARNING: adding a line without newline at end of file. The symbolic link was created by ln -s.
I'm confused why it returned such a warning. Is the content of the patch not allowed to contain symbolic links? If it is allowed, I think checkpatch.pl can make some improvements, so that symbolic links will not be treated a warnings because of missing newline at end of file.
Best Regards,
Michael Wu