diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 0ad235ee96f9121c044ed217158e951f31b8d549..0fcfb21cca0d91fd97fef077c397ed4656dcca37 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -6312,6 +6312,10 @@ sub process { my $stat_real = get_stat_real($linenr, $lc); my $ext_type = "Invalid"; my $use = ""; + if ($bad_specifier =~ /pA/) { + ERROR("VSPRINTF_RUST", + "'\%pA' is only intended to be used from Rust code\n" . "$here\n$stat_real\n"); + } if ($bad_specifier =~ /p[Ff]/) { $use = " - use %pS instead"; $use =~ s/pS/ps/ if ($bad_specifier =~ /pf/);