summaryrefslogtreecommitdiff
path: root/scripts/test_fortify.sh
diff options
context:
space:
mode:
authorMiguel Ojeda <ojeda@kernel.org>2022-05-22 03:11:08 +0200
committerMiguel Ojeda <ojeda@kernel.org>2022-09-28 09:00:58 +0200
commitde48fa1a01e7752135c960a20d6c3b26544a8120 (patch)
tree124e6b0166ebb4cc590ec7170eb79de11bd3f4d0 /scripts/test_fortify.sh
parent787983da77185d355564b0436f7b4eaa40b8904b (diff)
scripts: checkpatch: diagnose uses of `%pA` in the C side as errors
The `%pA` format specifier is only intended to be used from Rust. `checkpatch.pl` already gives a warning for invalid specificers: WARNING: Invalid vsprintf pointer extension '%pA' This makes it an error and introduces an explanatory message: ERROR: Invalid vsprintf pointer extension '%pA' - '%pA' is only intended to be used from Rust code Suggested-by: Kees Cook <keescook@chromium.org> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Co-developed-by: Alex Gaynor <alex.gaynor@gmail.com> Signed-off-by: Alex Gaynor <alex.gaynor@gmail.com> Co-developed-by: Wedson Almeida Filho <wedsonaf@google.com> Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com> Co-developed-by: Joe Perches <joe@perches.com> Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'scripts/test_fortify.sh')
0 files changed, 0 insertions, 0 deletions