From: Andrew Morton <akpm@linux-foundation.org>
To: Philip Li <philip.li@intel.com>
Cc: kernel test robot <lkp@intel.com>,
Lorenzo Stoakes <lorenzo.stoakes@oracle.com>,
<oe-kbuild-all@lists.linux.dev>,
"David Hildenbrand" <david@kernel.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: Re: [akpm-mm:mm-new 420/429] fs/romfs/mmap-nommu.c:66:42: sparse: sparse: dereference of noderef expression
Date: Thu, 22 Jan 2026 21:48:30 -0800 [thread overview]
Message-ID: <20260122214830.50c0bfbf2142a61d370be2e1@linux-foundation.org> (raw)
In-Reply-To: <aXL27/BZ/xIwNfT3@rli9-mobl>
On Fri, 23 Jan 2026 12:19:59 +0800 Philip Li <philip.li@intel.com> wrote:
> On Thu, Jan 22, 2026 at 01:23:35PM -0800, Andrew Morton wrote:
> > On Thu, 22 Jan 2026 16:04:37 +0800 kernel test robot <lkp@intel.com> wrote:
> >
> > > Hi Lorenzo,
> > >
> > > FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
> > >
> > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
> > > head: dc4fe40a11269aead253fa0beb098b00417b8694
> > > commit: 57a654376d4bb67119d436edc8c3c4c0ecb3c369 [420/429] mm: update all remaining mmap_prepare users to use vma_flags_t
> > > config: sh-randconfig-r122-20260122 (https://download.01.org/0day-ci/archive/20260122/202601221505.RxftadLx-lkp@intel.com/config)
> >
> > Has CONFIG_NOMMU=y
> >
> > > compiler: sh4-linux-gcc (GCC) 13.4.0
> > > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260122/202601221505.RxftadLx-lkp@intel.com/reproduce)
> > >
> > > If you fix the issue in a separate patch/commit (i.e. not just a new version of
> > > the same patch/commit), kindly add following tags
> > > | Reported-by: kernel test robot <lkp@intel.com>
> > > | Closes: https://lore.kernel.org/oe-kbuild-all/202601221505.RxftadLx-lkp@intel.com/
> > >
> > > sparse warnings: (new ones prefixed by >>)
> > > >> fs/romfs/mmap-nommu.c:66:42: sparse: sparse: dereference of noderef expression
> >
> > fs/romfs/Makefile has
> >
> > ifneq ($(CONFIG_MMU),y)
> > romfs-$(CONFIG_ROMFS_ON_MTD) += mmap-nommu.o
> > endif
> >
> > so why is mmap-nommu.o being compiled in this testing??
>
> Hi Andrew, the related configs are set as below, and this is guarded
> with CONFIG_MMU, thus the build is triggered for mmap-nommu.o.
>
> # CONFIG_MMU is not set
> CONFIG_NOMMU=y
Oh, OK, thanks, sorry, my brain ran out of multiple negation capacity.
The code which this report quoted had
> 66 return is_nommu_shared_vma_flags(desc->vma_flags) ? 0 : -ENOSYS;
whereas Lorenzo's v2 patchset has
return is_nommu_shared_vma_flags(&desc->vma_flags) ? 0 : -ENOSYS;
so I expect that the new `&' fixed this issue.
next prev parent reply other threads:[~2026-01-23 5:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-22 8:04 kernel test robot
2026-01-22 21:23 ` Andrew Morton
2026-01-23 4:19 ` Philip Li
2026-01-23 5:48 ` Andrew Morton [this message]
2026-01-23 12:36 ` Lorenzo Stoakes
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=20260122214830.50c0bfbf2142a61d370be2e1@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=david@kernel.org \
--cc=linux-mm@kvack.org \
--cc=lkp@intel.com \
--cc=lorenzo.stoakes@oracle.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=philip.li@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