All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: Re: [PATCH v9 80/96] mm/filemap: Add filemap_get_folio and find_get_folio
Date: Thu, 06 May 2021 05:36:03 +0800	[thread overview]
Message-ID: <202105060553.fcjXp6e4-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2305 bytes --]

CC: kbuild-all(a)lists.01.org
In-Reply-To: <20210505150628.111735-81-willy@infradead.org>
References: <20210505150628.111735-81-willy@infradead.org>
TO: "Matthew Wilcox (Oracle)" <willy@infradead.org>
TO: linux-fsdevel(a)vger.kernel.org
TO: linux-mm(a)kvack.org
CC: "Matthew Wilcox (Oracle)" <willy@infradead.org>
CC: linux-kernel(a)vger.kernel.org

Hi "Matthew,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on next-20210505]
[cannot apply to hnaz-linux-mm/master xfs-linux/for-next tip/perf/core shaggy/jfs-next block/for-next linus/master asm-generic/master v5.12 v5.12-rc8 v5.12-rc7 v5.12]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Matthew-Wilcox-Oracle/Memory-folios/20210506-014108
base:    29955e0289b3255c5f609a7564a0f0bb4ae35c7a
:::::: branch date: 4 hours ago
:::::: commit date: 4 hours ago
config: i386-randconfig-c001-20210505 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>


cocci warnings: (new ones prefixed by >>)
>> mm/folio-compat.c:95:17-21: ERROR: folio is NULL but dereferenced.

vim +95 mm/folio-compat.c

76f3e1399481a2 Matthew Wilcox (Oracle  2021-05-05  88) 
76f3e1399481a2 Matthew Wilcox (Oracle  2021-05-05  89) struct page *pagecache_get_page(struct address_space *mapping, pgoff_t index,
76f3e1399481a2 Matthew Wilcox (Oracle  2021-05-05  90) 		int fgp_flags, gfp_t gfp)
76f3e1399481a2 Matthew Wilcox (Oracle  2021-05-05  91) {
76f3e1399481a2 Matthew Wilcox (Oracle  2021-05-05  92) 	struct folio *folio = filemap_get_folio(mapping, index, fgp_flags, gfp);
76f3e1399481a2 Matthew Wilcox (Oracle  2021-05-05  93) 
76f3e1399481a2 Matthew Wilcox (Oracle  2021-05-05  94) 	if ((fgp_flags & FGP_HEAD) || !folio || xa_is_value(folio))
76f3e1399481a2 Matthew Wilcox (Oracle  2021-05-05 @95) 		return &folio->page;

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34511 bytes --]

             reply	other threads:[~2021-05-05 21:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-05 21:36 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-05-05 15:04 [PATCH v9 00/96] Memory folios Matthew Wilcox (Oracle)
2021-05-05 15:06 ` [PATCH v9 80/96] mm/filemap: Add filemap_get_folio and find_get_folio Matthew Wilcox (Oracle)

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=202105060553.fcjXp6e4-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild@lists.01.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.