linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [arm-integrator:kernel-in-vmalloc-v5.19-rc1 19/35] ./include/generated/autoconf.h:908:31: error: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast
@ 2022-07-20 17:27 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-07-20 17:27 UTC (permalink / raw)
  To: Linus Walleij; +Cc: kbuild-all, linux-kernel, linux-snps-arc

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v5.19-rc1
head:   144435741b0a6f31403d3084103678da3b4f9d11
commit: de1bb0b64eb108f2ec8ef6be0cfb632897de5321 [19/35] ARC: mm: Make virt_to_pfn() a static inline
config: arc-buildonly-randconfig-r005-20220719 (https://download.01.org/0day-ci/archive/20220721/202207210127.6KFeFDsE-lkp@intel.com/config)
compiler: arceb-elf-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/linusw/linux-integrator.git/commit/?id=de1bb0b64eb108f2ec8ef6be0cfb632897de5321
        git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
        git fetch --no-tags arm-integrator kernel-in-vmalloc-v5.19-rc1
        git checkout de1bb0b64eb108f2ec8ef6be0cfb632897de5321
        # 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=arc SHELL=/bin/bash drivers/net/wireless/broadcom/brcm80211/brcmfmac/ drivers/net/wwan/t7xx/ fs/proc/ lib/

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

All error/warnings (new ones prefixed by >>):

   include/asm-generic/memory_model.h:18:53: note: in expansion of macro 'ARCH_PFN_OFFSET'
      18 | #define __pfn_to_page(pfn)      (mem_map + ((pfn) - ARCH_PFN_OFFSET))
         |                                                     ^~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:53:21: note: in expansion of macro '__pfn_to_page'
      53 | #define pfn_to_page __pfn_to_page
         |                     ^~~~~~~~~~~~~
   include/linux/highmem-internal.h:197:32: note: in expansion of macro 'pfn_to_page'
     197 |         return kmap_local_page(pfn_to_page(pfn));
         |                                ^~~~~~~~~~~
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
   include/linux/highmem-internal.h: In function 'kmap_atomic_pfn':
   ./include/generated/autoconf.h:908:31: warning: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Wint-conversion]
     908 | #define CONFIG_LINUX_RAM_BASE 0x80000000
         |                               ^~~~~~~~~~
         |                               |
         |                               unsigned int
   arch/arc/include/asm/page.h:102:45: note: in expansion of macro 'CONFIG_LINUX_RAM_BASE'
     102 | #define ARCH_PFN_OFFSET         virt_to_pfn(CONFIG_LINUX_RAM_BASE)
         |                                             ^~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:18:53: note: in expansion of macro 'ARCH_PFN_OFFSET'
      18 | #define __pfn_to_page(pfn)      (mem_map + ((pfn) - ARCH_PFN_OFFSET))
         |                                                     ^~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:53:21: note: in expansion of macro '__pfn_to_page'
      53 | #define pfn_to_page __pfn_to_page
         |                     ^~~~~~~~~~~~~
   include/linux/highmem-internal.h:224:28: note: in expansion of macro 'pfn_to_page'
     224 |         return kmap_atomic(pfn_to_page(pfn));
         |                            ^~~~~~~~~~~
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
   fs/proc/kcore.c: In function 'kclist_add_private':
   ./include/generated/autoconf.h:908:31: warning: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Wint-conversion]
     908 | #define CONFIG_LINUX_RAM_BASE 0x80000000
         |                               ^~~~~~~~~~
         |                               |
         |                               unsigned int
   arch/arc/include/asm/page.h:102:45: note: in expansion of macro 'CONFIG_LINUX_RAM_BASE'
     102 | #define ARCH_PFN_OFFSET         virt_to_pfn(CONFIG_LINUX_RAM_BASE)
         |                                             ^~~~~~~~~~~~~~~~~~~~~
   arch/arc/include/asm/page.h:103:43: note: in expansion of macro 'ARCH_PFN_OFFSET'
     103 | #define pfn_valid(pfn)          (((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
         |                                           ^~~~~~~~~~~~~~~
   fs/proc/kcore.c:192:14: note: in expansion of macro 'pfn_valid'
     192 |         if (!pfn_valid(pfn))
         |              ^~~~~~~~~
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
   ./include/generated/autoconf.h:908:31: warning: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Wint-conversion]
     908 | #define CONFIG_LINUX_RAM_BASE 0x80000000
         |                               ^~~~~~~~~~
         |                               |
         |                               unsigned int
   arch/arc/include/asm/page.h:102:45: note: in expansion of macro 'CONFIG_LINUX_RAM_BASE'
     102 | #define ARCH_PFN_OFFSET         virt_to_pfn(CONFIG_LINUX_RAM_BASE)
         |                                             ^~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:18:53: note: in expansion of macro 'ARCH_PFN_OFFSET'
      18 | #define __pfn_to_page(pfn)      (mem_map + ((pfn) - ARCH_PFN_OFFSET))
         |                                                     ^~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:53:21: note: in expansion of macro '__pfn_to_page'
      53 | #define pfn_to_page __pfn_to_page
         |                     ^~~~~~~~~~~~~
   fs/proc/kcore.c:195:13: note: in expansion of macro 'pfn_to_page'
     195 |         p = pfn_to_page(pfn);
         |             ^~~~~~~~~~~
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
   ./include/generated/autoconf.h:908:31: warning: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Wint-conversion]
     908 | #define CONFIG_LINUX_RAM_BASE 0x80000000
         |                               ^~~~~~~~~~
         |                               |
         |                               unsigned int
   arch/arc/include/asm/page.h:115:59: note: in definition of macro '__va'
     115 | #define __va(paddr)             ((void *)((unsigned long)(paddr)))
         |                                                           ^~~~~
   include/linux/mm.h:113:30: note: in expansion of macro 'PFN_PHYS'
     113 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
         |                              ^~~~~~~~
   arch/arc/include/asm/page.h:102:45: note: in expansion of macro 'CONFIG_LINUX_RAM_BASE'
     102 | #define ARCH_PFN_OFFSET         virt_to_pfn(CONFIG_LINUX_RAM_BASE)
         |                                             ^~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:20:34: note: in expansion of macro 'ARCH_PFN_OFFSET'
      20 |                                  ARCH_PFN_OFFSET)
         |                                  ^~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:52:21: note: in expansion of macro '__page_to_pfn'
      52 | #define page_to_pfn __page_to_pfn
         |                     ^~~~~~~~~~~~~
   include/linux/mm.h:113:39: note: in expansion of macro 'page_to_pfn'
     113 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
         |                                       ^~~~~~~~~~~
   fs/proc/kcore.c:200:36: note: in expansion of macro 'page_to_virt'
     200 |         ent->addr = (unsigned long)page_to_virt(p);
         |                                    ^~~~~~~~~~~~
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
>> fs/proc/kcore.c:203:33: warning: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Wint-conversion]
     203 |         if (!virt_addr_valid(ent->addr))
         |                              ~~~^~~~~~
         |                                 |
         |                                 long unsigned int
   arch/arc/include/asm/page.h:103:36: note: in definition of macro 'pfn_valid'
     103 | #define pfn_valid(pfn)          (((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
         |                                    ^~~
   fs/proc/kcore.c:203:14: note: in expansion of macro 'virt_addr_valid'
     203 |         if (!virt_addr_valid(ent->addr))
         |              ^~~~~~~~~~~~~~~
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'long unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
   ./include/generated/autoconf.h:908:31: warning: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Wint-conversion]
     908 | #define CONFIG_LINUX_RAM_BASE 0x80000000
         |                               ^~~~~~~~~~
         |                               |
         |                               unsigned int
   arch/arc/include/asm/page.h:102:45: note: in expansion of macro 'CONFIG_LINUX_RAM_BASE'
     102 | #define ARCH_PFN_OFFSET         virt_to_pfn(CONFIG_LINUX_RAM_BASE)
         |                                             ^~~~~~~~~~~~~~~~~~~~~
   arch/arc/include/asm/page.h:103:43: note: in expansion of macro 'ARCH_PFN_OFFSET'
     103 | #define pfn_valid(pfn)          (((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
         |                                           ^~~~~~~~~~~~~~~
   arch/arc/include/asm/page.h:130:33: note: in expansion of macro 'pfn_valid'
     130 | #define virt_addr_valid(kaddr)  pfn_valid(virt_to_pfn(kaddr))
         |                                 ^~~~~~~~~
   fs/proc/kcore.c:203:14: note: in expansion of macro 'virt_addr_valid'
     203 |         if (!virt_addr_valid(ent->addr))
         |              ^~~~~~~~~~~~~~~
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
   fs/proc/kcore.c: In function 'read_kcore':
   ./include/generated/autoconf.h:908:31: warning: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Wint-conversion]
     908 | #define CONFIG_LINUX_RAM_BASE 0x80000000
         |                               ^~~~~~~~~~
         |                               |
         |                               unsigned int
   arch/arc/include/asm/page.h:102:45: note: in expansion of macro 'CONFIG_LINUX_RAM_BASE'
     102 | #define ARCH_PFN_OFFSET         virt_to_pfn(CONFIG_LINUX_RAM_BASE)
         |                                             ^~~~~~~~~~~~~~~~~~~~~
   arch/arc/include/asm/page.h:103:43: note: in expansion of macro 'ARCH_PFN_OFFSET'
     103 | #define pfn_valid(pfn)          (((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
         |                                           ^~~~~~~~~~~~~~~
   include/linux/memory_hotplug.h:223:13: note: in expansion of macro 'pfn_valid'
     223 |         if (pfn_valid(pfn))                     \
         |             ^~~~~~~~~
   fs/proc/kcore.c:526:32: note: in expansion of macro 'pfn_to_online_page'
     526 |                         page = pfn_to_online_page(pfn);
         |                                ^~~~~~~~~~~~~~~~~~
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
   ./include/generated/autoconf.h:908:31: warning: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Wint-conversion]
     908 | #define CONFIG_LINUX_RAM_BASE 0x80000000
         |                               ^~~~~~~~~~
         |                               |
         |                               unsigned int
   arch/arc/include/asm/page.h:102:45: note: in expansion of macro 'CONFIG_LINUX_RAM_BASE'
     102 | #define ARCH_PFN_OFFSET         virt_to_pfn(CONFIG_LINUX_RAM_BASE)
         |                                             ^~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:18:53: note: in expansion of macro 'ARCH_PFN_OFFSET'
      18 | #define __pfn_to_page(pfn)      (mem_map + ((pfn) - ARCH_PFN_OFFSET))
         |                                                     ^~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:53:21: note: in expansion of macro '__pfn_to_page'
      53 | #define pfn_to_page __pfn_to_page
         |                     ^~~~~~~~~~~~~
   include/linux/memory_hotplug.h:224:27: note: in expansion of macro 'pfn_to_page'
     224 |                 ___page = pfn_to_page(pfn);     \
         |                           ^~~~~~~~~~~
   fs/proc/kcore.c:526:32: note: in expansion of macro 'pfn_to_online_page'
     526 |                         page = pfn_to_online_page(pfn);
         |                                ^~~~~~~~~~~~~~~~~~
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
--
   In file included from include/linux/kconfig.h:5,
                    from <command-line>:
   include/linux/mm.h: In function 'virt_to_head_page':
