Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1253367

Re: [PATCH 2/2] Fixed Trivial Warnings in file: Deleted Spaces prior to tabs, and added lines. modified: kernel/auditfilter.c

From Scott Matheina <scott@matheina.com>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2] Fixed Trivial Warnings in file: Deleted Spaces prior to tabs, and added lines. modified: kernel/auditfilter.c
Date 2015-10-22 02:40 +0200
Message-ID <qmc5c-2zR-3@gated-at.bofh.it> (permalink)
References (1 earlier) <qjCfw-2ZW-13@gated-at.bofh.it> <ql0pt-3ZY-11@gated-at.bofh.it> <qllkd-19s-1@gated-at.bofh.it> <qm2IA-5OI-55@gated-at.bofh.it> <qm3EC-7ex-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On 10/21/2015 10:33 AM, Richard Guy Briggs wrote:
> On 15/10/21, Joe Perches wrote:
>> On Mon, 2015-10-19 at 12:10 -0400, Richard Guy Briggs wrote:
>>> 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
>> []
>>>>>> @@ -109,6 +109,7 @@ void audit_free_rule_rcu(struct rcu_head *head)
>>>>>>  {
>>>>>>  	struct audit_entry *e = container_of(head, struct audit_entry, rcu);
>>>>>>  	audit_free_rule(e);
>>>>>> +
>>>>>>  }
>>>>> Why?
>>>> I was following the error messages in checkpatch.pl, but the warning
>>>> went away after adding this line. No problem with the code. 
>>> That sounds like a bug in checkpatch.pl, since that blank line should be
>>> tween the declaration and the function call.
>> checkpatch message asks for a blank line after the
>> "struct audit_entry *e = ..." declaration.
> Well then maybe it is a bug in his interpretation of the output of
> checkpatch.pl?  Scott, did you re-run checkpatch.pl after adding those
> spaces?  Did it pass?

The error did go away. 

>>>>>>  	while (*list != ~0U) {
>>>>>> +
>>>>>>  		unsigned n = *list++;
>>>>>>  		if (n >= AUDIT_BITMASK_SIZE * 32 - AUDIT_SYSCALL_CLASSES) {
>>>>>>  			kfree(p);
>>>>> Why?
>>>> This is the same as above. Just going through the checkpatch.pl
>>>> script, and looking for warnings to fix. 
>>> Again, another manifestation of that bug?  That blank line should be
>>> after the declaration and before the if statement.
>> []
>>> Well, I agree, you have to start somewhere...  Too bad you hit a bug in
>>> checkpatch.pl!
>> Here too, not a bug in checkpatch.
>>
>> checkpatch output asks for a blank line after the
>> "unsigned n" declaration, not before.
> - RGB
>
> --
> Richard Guy Briggs <rbriggs@redhat.com>
> 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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH 2/2] Fixed Trivial Warnings in file: Deleted Spaces prior  to tabs, and added lines. modified: kernel/auditfilter.c Scott Matheina <scott@matheina.com> - 2015-10-18 20:00 +0200
  Re: [PATCH 2/2] Fixed Trivial Warnings in file: Deleted Spaces prior  to tabs, and added lines. modified: kernel/auditfilter.c Richard Guy Briggs <rgb@redhat.com> - 2015-10-19 18:20 +0200
    Re: [PATCH 2/2] Fixed Trivial Warnings in file: Deleted Spaces  prior to tabs, and added lines. modified: kernel/auditfilter.c Joe Perches <joe@perches.com> - 2015-10-21 16:40 +0200
      Re: [PATCH 2/2] Fixed Trivial Warnings in file: Deleted Spaces prior  to tabs, and added lines. modified: kernel/auditfilter.c Richard Guy Briggs <rgb@redhat.com> - 2015-10-21 17:40 +0200
        Re: [PATCH 2/2] Fixed Trivial Warnings in file: Deleted Spaces prior  to tabs, and added lines. modified: kernel/auditfilter.c Scott Matheina <scott@matheina.com> - 2015-10-22 02:40 +0200
          Re: [PATCH 2/2] Fixed Trivial Warnings in file: Deleted Spaces prior  to tabs, and added lines. modified: kernel/auditfilter.c Richard Guy Briggs <rgb@redhat.com> - 2015-10-22 04:20 +0200
            Re: [PATCH 2/2] Fixed Trivial Warnings in file: Deleted Spaces prior  to tabs, and added lines. modified: kernel/auditfilter.c Scott Matheina <scott@matheina.com> - 2015-10-22 05:30 +0200
              Re: [PATCH 2/2] Fixed Trivial Warnings in file: Deleted Spaces prior  to tabs, and added lines. modified: kernel/auditfilter.c Richard Guy Briggs <rgb@redhat.com> - 2015-10-22 15:00 +0200
            Re: [PATCH 2/2] Fixed Trivial Warnings in file: Deleted Spaces prior  to tabs, and added lines. modified: kernel/auditfilter.c Scott Matheina <scott@matheina.com> - 2015-10-26 01:00 +0100
            Re: [PATCH 2/2] Fixed Trivial Warnings in file: Deleted Spaces  prior to tabs, and added lines. modified: kernel/auditfilter.c Joe Perches <joe@perches.com> - 2015-10-27 21:00 +0100
  Re: [PATCH 2/2] Fixed Trivial Warnings in file: Deleted Spaces prior to tabs, and added lines. modified: kernel/auditfilter.c Paul Moore <paul@paul-moore.com> - 2015-10-21 20:30 +0200
    Re: [PATCH 2/2] Fixed Trivial Warnings in file: Deleted Spaces prior  to tabs, and added lines. modified: kernel/auditfilter.c Scott Matheina <scott@matheina.com> - 2015-10-22 02:40 +0200
      Re: [PATCH 2/2] Fixed Trivial Warnings in file: Deleted Spaces prior  to tabs, and added lines. modified: kernel/auditfilter.c Paul Moore <paul@paul-moore.com> - 2015-10-22 22:50 +0200

csiph-web