Linux-Sparse Archive mirror
 help / color / mirror / Atom feed
From: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
To: Yafang Shao <laoar.shao@gmail.com>
Cc: kernel test robot <lkp@intel.com>,
	kbuild-all@lists.01.org, LKML <linux-kernel@vger.kernel.org>,
	yujie.liu@intel.com, linux-sparse@vger.kernel.org
Subject: Re: /bin/bash: line 1: 45878 Segmentation fault sparse -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise -Wno-return-void -Wno-unknown-attribute -fdiagnostic-prefix -D__CHECK_ENDIAN__ -D__NDS32_EL__ --arch=nds32 -mlittle-endian -m32 -Wp,-MMD,ker...
Date: Tue, 7 Jun 2022 14:42:09 +0200	[thread overview]
Message-ID: <20220607124209.ccibpwpjgh6kaqmj@mail> (raw)
In-Reply-To: <CALOAHbBQfK16aXUwT3znCwLBWcpLwgovS=kYBBR=eL4Eb62t3g@mail.gmail.com>

On Sat, Nov 13, 2021 at 10:46:04PM +0800, Yafang Shao wrote:
> On Sat, Nov 13, 2021 at 12:25 PM kernel test robot <lkp@intel.com> wrote:
> >
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > head:   66f4beaa6c1d28161f534471484b2daa2de1dce0
> > commit: 60f2415e19d3948641149ac6aca137a7be1d1952 sched: Make schedstats helpers independent of fair sched class
> > date:   6 weeks ago
> > config: nds32-randconfig-s031-20211015 (attached as .config)
> > compiler: nds32le-linux-gcc (GCC) 11.2.0

...

> > All errors (new ones prefixed by >>):
> >
> >    include/linux/rtmutex.h:68:58: sparse: sparse: got $

Hi,

Apologies for this late reply.

The error was caused by the line:
	#define tsk $r25
in arch/nds32/include/asm/current.h

I suppose it was only meant for assembly files but was also included in
(most) C files and the '$' character made sparse crash in some weird
circumstances. Patch is on the way.

-- Luc

      reply	other threads:[~2022-06-07 12:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <202111131205.eni58iWQ-lkp@intel.com>
2021-11-13 14:46 ` /bin/bash: line 1: 45878 Segmentation fault sparse -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise -Wno-return-void -Wno-unknown-attribute -fdiagnostic-prefix -D__CHECK_ENDIAN__ -D__NDS32_EL__ --arch=nds32 -mlittle-endian -m32 -Wp,-MMD,ker Yafang Shao
2022-06-07 12:42   ` Luc Van Oostenryck [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=20220607124209.ccibpwpjgh6kaqmj@mail \
    --to=luc.vanoostenryck@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=laoar.shao@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sparse@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=yujie.liu@intel.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).