The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Andy Whitcroft <apw@canonical.com>
Cc: Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org
Subject: checkpatch regression: error on #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
Date: Wed, 11 Jan 2012 13:12:34 -0800	[thread overview]
Message-ID: <1326316354.6774.12.camel@joe2Laptop> (raw)

Current checkpatch gives:

ERROR: Macros with complex values should be enclosed in parenthesis
#18: FILE: net/ethernet/broadcom/bnx2x/bnx2x_cmn.c:18:
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

due to:

commit b3dfb9bc52e9a751e47bbc92d3a3f07e9a0029c5
Author: Andy Whitcroft <apw@canonical.com>
Date:   Thu Dec 22 16:04:25 2011 +1100

    checkpatch: correctly track the end of preprocessor commands in context
    
    When looking for a statement we currently run on through preprocessor
    commands.  This means that a header file with just definitions is parsed
    over and over again combining all of the lines from the current line to
    the end of file leading to severe performance issues.
    
    Fix up context accumulation to track preprocessor commands and stop when
    reaching the end of them.  At the same time vastly simplify the #define
    handling.
    



             reply	other threads:[~2012-01-11 21:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-11 21:12 Joe Perches [this message]
2012-01-20 11:53 ` checkpatch regression: error on #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt Andy Whitcroft
2012-01-20 13:00   ` Joe Perches

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=1326316354.6774.12.camel@joe2Laptop \
    --to=joe@perches.com \
    --cc=akpm@linux-foundation.org \
    --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