From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH V4 2/2] riscv: add RISC-V Svpbmt extension supports
Date: Mon, 29 Nov 2021 11:57:00 +0800 [thread overview]
Message-ID: <202111291145.CM6aRxRv-lkp@intel.com> (raw)
In-Reply-To: <20211129014007.286478-3-wefu@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 4847 bytes --]
Hi,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on robh/for-next]
[also build test ERROR on linus/master hch-configfs/for-next v5.16-rc3 next-20211126]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/wefu-redhat-com/riscv-add-RISC-V-Svpbmt-Standard-Extension-supports/20211129-094324
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: riscv-randconfig-r042-20211128 (https://download.01.org/0day-ci/archive/20211129/202111291145.CM6aRxRv-lkp(a)intel.com/config)
compiler: riscv32-linux-gcc (GCC) 11.2.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://github.com/0day-ci/linux/commit/b5b3142cd92db4be84159d03f650cf8e3ec00fda
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review wefu-redhat-com/riscv-add-RISC-V-Svpbmt-Standard-Extension-supports/20211129-094324
git checkout b5b3142cd92db4be84159d03f650cf8e3ec00fda
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=riscv prepare
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from arch/riscv/include/asm/page.h:176,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:60,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:55,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from arch/riscv/kernel/asm-offsets.c:10:
arch/riscv/include/asm/pgtable.h: In function 'pmd_page':
>> arch/riscv/include/asm/pgtable.h:234:28: error: implicit declaration of function '_chg_of_pmd' [-Werror=implicit-function-declaration]
234 | return pfn_to_page(_chg_of_pmd(pmd) >> _PAGE_PFN_SHIFT);
| ^~~~~~~~~~~
include/asm-generic/memory_model.h:40:32: note: in definition of macro '__pfn_to_page'
40 | ({ unsigned long __pfn = (pfn); \
| ^~~
arch/riscv/include/asm/pgtable.h:234:16: note: in expansion of macro 'pfn_to_page'
234 | return pfn_to_page(_chg_of_pmd(pmd) >> _PAGE_PFN_SHIFT);
| ^~~~~~~~~~~
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from arch/riscv/kernel/asm-offsets.c:10:
arch/riscv/include/asm/pgtable.h: In function 'pte_pfn':
>> arch/riscv/include/asm/pgtable.h:255:17: error: implicit declaration of function '_chg_of_pte' [-Werror=implicit-function-declaration]
255 | return (_chg_of_pte(pte) >> _PAGE_PFN_SHIFT);
| ^~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:121: arch/riscv/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1197: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:219: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/_chg_of_pmd +234 arch/riscv/include/asm/pgtable.h
231
232 static inline struct page *pmd_page(pmd_t pmd)
233 {
> 234 return pfn_to_page(_chg_of_pmd(pmd) >> _PAGE_PFN_SHIFT);
235 }
236
237 static inline unsigned long pmd_page_vaddr(pmd_t pmd)
238 {
239 return (unsigned long)pfn_to_virt(_chg_of_pmd(pmd) >> _PAGE_PFN_SHIFT);
240 }
241
242 static inline pte_t pmd_pte(pmd_t pmd)
243 {
244 return __pte(pmd_val(pmd));
245 }
246
247 static inline pte_t pud_pte(pud_t pud)
248 {
249 return __pte(pud_val(pud));
250 }
251
252 /* Yields the page frame number (PFN) of a page table entry */
253 static inline unsigned long pte_pfn(pte_t pte)
254 {
> 255 return (_chg_of_pte(pte) >> _PAGE_PFN_SHIFT);
256 }
257
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
next prev parent reply other threads:[~2021-11-29 3:57 UTC|newest]
Thread overview: 72+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-29 1:40 [PATCH V4 0/2] riscv: add RISC-V Svpbmt Standard Extension supports wefu
2021-11-29 1:40 ` wefu
2021-11-29 1:40 ` [PATCH V4 1/2] dt-bindings: riscv: add MMU Standard Extensions support for Svpbmt wefu
2021-11-29 1:40 ` wefu
2021-11-29 8:54 ` Heinrich Schuchardt
2021-11-29 8:54 ` Heinrich Schuchardt
2021-11-29 12:06 ` Heiko Stübner
2021-11-29 12:06 ` Heiko Stübner
2021-11-30 12:07 ` Heiko Stübner
2021-11-30 12:07 ` Heiko Stübner
2021-11-30 13:17 ` Jessica Clarke
2021-11-30 13:17 ` Jessica Clarke
2021-11-30 13:27 ` Heiko Stübner
2021-11-30 13:27 ` Heiko Stübner
2021-11-30 13:59 ` Jessica Clarke
2021-11-30 13:59 ` Jessica Clarke
2021-11-30 15:01 ` Philipp Tomsich
2021-11-30 15:01 ` Philipp Tomsich
2021-11-30 16:12 ` Jessica Clarke
2021-11-30 16:12 ` Jessica Clarke
2021-12-01 1:21 ` Atish Patra
2021-12-01 1:21 ` Atish Patra
2021-12-01 3:06 ` Tsukasa OI
2021-12-01 3:06 ` Tsukasa OI
2021-12-01 8:15 ` Atish Patra
2021-12-01 8:15 ` Atish Patra
2021-12-01 8:30 ` Heiko Stübner
2021-12-01 8:30 ` Heiko Stübner
[not found] ` <CAELrHRDb9oeu_FokyhUFQ+Yu27=4xqvPdz4=08MXQzh3Bj2Myw@mail.gmail.com>
2021-12-01 10:20 ` Heiko Stübner
2021-12-01 10:20 ` Heiko Stübner
2021-12-01 11:05 ` Philipp Tomsich
2021-12-01 11:05 ` Philipp Tomsich
2021-12-01 13:39 ` Jessica Clarke
2021-12-01 13:39 ` Jessica Clarke
2021-12-02 1:31 ` Tsukasa OI
2021-12-02 1:31 ` Tsukasa OI
2021-12-02 1:55 ` Atish Patra
2021-12-02 1:55 ` Atish Patra
2021-12-01 13:28 ` Heiko Stübner
2021-12-01 13:28 ` Heiko Stübner
2021-12-02 1:59 ` Atish Patra
2021-12-02 1:59 ` Atish Patra
2021-11-30 18:45 ` Heiko Stübner
2021-11-30 18:45 ` Heiko Stübner
2021-12-01 2:58 ` Wei Fu
2021-12-01 2:58 ` Wei Fu
2021-11-29 1:40 ` [PATCH V4 2/2] riscv: add RISC-V Svpbmt extension supports wefu
2021-11-29 1:40 ` wefu
2021-11-29 3:57 ` kernel test robot [this message]
2021-11-29 4:17 ` kernel test robot
2021-11-29 10:48 ` Alexandre Ghiti
2021-11-29 10:48 ` Alexandre Ghiti
2021-11-29 13:36 ` Jisheng Zhang
2021-11-29 13:36 ` Jisheng Zhang
2021-12-01 5:05 ` Wei Fu
2021-12-01 5:05 ` Wei Fu
2021-12-01 6:18 ` Anup Patel
2021-12-01 6:18 ` Anup Patel
2021-12-01 13:29 ` Jisheng Zhang
2021-12-01 13:29 ` Jisheng Zhang
2021-12-03 9:12 ` Wei Fu
2021-12-03 9:12 ` Wei Fu
2021-11-30 10:18 ` Guo Ren
2021-11-30 10:18 ` Guo Ren
2021-12-01 3:03 ` Wei Fu
2021-12-01 3:03 ` Wei Fu
2021-11-30 18:46 ` Heiko Stübner
2021-11-30 18:46 ` Heiko Stübner
2021-12-01 3:00 ` Wei Fu
2021-12-01 3:00 ` Wei Fu
2021-11-29 13:33 ` [PATCH V4 0/2] riscv: add RISC-V Svpbmt Standard Extension supports Jisheng Zhang
2021-11-29 13:33 ` Jisheng Zhang
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=202111291145.CM6aRxRv-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.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.