linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Heiko Carstens <hca@linux.ibm.com>
To: Nhat Pham <nphamcs@gmail.com>
Cc: kernel test robot <lkp@intel.com>,
	oe-kbuild-all@lists.linux.dev,
	Linux Memory Management List <linux-mm@kvack.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	gor@linux.ibm.com, agordeev@linux.ibm.com,
	borntraeger@linux.ibm.com, svens@linux.ibm.com,
	linux-s390@vger.kernel.org
Subject: Re: [linux-next:master 14680/14811] mm/filemap.c:4250:1: sparse: sparse: Using plain integer as NULL pointer
Date: Mon, 8 May 2023 18:57:42 +0200	[thread overview]
Message-ID: <ZFkqBteEnMxRjUfj@osiris> (raw)
In-Reply-To: <CAKEwX=MrPCPKF7Yxfjc-uOR2P-+Ee8+RV_B_u1f7iqC0L=_yew@mail.gmail.com>

On Mon, May 08, 2023 at 09:45:56AM -0700, Nhat Pham wrote:
> On Sat, May 6, 2023 at 5:28 PM kernel test robot <lkp@intel.com> wrote:
> > sparse warnings: (new ones prefixed by >>)
> >    mm/filemap.c:1416:17: sparse: sparse: context imbalance in 'migration_entry_wait_on_locked' - unexpected unlock
> > >> mm/filemap.c:4250:1: sparse: sparse: Using plain integer as NULL pointer
> > >> mm/filemap.c:4250:1: sparse: sparse: Using plain integer as NULL pointer
> > >> mm/filemap.c:4250:1: sparse: sparse: Using plain integer as NULL pointer
...
> > > 4250  SYSCALL_DEFINE4(cachestat, unsigned int, fd,
> 
> Hmm I couldn't see where I used 0 as the null pointer. Maybe
> this is a false positive or a result of not wiring up the syscall
> for s390? Especially since this is pointed toward the macro
> line (SYSCALL_DEFINE).
> 
> cc-ing this to s390 maintainers and the s390 mailing list...
> Could you help me debug this? Thanks!

Just ignore, this is a known false positive with s390's SYSCALL_DEFINE()
implementation vs sparse. I looked into it once, but couldn't figure out
how to silence sparse.
IIRC, the __TYPE_IS_PTR() macro causes this.


  reply	other threads:[~2023-05-08 16:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-07  0:28 kernel test robot
2023-05-08 16:45 ` Nhat Pham
2023-05-08 16:57   ` Heiko Carstens [this message]
2023-05-08 17:26     ` Nhat Pham

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=ZFkqBteEnMxRjUfj@osiris \
    --to=hca@linux.ibm.com \
    --cc=agordeev@linux.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=borntraeger@linux.ibm.com \
    --cc=gor@linux.ibm.com \
    --cc=linux-mm@kvack.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=nphamcs@gmail.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=svens@linux.ibm.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