>> ./include/generated/autoconf.h:908:31: error: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Werror=int-conversion]
     908 | #define CONFIG_LINUX_RAM_BASE 0x80000000
         |                               ^~~~~~~~~~
         |                               |
         |                               unsigned int
   arch/arc/include/asm/page.h:102:45: note: in expansion of macro 'CONFIG_LINUX_RAM_BASE'
     102 | #define ARCH_PFN_OFFSET         virt_to_pfn(CONFIG_LINUX_RAM_BASE)
         |                                             ^~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:18:53: note: in expansion of macro 'ARCH_PFN_OFFSET'
      18 | #define __pfn_to_page(pfn)      (mem_map + ((pfn) - ARCH_PFN_OFFSET))
         |                                                     ^~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:53:21: note: in expansion of macro '__pfn_to_page'
      53 | #define pfn_to_page __pfn_to_page
         |                     ^~~~~~~~~~~~~
   arch/arc/include/asm/page.h:129:33: note: in expansion of macro 'pfn_to_page'
     129 | #define virt_to_page(kaddr)     pfn_to_page(virt_to_pfn(kaddr))
         |                                 ^~~~~~~~~~~
   include/linux/mm.h:846:29: note: in expansion of macro 'virt_to_page'
     846 |         struct page *page = virt_to_page(x);
         |                             ^~~~~~~~~~~~
   In file included from arch/arc/include/asm/thread_info.h:16,
                    from include/linux/thread_info.h:60,
                    from include/asm-generic/preempt.h:5,
                    from ./arch/arc/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:78,
                    from include/linux/spinlock.h:55,
                    from include/linux/swait.h:7,
                    from include/linux/completion.h:12,
                    from drivers/net/wwan/t7xx/t7xx_pci.c:21:
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
   include/linux/mm.h: In function 'virt_to_folio':
>> ./include/generated/autoconf.h:908:31: error: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Werror=int-conversion]
     908 | #define CONFIG_LINUX_RAM_BASE 0x80000000
         |                               ^~~~~~~~~~
         |                               |
         |                               unsigned int
   arch/arc/include/asm/page.h:102:45: note: in expansion of macro 'CONFIG_LINUX_RAM_BASE'
     102 | #define ARCH_PFN_OFFSET         virt_to_pfn(CONFIG_LINUX_RAM_BASE)
         |                                             ^~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:18:53: note: in expansion of macro 'ARCH_PFN_OFFSET'
      18 | #define __pfn_to_page(pfn)      (mem_map + ((pfn) - ARCH_PFN_OFFSET))
         |                                                     ^~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:53:21: note: in expansion of macro '__pfn_to_page'
      53 | #define pfn_to_page __pfn_to_page
         |                     ^~~~~~~~~~~~~
   arch/arc/include/asm/page.h:129:33: note: in expansion of macro 'pfn_to_page'
     129 | #define virt_to_page(kaddr)     pfn_to_page(virt_to_pfn(kaddr))
         |                                 ^~~~~~~~~~~
   include/linux/mm.h:853:29: note: in expansion of macro 'virt_to_page'
     853 |         struct page *page = virt_to_page(x);
         |                             ^~~~~~~~~~~~
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
   include/linux/mm.h: In function 'folio_pfn':
>> ./include/generated/autoconf.h:908:31: error: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Werror=int-conversion]
     908 | #define CONFIG_LINUX_RAM_BASE 0x80000000
         |                               ^~~~~~~~~~
         |                               |
         |                               unsigned int
   arch/arc/include/asm/page.h:102:45: note: in expansion of macro 'CONFIG_LINUX_RAM_BASE'
     102 | #define ARCH_PFN_OFFSET         virt_to_pfn(CONFIG_LINUX_RAM_BASE)
         |                                             ^~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:20:34: note: in expansion of macro 'ARCH_PFN_OFFSET'
      20 |                                  ARCH_PFN_OFFSET)
         |                                  ^~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:52:21: note: in expansion of macro '__page_to_pfn'
      52 | #define page_to_pfn __page_to_pfn
         |                     ^~~~~~~~~~~~~
   include/linux/mm.h:1521:16: note: in expansion of macro 'page_to_pfn'
    1521 |         return page_to_pfn(&folio->page);
         |                ^~~~~~~~~~~
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
   include/linux/mm.h: In function 'is_pinnable_page':
>> ./include/generated/autoconf.h:908:31: error: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Werror=int-conversion]
     908 | #define CONFIG_LINUX_RAM_BASE 0x80000000
         |                               ^~~~~~~~~~
         |                               |
         |                               unsigned int
   arch/arc/include/asm/page.h:102:45: note: in expansion of macro 'CONFIG_LINUX_RAM_BASE'
     102 | #define ARCH_PFN_OFFSET         virt_to_pfn(CONFIG_LINUX_RAM_BASE)
         |                                             ^~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:20:34: note: in expansion of macro 'ARCH_PFN_OFFSET'
      20 |                                  ARCH_PFN_OFFSET)
         |                                  ^~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:52:21: note: in expansion of macro '__page_to_pfn'
      52 | #define page_to_pfn __page_to_pfn
         |                     ^~~~~~~~~~~~~
   include/linux/mmzone.h:103:39: note: in expansion of macro 'page_to_pfn'
     103 |         get_pfnblock_flags_mask(page, page_to_pfn(page), MIGRATETYPE_MASK)
         |                                       ^~~~~~~~~~~
   include/linux/mm.h:1598:18: note: in expansion of macro 'get_pageblock_migratetype'
    1598 |         int mt = get_pageblock_migratetype(page);
         |                  ^~~~~~~~~~~~~~~~~~~~~~~~~
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
>> ./include/generated/autoconf.h:908:31: error: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Werror=int-conversion]
     908 | #define CONFIG_LINUX_RAM_BASE 0x80000000
         |                               ^~~~~~~~~~
         |                               |
         |                               unsigned int
   arch/arc/include/asm/page.h:102:45: note: in expansion of macro 'CONFIG_LINUX_RAM_BASE'
     102 | #define ARCH_PFN_OFFSET         virt_to_pfn(CONFIG_LINUX_RAM_BASE)
         |                                             ^~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:20:34: note: in expansion of macro 'ARCH_PFN_OFFSET'
      20 |                                  ARCH_PFN_OFFSET)
         |                                  ^~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:52:21: note: in expansion of macro '__page_to_pfn'
      52 | #define page_to_pfn __page_to_pfn
         |                     ^~~~~~~~~~~~~
   include/linux/mm.h:1603:60: note: in expansion of macro 'page_to_pfn'
    1603 |         return !(is_zone_movable_page(page) || is_zero_pfn(page_to_pfn(page)));
         |                                                            ^~~~~~~~~~~
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
   include/linux/mm.h: In function 'lowmem_page_address':
