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/v2 4/4] arch/xtensa/include/asm/page.h:34:25: error: implicit declaration of function '_AC'
Date: Sat, 28 Jan 2023 23:40:33 +0800 [thread overview]
Message-ID: <202301282310.ig9OY108-lkp@intel.com> (raw)
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
reply other threads:[~2023-01-28 15:40 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=202301282310.ig9OY108-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.