Describe the bug
If a user attempts to add something like
void foo(void)
{
int a = 0;
if (a == 0) {
return;
}
}
then checkpatch.pl would return an error like
WARNING : Test Checkpatch warning:
LINE_SPACING: Missing a blank line after declarations
as it should be
void foo(void)
{
int a = 0;
if (a == 0) {
return;
}
}
However if the existing code is
void foo(void)
{
int a = 0;
if (a == 0) {
return;
}
}
and a commit removes the newline so that it becomes
void foo(void)
{
int a = 0;
if (a == 0) {
return;
}
}
Then the missing newline is not captured by checkpatch.pl, and it passes CI.
Regression
Steps to reproduce
N/A
Relevant log output
Impact
Annoyance – Minor irritation; no significant impact on usability or functionality.
Environment
8b2c75a
Additional Context
It has been seen in a few PRs (e.g. #98406), so it's valid issue, but it's fairly harmless.
Describe the bug
If a user attempts to add something like
then
checkpatch.plwould return an error likeas it should be
However if the existing code is
and a commit removes the newline so that it becomes
Then the missing newline is not captured by checkpatch.pl, and it passes CI.
Regression
Steps to reproduce
N/A
Relevant log output
Impact
Annoyance – Minor irritation; no significant impact on usability or functionality.
Environment
8b2c75a
Additional Context
It has been seen in a few PRs (e.g. #98406), so it's valid issue, but it's fairly harmless.