From: Audun Hoem <audun.hoem@gmail.com>
To: Andy Whitcroft <apw@canonical.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Bug in checkpatch.pl
Date: Tue, 2 Nov 2010 23:57:36 +0100 [thread overview]
Message-ID: <AANLkTimA1d88FwGGE-BW4WvyuaFB7xewN_ubko+kj2+X@mail.gmail.com> (raw)
I have stumbled about a bug in checkpatch.pl while working on some
code in drivers/staging. It seems to get confused when confronted with
asterisks. For example, this snippe:
kmalloc(sizeof(struct alphatrack_ocmd) * true_size, GFP_KERNEL);
Here the asterisk is in it's binary form, obviously, and performs a
multiplication, however checkpatch reports this:
drivers/staging/frontier/alphatrack.c:772: ERROR: space prohibited
after that '*' (ctx:WxW)
So it's obviously thinking it's the unary operator, which should only
be preceded by a variable name or another unary operator such as ++.
next reply other threads:[~2010-11-02 22:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-02 22:57 Audun Hoem [this message]
2010-11-03 12:04 ` [PATCH] checkpatch.pl: fix CAST detection to not screw with parens handling Florian Mickler
2010-11-03 15:20 ` Florian Mickler
2010-11-03 15:26 ` Audun Hoem
2010-11-03 16:07 ` Florian Mickler
2010-11-17 7:30 ` Florian Mickler
2010-11-23 14:15 ` Andy Whitcroft
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTimA1d88FwGGE-BW4WvyuaFB7xewN_ubko+kj2+X@mail.gmail.com \
--to=audun.hoem@gmail.com \
--cc=apw@canonical.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).