* [PATCH 2/9] KVM: arm: Do not indent the arguments of DECLARE_BITMAP
[not found] <1444940195-28272-1-git-send-email-mmarek@suse.com>
@ 2015-10-15 20:16 ` Michal Marek
2015-10-18 20:34 ` Christoffer Dall
0 siblings, 1 reply; 5+ messages in thread
From: Michal Marek @ 2015-10-15 20:16 UTC (permalink / raw)
To: linux-kbuild; +Cc: linux-kernel, kvmarm
Besides being a coding style issue, it confuses make tags:
ctags: Warning: include/kvm/arm_vgic.h:307: null expansion of name pattern "\1"
ctags: Warning: include/kvm/arm_vgic.h:308: null expansion of name pattern "\1"
ctags: Warning: include/kvm/arm_vgic.h:309: null expansion of name pattern "\1"
ctags: Warning: include/kvm/arm_vgic.h:317: null expansion of name pattern "\1"
Cc: kvmarm@lists.cs.columbia.edu
Signed-off-by: Michal Marek <mmarek@suse.com>
---
include/kvm/arm_vgic.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/kvm/arm_vgic.h b/include/kvm/arm_vgic.h
index d901f1a47be6..58c5c0eb8d2d 100644
--- a/include/kvm/arm_vgic.h
+++ b/include/kvm/arm_vgic.h
@@ -304,9 +304,9 @@ struct vgic_cpu {
u8 *vgic_irq_lr_map;
/* Pending/active/both interrupts on this VCPU */
- DECLARE_BITMAP( pending_percpu, VGIC_NR_PRIVATE_IRQS);
- DECLARE_BITMAP( active_percpu, VGIC_NR_PRIVATE_IRQS);
- DECLARE_BITMAP( pend_act_percpu, VGIC_NR_PRIVATE_IRQS);
+ DECLARE_BITMAP(pending_percpu, VGIC_NR_PRIVATE_IRQS);
+ DECLARE_BITMAP(active_percpu, VGIC_NR_PRIVATE_IRQS);
+ DECLARE_BITMAP(pend_act_percpu, VGIC_NR_PRIVATE_IRQS);
/* Pending/active/both shared interrupts, dynamically sized */
unsigned long *pending_shared;
@@ -314,7 +314,7 @@ struct vgic_cpu {
unsigned long *pend_act_shared;
/* Bitmap of used/free list registers */
- DECLARE_BITMAP( lr_used, VGIC_V2_MAX_LRS);
+ DECLARE_BITMAP(lr_used, VGIC_V2_MAX_LRS);
/* Number of list registers on this CPU */
int nr_lr;
--
2.1.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/9] KVM: arm: Do not indent the arguments of DECLARE_BITMAP
2015-10-15 20:16 ` [PATCH 2/9] KVM: arm: Do not indent the arguments of DECLARE_BITMAP Michal Marek
@ 2015-10-18 20:34 ` Christoffer Dall
2015-10-19 11:55 ` Michal Marek
0 siblings, 1 reply; 5+ messages in thread
From: Christoffer Dall @ 2015-10-18 20:34 UTC (permalink / raw)
To: Michal Marek; +Cc: kvmarm, linux-kernel, linux-kbuild
On Thu, Oct 15, 2015 at 10:16:28PM +0200, Michal Marek wrote:
> Besides being a coding style issue, it confuses make tags:
>
> ctags: Warning: include/kvm/arm_vgic.h:307: null expansion of name pattern "\1"
> ctags: Warning: include/kvm/arm_vgic.h:308: null expansion of name pattern "\1"
> ctags: Warning: include/kvm/arm_vgic.h:309: null expansion of name pattern "\1"
> ctags: Warning: include/kvm/arm_vgic.h:317: null expansion of name pattern "\1"
>
> Cc: kvmarm@lists.cs.columbia.edu
> Signed-off-by: Michal Marek <mmarek@suse.com>
> ---
Is not being able to deal with a whitespace not a make tags problem?
As for coding style, do we really entertain these kinds of changes just
to adhere to a coding style? It feels unnecessary taints the log etc.
However, I'm curious what the general concesus and previous practice for
this sort of thing is?
Thanks,
-Christoffer
> include/kvm/arm_vgic.h | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/include/kvm/arm_vgic.h b/include/kvm/arm_vgic.h
> index d901f1a47be6..58c5c0eb8d2d 100644
> --- a/include/kvm/arm_vgic.h
> +++ b/include/kvm/arm_vgic.h
> @@ -304,9 +304,9 @@ struct vgic_cpu {
> u8 *vgic_irq_lr_map;
>
> /* Pending/active/both interrupts on this VCPU */
> - DECLARE_BITMAP( pending_percpu, VGIC_NR_PRIVATE_IRQS);
> - DECLARE_BITMAP( active_percpu, VGIC_NR_PRIVATE_IRQS);
> - DECLARE_BITMAP( pend_act_percpu, VGIC_NR_PRIVATE_IRQS);
> + DECLARE_BITMAP(pending_percpu, VGIC_NR_PRIVATE_IRQS);
> + DECLARE_BITMAP(active_percpu, VGIC_NR_PRIVATE_IRQS);
> + DECLARE_BITMAP(pend_act_percpu, VGIC_NR_PRIVATE_IRQS);
>
> /* Pending/active/both shared interrupts, dynamically sized */
> unsigned long *pending_shared;
> @@ -314,7 +314,7 @@ struct vgic_cpu {
> unsigned long *pend_act_shared;
>
> /* Bitmap of used/free list registers */
> - DECLARE_BITMAP( lr_used, VGIC_V2_MAX_LRS);
> + DECLARE_BITMAP(lr_used, VGIC_V2_MAX_LRS);
>
> /* Number of list registers on this CPU */
> int nr_lr;
> --
> 2.1.4
>
> _______________________________________________
> kvmarm mailing list
> kvmarm@lists.cs.columbia.edu
> https://lists.cs.columbia.edu/mailman/listinfo/kvmarm
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/9] KVM: arm: Do not indent the arguments of DECLARE_BITMAP
2015-10-18 20:34 ` Christoffer Dall
@ 2015-10-19 11:55 ` Michal Marek
2015-10-19 12:05 ` Christoffer Dall
0 siblings, 1 reply; 5+ messages in thread
From: Michal Marek @ 2015-10-19 11:55 UTC (permalink / raw)
To: Christoffer Dall; +Cc: linux-kbuild, linux-kernel, kvmarm
On 2015-10-18 22:34, Christoffer Dall wrote:
> On Thu, Oct 15, 2015 at 10:16:28PM +0200, Michal Marek wrote:
>> Besides being a coding style issue, it confuses make tags:
>>
>> ctags: Warning: include/kvm/arm_vgic.h:307: null expansion of name pattern "\1"
>> ctags: Warning: include/kvm/arm_vgic.h:308: null expansion of name pattern "\1"
>> ctags: Warning: include/kvm/arm_vgic.h:309: null expansion of name pattern "\1"
>> ctags: Warning: include/kvm/arm_vgic.h:317: null expansion of name pattern "\1"
>>
>> Cc: kvmarm@lists.cs.columbia.edu
>> Signed-off-by: Michal Marek <mmarek@suse.com>
>> ---
>
> Is not being able to deal with a whitespace not a make tags problem?
Yes, but the regular expressions are hardly readable already :-(.
> As for coding style, do we really entertain these kinds of changes just
> to adhere to a coding style? It feels unnecessary taints the log etc.
I wouldn't have submitted this just for the sake of coding style, it was
the ctags warning prompted me to do so.
> However, I'm curious what the general concesus and previous practice for
> this sort of thing is?
This KVM header was the only instance where whitespace confused the
patterns, so I'd say it's established practice not to do this. The other
ctags warnings were about multi-line macro invocations, where the
line-oriented regular expression rules cannot work.
Michal
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/9] KVM: arm: Do not indent the arguments of DECLARE_BITMAP
2015-10-19 11:55 ` Michal Marek
@ 2015-10-19 12:05 ` Christoffer Dall
2015-10-19 12:07 ` Michal Marek
0 siblings, 1 reply; 5+ messages in thread
From: Christoffer Dall @ 2015-10-19 12:05 UTC (permalink / raw)
To: Michal Marek; +Cc: linux-kbuild, linux-kernel, kvmarm
On Mon, Oct 19, 2015 at 01:55:24PM +0200, Michal Marek wrote:
> On 2015-10-18 22:34, Christoffer Dall wrote:
> > On Thu, Oct 15, 2015 at 10:16:28PM +0200, Michal Marek wrote:
> >> Besides being a coding style issue, it confuses make tags:
> >>
> >> ctags: Warning: include/kvm/arm_vgic.h:307: null expansion of name pattern "\1"
> >> ctags: Warning: include/kvm/arm_vgic.h:308: null expansion of name pattern "\1"
> >> ctags: Warning: include/kvm/arm_vgic.h:309: null expansion of name pattern "\1"
> >> ctags: Warning: include/kvm/arm_vgic.h:317: null expansion of name pattern "\1"
> >>
> >> Cc: kvmarm@lists.cs.columbia.edu
> >> Signed-off-by: Michal Marek <mmarek@suse.com>
> >> ---
> >
> > Is not being able to deal with a whitespace not a make tags problem?
>
> Yes, but the regular expressions are hardly readable already :-(.
>
>
> > As for coding style, do we really entertain these kinds of changes just
> > to adhere to a coding style? It feels unnecessary taints the log etc.
>
> I wouldn't have submitted this just for the sake of coding style, it was
> the ctags warning prompted me to do so.
>
>
> > However, I'm curious what the general concesus and previous practice for
> > this sort of thing is?
>
> This KVM header was the only instance where whitespace confused the
> patterns, so I'd say it's established practice not to do this. The other
> ctags warnings were about multi-line macro invocations, where the
> line-oriented regular expression rules cannot work.
>
ok, I've taken the patch.
-Christoffer
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/9] KVM: arm: Do not indent the arguments of DECLARE_BITMAP
2015-10-19 12:05 ` Christoffer Dall
@ 2015-10-19 12:07 ` Michal Marek
0 siblings, 0 replies; 5+ messages in thread
From: Michal Marek @ 2015-10-19 12:07 UTC (permalink / raw)
To: Christoffer Dall; +Cc: linux-kbuild, linux-kernel, kvmarm
On 2015-10-19 14:05, Christoffer Dall wrote:
> ok, I've taken the patch.
Thank you! I will remove it from my series.
Michal
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-10-19 12:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1444940195-28272-1-git-send-email-mmarek@suse.com>
2015-10-15 20:16 ` [PATCH 2/9] KVM: arm: Do not indent the arguments of DECLARE_BITMAP Michal Marek
2015-10-18 20:34 ` Christoffer Dall
2015-10-19 11:55 ` Michal Marek
2015-10-19 12:05 ` Christoffer Dall
2015-10-19 12:07 ` Michal Marek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox