TP_printk|
WARN(?:_RATELIMIT|_ONCE|)|
CDEBUG|CERROR|CNETERR|CEMERG|CL_LOCK_DEBUG|CWARN|DEBUG_REQ|LCONSOLE_[A-Z]*|
- CERROR_SLOW|CWARN_SLOW|
+ error|CERROR_SLOW|CWARN_SLOW|
panic|
MODULE_[A-Z_]+|
seq_vprintf|seq_printf|seq_puts|
my ($suspect, $fix) = split(/\|\|/, $line);
+ if ($fix =~ m/^\s*$/ || $suspect =~ m/^\s*$/) {
+ warn "$spelling_file: missing suspect or fix on line '$line'\n";
+ next;
+ }
+ if (exists $spelling_fix{$suspect}) {
+ my $oldfix = $spelling_fix{$suspect};
+ if ($oldfix ne $fix) {
+ warn "$spelling_file: duplicate suspect '$suspect' defined to both '$oldfix' and '$fix'!\n";
+ }
+ next;
+ }
$spelling_fix{$suspect} = $fix;
}
close($spelling);
my ($suspect, $fix) = split(/->/, $line);
+ if ($fix =~ m/^\s*$/ || $suspect =~ m/^\s*$/) {
+ warn "$codespellfile: missing suspect or fix on line '$line'\n";
+ next;
+ }
+ if (exists $spelling_fix{$suspect}) {
+ my $oldfix = $spelling_fix{$suspect};
+ if ($oldfix ne $fix) {
+ warn "$codespellfile: suspect '$suspect' defined to both '$oldfix' and '$fix'!\n";
+ }
+ next;
+ }
$spelling_fix{$suspect} = $fix;
}
close($spelling);
my ($suspect, $fix) = split(/\|\|/, $line);
+ if ($fix =~ m/^\s*$/ || $suspect =~ m/^\s*$/) {
+ warn "$spelling_file_userspace: missing suspect or fix on line '$line'\n";
+ next;
+ }
+ if (exists $spelling_fix_user{$suspect}) {
+ my $oldfix = $spelling_fix_user{$suspect};
+ if ($oldfix ne $fix) {
+ warn "$spelling_file_userspace: suspect '$suspect' defined to both '$oldfix' and '$fix'!\n";
+ }
+ next;
+ }
$spelling_fix_user{$suspect} = $fix;
}
close($spelling);
my $typo_fix = $spelling_fix_user{$typo};
if (!defined($typo_fix)) {
$typo_fix = "CHECKPATCH ERROR";
+ foreach my $suspect (keys %spelling_fix_user) {
+ if ($typo =~ /$suspect/) {
+ $typo_fix = $spelling_fix_user{$suspect};
+ last;
+ }
+ }
}
my $msg_level = \&WARN;
$msg_level = \&CHK if ($file);
my $typo_fix = $spelling_fix{$typo};
if (!defined($typo_fix)) {
$typo_fix = "CHECKPATCH ERROR";
+ foreach my $suspect (keys %spelling_fix) {
+ if ($typo =~ /$suspect/) {
+ $typo_fix = $spelling_fix{$suspect};
+ last;
+ }
+ }
}
my $msg_level = \&WARN;
$msg_level = \&CHK if ($file);
$msg_type = "";
# a Lustre message that contains embedded formatting
- } elsif ($line =~ /^\+\s*(?:$logFunctions\s*\()?($String(?:DFID|DOSTID)$String\s*(?:|,|\)\s*;)?\s*)$/ &&
+ } elsif ($line =~ /^\+\s*(?:$logFunctions\s*\()?($String(?:DFID|DNAME|DOSTID)$String\s*(?:|,|\)\s*;)?\s*)$/ &&
length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
$msg_type = ""
del_timer||timer_delete
del_timer_sync||timer_delete_sync
del_singleshot_timer_sync||timer_delete_sync
-\.\*s||DNAME
+\.\*s||DNAME and encode_fn_len()
d_name.name||encode_fn_xxx
DN_MAX_BONUSLEN||DN_BONUS_SIZE(dnodesize)
DN_OLD_MAX_BONUSLEN||DN_BONUS_SIZE(DNODE_MIN_SIZE)
page_cache_release||put_page
PAGE_CACHE_SHIFT||PAGE_SHIFT
PAGE_CACHE_SIZE||PAGE_SIZE
-PNAME||encode_fname_luname
+PNAME||encode_fn_luname
prandom_u32||get_random_u32
prandom_u32_max||get_random_u32_below
ptlrpc_req_finished||ptlrpc_req_put