On Wed, 2026-03-25 at 23:20 -0700, Dmitry Torokhov wrote: > checkpatch does not handle full files well when they are passed on > stdin, because it does not know how to treat the text, and whether it is > a C file, or a DTS file, or something else, and so it assumes that when > it works with stdin it should be a unified diff. For full files it > expects to have a file name as an argument and read the contents from > disk. Unfortunately this does not well when trying to use checkpatch as > an online linter and feed it contents of an editor buffer that have not > made it to the disk yet.
Why is this useful? Why not save the buffer and then feed the file?