>> ./include/generated/autoconf.h:908:31: error: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Werror=int-conversion]
     908 | #define CONFIG_LINUX_RAM_BASE 0x80000000
         |                               ^~~~~~~~~~
         |                               |
         |                               unsigned int
   arch/arc/include/asm/page.h:115:59: note: in definition of macro '__va'
     115 | #define __va(paddr)             ((void *)((unsigned long)(paddr)))
         |                                                           ^~~~~
   include/linux/mm.h:113:30: note: in expansion of macro 'PFN_PHYS'
     113 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
         |                              ^~~~~~~~
   arch/arc/include/asm/page.h:102:45: note: in expansion of macro 'CONFIG_LINUX_RAM_BASE'
     102 | #define ARCH_PFN_OFFSET         virt_to_pfn(CONFIG_LINUX_RAM_BASE)
         |                                             ^~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:20:34: note: in expansion of macro 'ARCH_PFN_OFFSET'
      20 |                                  ARCH_PFN_OFFSET)
         |                                  ^~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:52:21: note: in expansion of macro '__page_to_pfn'
      52 | #define page_to_pfn __page_to_pfn
         |                     ^~~~~~~~~~~~~
   include/linux/mm.h:113:39: note: in expansion of macro 'page_to_pfn'
     113 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
         |                                       ^~~~~~~~~~~
   include/linux/mm.h:1729:16: note: in expansion of macro 'page_to_virt'
    1729 |         return page_to_virt(page);
         |                ^~~~~~~~~~~~
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
   include/linux/mm.h: In function 'pte_lockptr':
>> ./include/generated/autoconf.h:908:31: error: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Werror=int-conversion]
     908 | #define CONFIG_LINUX_RAM_BASE 0x80000000
         |                               ^~~~~~~~~~
         |                               |
         |                               unsigned int
   arch/arc/include/asm/page.h:102:45: note: in expansion of macro 'CONFIG_LINUX_RAM_BASE'
     102 | #define ARCH_PFN_OFFSET         virt_to_pfn(CONFIG_LINUX_RAM_BASE)
         |                                             ^~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:18:53: note: in expansion of macro 'ARCH_PFN_OFFSET'
      18 | #define __pfn_to_page(pfn)      (mem_map + ((pfn) - ARCH_PFN_OFFSET))
         |                                                     ^~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:53:21: note: in expansion of macro '__pfn_to_page'
      53 | #define pfn_to_page __pfn_to_page
         |                     ^~~~~~~~~~~~~
   arch/arc/include/asm/page.h:129:33: note: in expansion of macro 'pfn_to_page'
     129 | #define virt_to_page(kaddr)     pfn_to_page(virt_to_pfn(kaddr))
         |                                 ^~~~~~~~~~~
   arch/arc/include/asm/pgtable-levels.h:162:33: note: in expansion of macro 'virt_to_page'
     162 | #define pmd_page(pmd)           virt_to_page((void *)pmd_page_vaddr(pmd))
         |                                 ^~~~~~~~~~~~
   include/linux/mm.h:2291:27: note: in expansion of macro 'pmd_page'
    2291 |         return ptlock_ptr(pmd_page(*pmd));
         |                           ^~~~~~~~
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
   In file included from arch/arc/include/asm/atomic.h:12,
                    from include/linux/atomic.h:7,
                    from drivers/net/wwan/t7xx/t7xx_pci.c:19:
   include/linux/scatterlist.h: In function 'sg_set_buf':
