-
Notifications
You must be signed in to change notification settings - Fork 7.4k
checkpatch.pl incorrect ERROR:POINTER_LOCATION #27002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@pabigot is this an upstream checkpatch.pl issue or did one of our local changes cause this? I don't recall ever running into this before, but I recall we recently pulled up to a new version.. |
I don't know, but I can tell you that checkpatch thinks that in the given contexts It treats
If you change that to:
it becomes unconfused. |
Until zephyrproject-rtos#27002 is resolved, disable this check that doesn't work. Signed-off-by: Andrew Boie <[email protected]>
I sent a patch to turn off the check until this sorts out. Wondering why it flagged |
checkpatch doesn't care that it's inside The diagnostic can also be eliminated by moving the This is upstream checkpatch behavior, not specific to Zephyr. Modifying the script to detect this situation isn't something I'd take on. |
Also from #26785:
is an expected failure. Because Linux and Zephyr disallow typedefs checkpatch can't recognize that |
Fixing the diagnostics to be correct is not reasible with 2020-07-21 Triage suggested two paths to resolving this:
Taking the first path risks increased introduction of constructs that violate Zephyr's coding style by not attaching the The second is addressed by #27035. |
How much of a concern is this really, given the costs of false positives in CI runs which leave a -1? Converting to a warning seems very reasonable to me. But it's also true that this issue has been around for a while and works most of the time, at least. Ultimately I leave to your discretion how we want to deal with it, I appreciate you taking time to look into this. I can try to massage my patch to get the warning to go away in the immediate term. |
Describe the bug
Found in checks for #27001.
Impact
It's leaving a -1 on my patch because this is treated as an error and not a warning.
The text was updated successfully, but these errors were encountered: