All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Mike Rapoport (IBM)" <rppt@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, Mike Rapoport <rppt@kernel.org>
Subject: [rppt:misc/pfn_valid/v0 1/1] kernel/iomem.c:36:13: error: implicit declaration of function 'pfn_valid'; did you mean 'pfn_folio'?
Date: Tue, 24 Jan 2023 01:59:46 +0800	[thread overview]
Message-ID: <202301240130.eWbFucf0-lkp@intel.com> (raw)

Hi Mike,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git misc/pfn_valid/v0
head:   80b44d294c92a4d3645936e12178b4d2c475a641
commit: 80b44d294c92a4d3645936e12178b4d2c475a641 [1/1] mm, arch: add generic implementation of pfn_valid() for FLATMEM
config: m68k-randconfig-r031-20230123 (https://download.01.org/0day-ci/archive/20230124/202301240130.eWbFucf0-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git/commit/?id=80b44d294c92a4d3645936e12178b4d2c475a641
        git remote add rppt https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git
        git fetch --no-tags rppt misc/pfn_valid/v0
        git checkout 80b44d294c92a4d3645936e12178b4d2c475a641
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash drivers/dax/ drivers/media/common/videobuf2/ kernel/ mm/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   kernel/iomem.c:9:22: warning: no previous prototype for 'ioremap_cache' [-Wmissing-prototypes]
       9 | __weak void __iomem *ioremap_cache(resource_size_t offset, unsigned long size)
         |                      ^~~~~~~~~~~~~
   kernel/iomem.c: In function 'try_ram_remap':
>> kernel/iomem.c:36:13: error: implicit declaration of function 'pfn_valid'; did you mean 'pfn_folio'? [-Werror=implicit-function-declaration]
      36 |         if (pfn_valid(pfn) && !PageHighMem(pfn_to_page(pfn)) &&
         |             ^~~~~~~~~
         |             pfn_folio
   cc1: some warnings being treated as errors
--
   In file included from include/linux/mmzone.h:1269,
                    from include/linux/gfp.h:7,
                    from include/linux/xarray.h:15,
                    from include/linux/list_lru.h:14,
                    from include/linux/fs.h:13,
                    from mm/vmstat.c:13:
   mm/vmstat.c: In function 'pagetypeinfo_showblockcount_print':
>> include/linux/memory_hotplug.h:230:13: error: implicit declaration of function 'pfn_valid'; did you mean 'pfn_folio'? [-Werror=implicit-function-declaration]
     230 |         if (pfn_valid(pfn))                     \
         |             ^~~~~~~~~
   mm/vmstat.c:1553:24: note: in expansion of macro 'pfn_to_online_page'
    1553 |                 page = pfn_to_online_page(pfn);
         |                        ^~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   mm/page_alloc.c: In function 'reserve_bootmem_region':
>> mm/page_alloc.c:1676:21: error: implicit declaration of function 'pfn_valid'; did you mean 'pfn_folio'? [-Werror=implicit-function-declaration]
    1676 |                 if (pfn_valid(start_pfn)) {
         |                     ^~~~~~~~~
         |                     pfn_folio
   cc1: some warnings being treated as errors
--
   In file included from include/linux/mmzone.h:1269,
                    from include/linux/gfp.h:7,
                    from include/linux/mm.h:7,
                    from mm/shuffle.c:4:
   mm/shuffle.c: In function 'shuffle_valid_page':
>> include/linux/memory_hotplug.h:230:13: error: implicit declaration of function 'pfn_valid'; did you mean 'pfn_folio'? [-Werror=implicit-function-declaration]
     230 |         if (pfn_valid(pfn))                     \
         |             ^~~~~~~~~
   mm/shuffle.c:39:29: note: in expansion of macro 'pfn_to_online_page'
      39 |         struct page *page = pfn_to_online_page(pfn);
         |                             ^~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from drivers/dax/super.c:10:
   include/linux/pfn_t.h: In function 'pfn_t_valid':
>> include/linux/pfn_t.h:76:16: error: implicit declaration of function 'pfn_valid'; did you mean 'pfn_t_valid'? [-Werror=implicit-function-declaration]
      76 |         return pfn_valid(pfn_t_to_pfn(pfn));
         |                ^~~~~~~~~
         |                pfn_t_valid
   drivers/dax/super.c: At top level:
   drivers/dax/super.c:337:6: warning: no previous prototype for 'run_dax' [-Wmissing-prototypes]
     337 | void run_dax(struct dax_device *dax_dev)
         |      ^~~~~~~
   cc1: some warnings being treated as errors
--
   drivers/media/common/videobuf2/frame_vector.c: In function 'frame_vector_to_pages':
>> drivers/media/common/videobuf2/frame_vector.c:118:22: error: implicit declaration of function 'pfn_valid'; did you mean 'pfn_folio'? [-Werror=implicit-function-declaration]
     118 |                 if (!pfn_valid(nums[i]))
         |                      ^~~~~~~~~
         |                      pfn_folio
   cc1: some warnings being treated as errors


vim +36 kernel/iomem.c

5981690ddb8f72 Dan Williams 2018-03-29  29  
5981690ddb8f72 Dan Williams 2018-03-29  30  static void *try_ram_remap(resource_size_t offset, size_t size,
5981690ddb8f72 Dan Williams 2018-03-29  31  			   unsigned long flags)
5981690ddb8f72 Dan Williams 2018-03-29  32  {
5981690ddb8f72 Dan Williams 2018-03-29  33  	unsigned long pfn = PHYS_PFN(offset);
5981690ddb8f72 Dan Williams 2018-03-29  34  
5981690ddb8f72 Dan Williams 2018-03-29  35  	/* In the simple case just return the existing linear address */
5981690ddb8f72 Dan Williams 2018-03-29 @36  	if (pfn_valid(pfn) && !PageHighMem(pfn_to_page(pfn)) &&
5981690ddb8f72 Dan Williams 2018-03-29  37  	    arch_memremap_can_ram_remap(offset, size, flags))
5981690ddb8f72 Dan Williams 2018-03-29  38  		return __va(offset);
5981690ddb8f72 Dan Williams 2018-03-29  39  
5981690ddb8f72 Dan Williams 2018-03-29  40  	return NULL; /* fallback to arch_memremap_wb */
5981690ddb8f72 Dan Williams 2018-03-29  41  }
5981690ddb8f72 Dan Williams 2018-03-29  42  

:::::: The code at line 36 was first introduced by commit
:::::: 5981690ddb8f72f9546a2d017a914cf56095fc1f memremap: split devm_memremap_pages() and memremap() infrastructure

:::::: TO: Dan Williams <dan.j.williams@intel.com>
:::::: CC: Dan Williams <dan.j.williams@intel.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

                 reply	other threads:[~2023-01-23 18:00 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=202301240130.eWbFucf0-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=rppt@kernel.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.