Re: [Qemu-devel] [PATCH 1.0] checkpatch.pl: fix CAST detection

2011-11-26 Thread Blue Swirl
Thanks, applied. On Fri, Nov 25, 2011 at 09:24, Paolo Bonzini wrote: > From: Florian Mickler > > We should only claim that something is a cast if we did not encouter a > token before, that did set av_pending. > > This fixes the operator * in the line below to be detected as binary (vs > unary).

[Qemu-devel] [PATCH 1.0] checkpatch.pl: fix CAST detection

2011-11-25 Thread Paolo Bonzini
From: Florian Mickler We should only claim that something is a cast if we did not encouter a token before, that did set av_pending. This fixes the operator * in the line below to be detected as binary (vs unary). kmalloc(sizeof(struct alphatrack_ocmd) * true_size, GFP_KERNEL); Reported-by: Pet