>> ./include/generated/autoconf.h:908:31: error: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Werror=int-conversion]
     908 | #define CONFIG_LINUX_RAM_BASE 0x80000000
         |                               ^~~~~~~~~~
         |                               |
         |                               unsigned int
   include/linux/compiler.h:78:45: note: in definition of macro 'unlikely'
      78 | # define unlikely(x)    __builtin_expect(!!(x), 0)
         |                                             ^
   include/linux/scatterlist.h:160:9: note: in expansion of macro 'BUG_ON'
     160 |         BUG_ON(!virt_addr_valid(buf));
         |         ^~~~~~
   arch/arc/include/asm/page.h:102:45: note: in expansion of macro 'CONFIG_LINUX_RAM_BASE'
     102 | #define ARCH_PFN_OFFSET         virt_to_pfn(CONFIG_LINUX_RAM_BASE)
         |                                             ^~~~~~~~~~~~~~~~~~~~~
   arch/arc/include/asm/page.h:103:43: note: in expansion of macro 'ARCH_PFN_OFFSET'
     103 | #define pfn_valid(pfn)          (((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
         |                                           ^~~~~~~~~~~~~~~
   arch/arc/include/asm/page.h:130:33: note: in expansion of macro 'pfn_valid'
     130 | #define virt_addr_valid(kaddr)  pfn_valid(virt_to_pfn(kaddr))
         |                                 ^~~~~~~~~
   include/linux/scatterlist.h:160:17: note: in expansion of macro 'virt_addr_valid'
     160 |         BUG_ON(!virt_addr_valid(buf));
         |                 ^~~~~~~~~~~~~~~
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
>> ./include/generated/autoconf.h:908:31: error: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Werror=int-conversion]
     908 | #define CONFIG_LINUX_RAM_BASE 0x80000000
         |                               ^~~~~~~~~~
         |                               |
         |                               unsigned int
   arch/arc/include/asm/page.h:102:45: note: in expansion of macro 'CONFIG_LINUX_RAM_BASE'
     102 | #define ARCH_PFN_OFFSET         virt_to_pfn(CONFIG_LINUX_RAM_BASE)
         |                                             ^~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:18:53: note: in expansion of macro 'ARCH_PFN_OFFSET'
      18 | #define __pfn_to_page(pfn)      (mem_map + ((pfn) - ARCH_PFN_OFFSET))
         |                                                     ^~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:53:21: note: in expansion of macro '__pfn_to_page'
      53 | #define pfn_to_page __pfn_to_page
         |                     ^~~~~~~~~~~~~
   arch/arc/include/asm/page.h:129:33: note: in expansion of macro 'pfn_to_page'
     129 | #define virt_to_page(kaddr)     pfn_to_page(virt_to_pfn(kaddr))
         |                                 ^~~~~~~~~~~
   include/linux/scatterlist.h:162:25: note: in expansion of macro 'virt_to_page'
     162 |         sg_set_page(sg, virt_to_page(buf), buflen, offset_in_page(buf));
         |                         ^~~~~~~~~~~~
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
   include/linux/scatterlist.h: In function 'sg_phys':
>> ./include/generated/autoconf.h:908:31: error: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Werror=int-conversion]
     908 | #define CONFIG_LINUX_RAM_BASE 0x80000000
         |                               ^~~~~~~~~~
         |                               |
         |                               unsigned int
   arch/arc/include/asm/page.h:102:45: note: in expansion of macro 'CONFIG_LINUX_RAM_BASE'
     102 | #define ARCH_PFN_OFFSET         virt_to_pfn(CONFIG_LINUX_RAM_BASE)
         |                                             ^~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:20:34: note: in expansion of macro 'ARCH_PFN_OFFSET'
      20 |                                  ARCH_PFN_OFFSET)
         |                                  ^~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:52:21: note: in expansion of macro '__page_to_pfn'
      52 | #define page_to_pfn __page_to_pfn
         |                     ^~~~~~~~~~~~~
   arch/arc/include/asm/io.h:47:42: note: in expansion of macro 'page_to_pfn'
      47 | #define page_to_phys(page)              (page_to_pfn(page) << PAGE_SHIFT)
         |                                          ^~~~~~~~~~~
   include/linux/scatterlist.h:260:16: note: in expansion of macro 'page_to_phys'
     260 |         return page_to_phys(sg_page(sg)) + sg->offset;
         |                ^~~~~~~~~~~~
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
   include/linux/dma-mapping.h: In function 'dma_free_noncoherent':
