]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: warn when missing newline in return sysfs_emit() formats
authorJoe Perches <joe@perches.com>
Fri, 7 May 2021 01:03:55 +0000 (18:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 7 May 2021 02:24:12 +0000 (19:24 -0700)
commita2ea9ee707a4b3442f974e67f50cdf4d73faa032
tree0636902b357d3ea6e82e6dfefc58ff778cea85f0
parent1bae3caacf2e563b9fe506ceab66ea04308cba65
checkpatch: warn when missing newline in return sysfs_emit() formats

return sysfs_emit() uses should include a newline.

Suggest adding a newline when one is missing.
Add one using --fix too.

Link: https://lkml.kernel.org/r/aa1819fa5faf786573df298e5e2e7d357ba7d4ad.camel@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl