All of lore.kernel.org
 help / color / mirror / Atom feed
* [rppt:misc/pfn_valid/v2 4/4] arch/xtensa/include/asm/page.h:34:25: error: implicit declaration of function '_AC'
@ 2023-01-28 15:40 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-01-28 15:40 UTC (permalink / raw)
  To: Mike Rapoport (IBM); +Cc: oe-kbuild-all, Mike Rapoport

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git misc/pfn_valid/v2
head:   d155b3698ab1a295c1db9d8729ce2645147739f8
commit: d155b3698ab1a295c1db9d8729ce2645147739f8 [4/4] mm, arch: add generic implementation of pfn_valid() for FLATMEM
config: xtensa-nommu_kc705_defconfig (https://download.01.org/0day-ci/archive/20230128/202301282310.ig9OY108-lkp@intel.com/config)
compiler: xtensa-de212-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=d155b3698ab1a295c1db9d8729ce2645147739f8
        git remote add rppt https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git
        git fetch --no-tags rppt misc/pfn_valid/v2
        git checkout d155b3698ab1a295c1db9d8729ce2645147739f8
        # 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=xtensa olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=xtensa SHELL=/bin/bash

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 >>):

   In file included from include/linux/generic-radix-tree.h:39,
                    from lib/generic-radix-tree.c:3:
   include/asm-generic/memory_model.h: In function 'pfn_valid':
>> arch/xtensa/include/asm/page.h:34:25: error: implicit declaration of function '_AC' [-Werror=implicit-function-declaration]
      34 | #define PHYS_OFFSET     _AC(CONFIG_DEFAULT_MEM_START, UL)
         |                         ^~~
   arch/xtensa/include/asm/page.h:162:34: note: in expansion of macro 'PHYS_OFFSET'
     162 | #define ARCH_PFN_OFFSET         (PHYS_OFFSET >> PAGE_SHIFT)
         |                                  ^~~~~~~~~~~
   include/asm-generic/memory_model.h:27:36: note: in expansion of macro 'ARCH_PFN_OFFSET'
      27 |         unsigned long pfn_offset = ARCH_PFN_OFFSET;
         |                                    ^~~~~~~~~~~~~~~
>> arch/xtensa/include/asm/page.h:34:55: error: 'UL' undeclared (first use in this function)
      34 | #define PHYS_OFFSET     _AC(CONFIG_DEFAULT_MEM_START, UL)
         |                                                       ^~
   arch/xtensa/include/asm/page.h:162:34: note: in expansion of macro 'PHYS_OFFSET'
     162 | #define ARCH_PFN_OFFSET         (PHYS_OFFSET >> PAGE_SHIFT)
         |                                  ^~~~~~~~~~~
   include/asm-generic/memory_model.h:27:36: note: in expansion of macro 'ARCH_PFN_OFFSET'
      27 |         unsigned long pfn_offset = ARCH_PFN_OFFSET;
         |                                    ^~~~~~~~~~~~~~~
   arch/xtensa/include/asm/page.h:34:55: note: each undeclared identifier is reported only once for each function it appears in
      34 | #define PHYS_OFFSET     _AC(CONFIG_DEFAULT_MEM_START, UL)
         |                                                       ^~
   arch/xtensa/include/asm/page.h:162:34: note: in expansion of macro 'PHYS_OFFSET'
     162 | #define ARCH_PFN_OFFSET         (PHYS_OFFSET >> PAGE_SHIFT)
         |                                  ^~~~~~~~~~~
   include/asm-generic/memory_model.h:27:36: note: in expansion of macro 'ARCH_PFN_OFFSET'
      27 |         unsigned long pfn_offset = ARCH_PFN_OFFSET;
         |                                    ^~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/_AC +34 arch/xtensa/include/asm/page.h

9a8fd558990215 include/asm-xtensa/page.h      Chris Zankel    2005-06-23  26  
e5083a63b6a854 arch/xtensa/include/asm/page.h Johannes Weiner 2009-03-04  27  #ifdef CONFIG_MMU
9a8fd558990215 include/asm-xtensa/page.h      Chris Zankel    2005-06-23  28  #define PAGE_OFFSET	XCHAL_KSEG_CACHED_VADDR
a9f2fc628e3a26 arch/xtensa/include/asm/page.h Max Filippov    2016-04-13  29  #define PHYS_OFFSET	XCHAL_KSEG_PADDR
d39af90265feb4 arch/xtensa/include/asm/page.h Max Filippov    2016-04-11  30  #define MAX_LOW_PFN	(PHYS_PFN(XCHAL_KSEG_PADDR) + \
d39af90265feb4 arch/xtensa/include/asm/page.h Max Filippov    2016-04-11  31  			 PHYS_PFN(XCHAL_KSEG_SIZE))
e5083a63b6a854 arch/xtensa/include/asm/page.h Johannes Weiner 2009-03-04  32  #else
aea731c81f998a arch/xtensa/include/asm/page.h Max Filippov    2018-08-13  33  #define PAGE_OFFSET	_AC(CONFIG_DEFAULT_MEM_START, UL)
aea731c81f998a arch/xtensa/include/asm/page.h Max Filippov    2018-08-13 @34  #define PHYS_OFFSET	_AC(CONFIG_DEFAULT_MEM_START, UL)
3de00482b006da arch/xtensa/include/asm/page.h Max Filippov    2016-07-23  35  #define MAX_LOW_PFN	PHYS_PFN(0xfffffffful)
e5083a63b6a854 arch/xtensa/include/asm/page.h Johannes Weiner 2009-03-04  36  #endif
e5083a63b6a854 arch/xtensa/include/asm/page.h Johannes Weiner 2009-03-04  37  

:::::: The code at line 34 was first introduced by commit
:::::: aea731c81f998af5e45654459bac24a1c808fb22 xtensa: rework {CONFIG,PLATFORM}_DEFAULT_MEM_START

:::::: TO: Max Filippov <jcmvbkbc@gmail.com>
:::::: CC: Max Filippov <jcmvbkbc@gmail.com>

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

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

only message in thread, other threads:[~2023-01-28 15:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-28 15:40 [rppt:misc/pfn_valid/v2 4/4] arch/xtensa/include/asm/page.h:34:25: error: implicit declaration of function '_AC' 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.