On 15/10/21, Scott Matheina wrote:I had just cloned Linus' repo, so v4.3rc6.
On 10/21/2015 10:33 AM, Richard Guy Briggs wrote:Joe, I confirm the error went away. Looks like a bug in checkpatch.pl
On 15/10/21, Joe Perches wrote:The error did go away.
On Mon, 2015-10-19 at 12:10 -0400, Richard Guy Briggs wrote:Well then maybe it is a bug in his interpretation of the output of
On 15/10/18, Scott Matheina wrote:[]
On 10/14/2015 04:54 PM, Paul Moore wrote:
On Saturday, October 10, 2015 08:57:55 PM Scott Matheina wrote:
[]diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c
checkpatch message asks for a blank line after theThat sounds like a bug in checkpatch.pl, since that blank line should beI was following the error messages in checkpatch.pl, but the warning@@ -109,6 +109,7 @@ void audit_free_rule_rcu(struct rcu_head *head)Why?
{
struct audit_entry *e = container_of(head, struct audit_entry, rcu);
audit_free_rule(e);
+
}
went away after adding this line. No problem with the code.
tween the declaration and the function call.
"struct audit_entry *e = ..." declaration.
checkpatch.pl? Scott, did you re-run checkpatch.pl after adding those
spaces? Did it pass?
to me. I tried a number of combinations of things and it didn't
complain about several things it should have. I did try a few other
things to make sure it was still finding problems like brace placement
and leading spaces, but it looks like the blank line checking code isn't
working. This is on 4.0, so maybe it has been fixed since then. Scott,
what kernel version are you using?
- RGB- RGB[]Again, another manifestation of that bug? That blank line should beThis is the same as above. Just going through the checkpatch.plwhile (*list != ~0U) {Why?
+
unsigned n = *list++;
if (n >= AUDIT_BITMASK_SIZE * 32 - AUDIT_SYSCALL_CLASSES) {
kfree(p);
script, and looking for warnings to fix.
after the declaration and before the if statement.
Well, I agree, you have to start somewhere... Too bad you hit a bug inHere too, not a bug in checkpatch.
checkpatch.pl!
checkpatch output asks for a blank line after the
"unsigned n" declaration, not before.
--
Richard Guy Briggs <rbriggs@xxxxxxxxxx>
Senior Software Engineer, Kernel Security, AMER ENG Base Operating Systems, Red Hat
Remote, Ottawa, Canada
Voice: +1.647.777.2635, Internal: (81) 32635, Alt: +1.613.693.0684x3545