If the patch is restricted to inserting whitespace, it could be validated by stripping all whitespace out of the affected code before and after applying the patch, and making sure that the result is identical.
Or just using indent to canonicalize both "before" and "after" versions, then running diff on the two trees.
Heck, a few tweaks should allow one to use indent directly as the style-enforcement tool...
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds