From: Josh Triplett <josh@joshtriplett.org>
To: Peter Zijlstra <peterz@infradead.org>
Cc: kbuild test robot <fengguang.wu@intel.com>,
Ingo Molnar <mingo@kernel.org>,
kbuild-all@01.org, linux-sparse@vger.kernel.org,
sparse@chrisli.org
Subject: Re: [tip:sched/core 16/27] fs/jbd/commit.c:105:12: sparse: context imbalance in 'inverted_lock' - wrong count at exit
Date: Wed, 25 Sep 2013 14:58:05 -0700 [thread overview]
Message-ID: <20130925215805.GB7716@jtriplet-mobl1> (raw)
In-Reply-To: <20130925185925.GD3657@laptop.programming.kicks-ass.net>
On Wed, Sep 25, 2013 at 08:59:25PM +0200, Peter Zijlstra wrote:
> On Thu, Sep 26, 2013 at 02:31:09AM +0800, kbuild test robot wrote:
> > tree: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core
> > head: 1a338ac32ca630f67df25b4a16436cccc314e997
> > commit: 0c44c2d0f459cd7e275242b72f500137c4fa834d [16/27] x86: Use asm goto to implement better modify_and_test() functions
> > reproduce: make C=1 CF=-D__CHECK_ENDIAN__
> >
> >
> > sparse warnings: (new ones prefixed by >>)
> >
> > >> drivers/infiniband/hw/qib/qib_verbs.h:1061:36: sparse: crazy programmer
This one, by the way, seems like a sparse internal error, which ought to
have a better message. The patch below does that; Chris, does this
patch seem reasonable to you? (The message itself might need accuracy
improvements; it's still pretty vague about what went wrong.)
---8<---
From: Josh Triplett <josh@joshtriplett.org>
Date: Wed, 25 Sep 2013 14:55:44 -0700
Subject: [PATCH] Change "crazy programmer" into a proper internal error message
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
---
ident-list.h | 1 +
simplify.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/ident-list.h b/ident-list.h
index e93aae7..5f1da5e 100644
--- a/ident-list.h
+++ b/ident-list.h
@@ -91,6 +91,7 @@ IDENT(artificial); IDENT(__artificial__);
IDENT(leaf); IDENT(__leaf__);
IDENT(vector_size); IDENT(__vector_size__);
IDENT(error); IDENT(__error__);
+IDENT(cleanup); IDENT(__cleanup__);
/* Preprocessor idents. Direct use of __IDENT avoids mentioning the keyword
diff --git a/simplify.c b/simplify.c
index bda4a5b..2c266f9 100644
--- a/simplify.c
+++ b/simplify.c
@@ -619,7 +619,7 @@ offset:
if (new == VOID)
return 0;
new = VOID;
- warning(insn->pos, "crazy programmer");
+ sparse_error(insn->pos, "internal error: failed to simplify a memory operation");
}
insn->offset += off->value;
use_pseudo(insn, new, &insn->src);
--
1.8.4.rc3
prev parent reply other threads:[~2013-09-25 21:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <52432bed.WfPoNUw4qxmYeQy4%fengguang.wu@intel.com>
2013-09-25 18:59 ` [tip:sched/core 16/27] fs/jbd/commit.c:105:12: sparse: context imbalance in 'inverted_lock' - wrong count at exit Peter Zijlstra
2013-09-25 21:47 ` Josh Triplett
2013-09-30 13:44 ` Peter Zijlstra
2013-09-30 15:25 ` Josh Triplett
2013-09-30 15:35 ` Peter Zijlstra
2013-09-25 21:58 ` Josh Triplett [this message]
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=20130925215805.GB7716@jtriplet-mobl1 \
--to=josh@joshtriplett.org \
--cc=fengguang.wu@intel.com \
--cc=kbuild-all@01.org \
--cc=linux-sparse@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=peterz@infradead.org \
--cc=sparse@chrisli.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).