>> ./include/generated/autoconf.h:908:31: error: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Werror=int-conversion]
     908 | #define CONFIG_LINUX_RAM_BASE 0x80000000
         |                               ^~~~~~~~~~
         |                               |
         |                               unsigned int
   arch/arc/include/asm/page.h:102:45: note: in expansion of macro 'CONFIG_LINUX_RAM_BASE'
     102 | #define ARCH_PFN_OFFSET         virt_to_pfn(CONFIG_LINUX_RAM_BASE)
         |                                             ^~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:18:53: note: in expansion of macro 'ARCH_PFN_OFFSET'
      18 | #define __pfn_to_page(pfn)      (mem_map + ((pfn) - ARCH_PFN_OFFSET))
         |                                                     ^~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:53:21: note: in expansion of macro '__pfn_to_page'
      53 | #define pfn_to_page __pfn_to_page
         |                     ^~~~~~~~~~~~~
   arch/arc/include/asm/page.h:129:33: note: in expansion of macro 'pfn_to_page'
     129 | #define virt_to_page(kaddr)     pfn_to_page(virt_to_pfn(kaddr))
         |                                 ^~~~~~~~~~~
   include/linux/dma-mapping.h:319:35: note: in expansion of macro 'virt_to_page'
     319 |         dma_free_pages(dev, size, virt_to_page(vaddr), dma_handle, dir);
         |                                   ^~~~~~~~~~~~
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
   include/linux/dma-mapping.h: In function 'dma_map_single_attrs':
>> ./include/generated/autoconf.h:908:31: error: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Werror=int-conversion]
     908 | #define CONFIG_LINUX_RAM_BASE 0x80000000
         |                               ^~~~~~~~~~
         |                               |
         |                               unsigned int
   arch/arc/include/asm/page.h:102:45: note: in expansion of macro 'CONFIG_LINUX_RAM_BASE'
     102 | #define ARCH_PFN_OFFSET         virt_to_pfn(CONFIG_LINUX_RAM_BASE)
         |                                             ^~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:18:53: note: in expansion of macro 'ARCH_PFN_OFFSET'
      18 | #define __pfn_to_page(pfn)      (mem_map + ((pfn) - ARCH_PFN_OFFSET))
         |                                                     ^~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:53:21: note: in expansion of macro '__pfn_to_page'
      53 | #define pfn_to_page __pfn_to_page
         |                     ^~~~~~~~~~~~~
   arch/arc/include/asm/page.h:129:33: note: in expansion of macro 'pfn_to_page'
     129 | #define virt_to_page(kaddr)     pfn_to_page(virt_to_pfn(kaddr))
         |                                 ^~~~~~~~~~~
   include/linux/dma-mapping.h:330:40: note: in expansion of macro 'virt_to_page'
     330 |         return dma_map_page_attrs(dev, virt_to_page(ptr), offset_in_page(ptr),
         |                                        ^~~~~~~~~~~~
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
   include/linux/highmem-internal.h: In function 'kmap_to_page':
>> ./include/generated/autoconf.h:908:31: error: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Werror=int-conversion]
     908 | #define CONFIG_LINUX_RAM_BASE 0x80000000
         |                               ^~~~~~~~~~
         |                               |
         |                               unsigned int
   arch/arc/include/asm/page.h:102:45: note: in expansion of macro 'CONFIG_LINUX_RAM_BASE'
     102 | #define ARCH_PFN_OFFSET         virt_to_pfn(CONFIG_LINUX_RAM_BASE)
         |                                             ^~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:18:53: note: in expansion of macro 'ARCH_PFN_OFFSET'
      18 | #define __pfn_to_page(pfn)      (mem_map + ((pfn) - ARCH_PFN_OFFSET))
         |                                                     ^~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:53:21: note: in expansion of macro '__pfn_to_page'
      53 | #define pfn_to_page __pfn_to_page
         |                     ^~~~~~~~~~~~~
   arch/arc/include/asm/page.h:129:33: note: in expansion of macro 'pfn_to_page'
     129 | #define virt_to_page(kaddr)     pfn_to_page(virt_to_pfn(kaddr))
         |                                 ^~~~~~~~~~~
   include/linux/highmem-internal.h:161:16: note: in expansion of macro 'virt_to_page'
     161 |         return virt_to_page(addr);
         |                ^~~~~~~~~~~~
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
   include/linux/highmem-internal.h: In function 'kmap_local_pfn':
