All of lore.kernel.org
 help / color / mirror / Atom feed
* [sashal-linux-stable:tmp 12141/12184] include/asm-generic/memory_model.h:33:37: warning: passing argument 1 of 'soft_offline_page' makes integer from pointer without a cast
@ 2021-03-24  5:01 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-24  5:01 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git tmp
head:   13665f1f8b5d501b40b1bc8448b0a032c7f04cc2
commit: d5033521c40505c528bdd5a49d862aceb178967f [12141/12184] mm, soft-offline: convert parameter to pfn
config: parisc-randconfig-r034-20210323 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.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/sashal/linux-stable.git/commit/?id=d5033521c40505c528bdd5a49d862aceb178967f
        git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
        git fetch --no-tags sashal-linux-stable tmp
        git checkout d5033521c40505c528bdd5a49d862aceb178967f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc 

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

All warnings (new ones prefixed by >>):

   In file included from include/linux/mm.h:99,
                    from include/linux/memblock.h:13,
                    from arch/parisc/kernel/pdt.c:16:
   include/asm-generic/pgtable.h: In function 'pte_clear_not_present_full':
   arch/parisc/include/asm/pgtable.h:91:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
      91 |   pte_t old_pte;     \
         |         ^~~~~~~
   arch/parisc/include/asm/pgtable.h:316:34: note: in expansion of macro 'set_pte_at'
     316 | #define pte_clear(mm, addr, xp)  set_pte_at(mm, addr, xp, __pte(0))
         |                                  ^~~~~~~~~~
   include/asm-generic/pgtable.h:201:2: note: in expansion of macro 'pte_clear'
     201 |  pte_clear(mm, address, ptep);
         |  ^~~~~~~~~
   include/asm-generic/pgtable.h: In function '__ptep_modify_prot_commit':
   arch/parisc/include/asm/pgtable.h:91:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
      91 |   pte_t old_pte;     \
         |         ^~~~~~~
   include/asm-generic/pgtable.h:629:2: note: in expansion of macro 'set_pte_at'
     629 |  set_pte_at(vma->vm_mm, addr, ptep, pte);
         |  ^~~~~~~~~~
   In file included from arch/parisc/include/asm/page.h:180,
                    from include/linux/mm_types_task.h:16,
                    from include/linux/mm_types.h:5,
                    from include/linux/mmzone.h:21,
                    from include/linux/gfp.h:6,
                    from include/linux/mm.h:10,
                    from include/linux/memblock.h:13,
                    from arch/parisc/kernel/pdt.c:16:
   arch/parisc/kernel/pdt.c: In function 'pdt_mainloop':
>> include/asm-generic/memory_model.h:33:37: warning: passing argument 1 of 'soft_offline_page' makes integer from pointer without a cast [-Wint-conversion]
      33 | #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET))
         |                            ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                     |
         |                                     struct page *
   include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
      82 | #define pfn_to_page __pfn_to_page
         |                     ^~~~~~~~~~~~~
   arch/parisc/kernel/pdt.c:331:6: note: in expansion of macro 'pfn_to_page'
     331 |      pfn_to_page(pde >> PAGE_SHIFT), 0);
         |      ^~~~~~~~~~~
   In file included from include/linux/memblock.h:13,
                    from arch/parisc/kernel/pdt.c:16:
   include/linux/mm.h:2823:44: note: expected 'long unsigned int' but argument is of type 'struct page *'
    2823 | extern int soft_offline_page(unsigned long pfn, int flags);
         |                              ~~~~~~~~~~~~~~^~~


vim +/soft_offline_page +33 include/asm-generic/memory_model.h

a117e66ed45ac0 KAMEZAWA Hiroyuki 2006-03-27  32  
67de648211fa04 Andy Whitcroft    2006-06-23 @33  #define __pfn_to_page(pfn)	(mem_map + ((pfn) - ARCH_PFN_OFFSET))
67de648211fa04 Andy Whitcroft    2006-06-23  34  #define __page_to_pfn(page)	((unsigned long)((page) - mem_map) + \
a117e66ed45ac0 KAMEZAWA Hiroyuki 2006-03-27  35  				 ARCH_PFN_OFFSET)
a117e66ed45ac0 KAMEZAWA Hiroyuki 2006-03-27  36  #elif defined(CONFIG_DISCONTIGMEM)
a117e66ed45ac0 KAMEZAWA Hiroyuki 2006-03-27  37  

:::::: The code at line 33 was first introduced by commit
:::::: 67de648211fa041fe08a0c25241a4980bbb90698 [PATCH] squash duplicate page_to_pfn and pfn_to_page

:::::: TO: Andy Whitcroft <apw@shadowen.org>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>

---
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: 20084 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-24  5:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-24  5:01 [sashal-linux-stable:tmp 12141/12184] include/asm-generic/memory_model.h:33:37: warning: passing argument 1 of 'soft_offline_page' makes integer from pointer without a cast kernel test robot

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.