From: kernel test robot <lkp@intel.com>
To: Logan Gunthorpe <logang@deltatee.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [sbates130272-p2pmem:p2pdma_user_cmb_v5 21/23] drivers/pci/p2pdma.c:108:38: sparse: sparse: dereference of noderef expression
Date: Tue, 28 Dec 2021 15:53:22 +0800 [thread overview]
Message-ID: <202112281530.kK94gKnk-lkp@intel.com> (raw)
tree: https://github.com/sbates130272/linux-p2pmem.git p2pdma_user_cmb_v5
head: 407e0b007d670af84abbb624d9bbd4057b31a7d9
commit: 987aec4824931d2be618b29001359e633aa96988 [21/23] mm: use custom page_free for P2PDMA pages
config: x86_64-randconfig-s021-20211228 (https://download.01.org/0day-ci/archive/20211228/202112281530.kK94gKnk-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://github.com/sbates130272/linux-p2pmem/commit/987aec4824931d2be618b29001359e633aa96988
git remote add sbates130272-p2pmem https://github.com/sbates130272/linux-p2pmem.git
git fetch --no-tags sbates130272-p2pmem p2pdma_user_cmb_v5
git checkout 987aec4824931d2be618b29001359e633aa96988
# save the config file to linux build tree
mkdir build_dir
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/pci/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/pci/p2pdma.c:108:38: sparse: sparse: dereference of noderef expression
>> drivers/pci/p2pdma.c:108:38: sparse: sparse: dereference of noderef expression
vim +108 drivers/pci/p2pdma.c
103
104 static void p2pdma_page_free(struct page *page)
105 {
106 struct pci_p2pdma_pagemap *pgmap = to_p2p_pgmap(page->pgmap);
107
> 108 gen_pool_free(pgmap->provider->p2pdma->pool,
109 (uintptr_t)page_to_virt(page), PAGE_SIZE);
110 }
111
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2021-12-28 7:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202112281530.kK94gKnk-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=logang@deltatee.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
all inboxes | Powered by JetHome®