>> ./include/generated/autoconf.h:908:31: error: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Werror=int-conversion]
     908 | #define CONFIG_LINUX_RAM_BASE 0x80000000
         |                               ^~~~~~~~~~
         |                               |
         |                               unsigned int
   arch/arc/include/asm/page.h:102:45: note: in expansion of macro 'CONFIG_LINUX_RAM_BASE'
     102 | #define ARCH_PFN_OFFSET         virt_to_pfn(CONFIG_LINUX_RAM_BASE)
         |                                             ^~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:18:53: note: in expansion of macro 'ARCH_PFN_OFFSET'
      18 | #define __pfn_to_page(pfn)      (mem_map + ((pfn) - ARCH_PFN_OFFSET))
         |                                                     ^~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:53:21: note: in expansion of macro '__pfn_to_page'
      53 | #define pfn_to_page __pfn_to_page
         |                     ^~~~~~~~~~~~~
   include/linux/highmem-internal.h:197:32: note: in expansion of macro 'pfn_to_page'
     197 |         return kmap_local_page(pfn_to_page(pfn));
         |                                ^~~~~~~~~~~
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
   include/linux/highmem-internal.h: In function 'kmap_atomic_pfn':
>> ./include/generated/autoconf.h:908:31: error: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Werror=int-conversion]
     908 | #define CONFIG_LINUX_RAM_BASE 0x80000000
         |                               ^~~~~~~~~~
         |                               |
         |                               unsigned int
   arch/arc/include/asm/page.h:102:45: note: in expansion of macro 'CONFIG_LINUX_RAM_BASE'
     102 | #define ARCH_PFN_OFFSET         virt_to_pfn(CONFIG_LINUX_RAM_BASE)
         |                                             ^~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:18:53: note: in expansion of macro 'ARCH_PFN_OFFSET'
      18 | #define __pfn_to_page(pfn)      (mem_map + ((pfn) - ARCH_PFN_OFFSET))
         |                                                     ^~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:53:21: note: in expansion of macro '__pfn_to_page'
      53 | #define pfn_to_page __pfn_to_page
         |                     ^~~~~~~~~~~~~
   include/linux/highmem-internal.h:224:28: note: in expansion of macro 'pfn_to_page'
     224 |         return kmap_atomic(pfn_to_page(pfn));
         |                            ^~~~~~~~~~~
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
   include/linux/skbuff.h: In function 'skb_pp_recycle':
>> ./include/generated/autoconf.h:908:31: error: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Werror=int-conversion]
     908 | #define CONFIG_LINUX_RAM_BASE 0x80000000
         |                               ^~~~~~~~~~
         |                               |
         |                               unsigned int
   arch/arc/include/asm/page.h:102:45: note: in expansion of macro 'CONFIG_LINUX_RAM_BASE'
     102 | #define ARCH_PFN_OFFSET         virt_to_pfn(CONFIG_LINUX_RAM_BASE)
         |                                             ^~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:18:53: note: in expansion of macro 'ARCH_PFN_OFFSET'
      18 | #define __pfn_to_page(pfn)      (mem_map + ((pfn) - ARCH_PFN_OFFSET))
         |                                                     ^~~~~~~~~~~~~~~
   include/asm-generic/memory_model.h:53:21: note: in expansion of macro '__pfn_to_page'
      53 | #define pfn_to_page __pfn_to_page
         |                     ^~~~~~~~~~~~~
   arch/arc/include/asm/page.h:129:33: note: in expansion of macro 'pfn_to_page'
     129 | #define virt_to_page(kaddr)     pfn_to_page(virt_to_pfn(kaddr))
         |                                 ^~~~~~~~~~~
   include/linux/skbuff.h:5156:42: note: in expansion of macro 'virt_to_page'
    5156 |         return page_pool_return_skb_page(virt_to_page(data));
         |                                          ^~~~~~~~~~~~
   arch/arc/include/asm/page.h:124:53: note: expected 'const void *' but argument is of type 'unsigned int'
     124 | static inline unsigned long virt_to_pfn(const void *kaddr)
         |                                         ~~~~~~~~~~~~^~~~~
   cc1: all warnings being treated as errors
..

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

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

only message in thread, other threads:[~2022-07-20 17:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-20 17:27 [arm-integrator:kernel-in-vmalloc-v5.19-rc1 19/35] ./include/generated/autoconf.h:908:31: error: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).