* [ardb:arm64-ro-page-tables-pkvm 34/57] kernel/poke.c:13:23: error: implicit declaration of function 'phys_to_virt'
@ 2021-02-27 2:50 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-02-27 2:50 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2747 bytes --]
tree: git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git arm64-ro-page-tables-pkvm
head: c5266cc8ebfbdcc7e1ea856a82beb017d0a4f611
commit: c75121a984d82981c73f4c7d3f0eb3c9c5b6ed4c [34/57] [DEBUG] poke: Add sysctl to poke abitrary PAs
config: riscv-randconfig-r015-20210226 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project b889ef4214bc6dc8880fdd4badc0dcd9a3197753)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/commit/?id=c75121a984d82981c73f4c7d3f0eb3c9c5b6ed4c
git remote add ardb git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git
git fetch --no-tags ardb arm64-ro-page-tables-pkvm
git checkout c75121a984d82981c73f4c7d3f0eb3c9c5b6ed4c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
>> kernel/poke.c:13:23: error: implicit declaration of function 'phys_to_virt' [-Werror,-Wimplicit-function-declaration]
unsigned long *ptr = phys_to_virt(phys);
^
>> kernel/poke.c:13:17: warning: incompatible integer to pointer conversion initializing 'unsigned long *' with an expression of type 'int' [-Wint-conversion]
unsigned long *ptr = phys_to_virt(phys);
^ ~~~~~~~~~~~~~~~~~~
kernel/poke.c:21:23: error: implicit declaration of function 'phys_to_virt' [-Werror,-Wimplicit-function-declaration]
unsigned long *ptr = phys_to_virt(phys);
^
kernel/poke.c:21:17: warning: incompatible integer to pointer conversion initializing 'unsigned long *' with an expression of type 'int' [-Wint-conversion]
unsigned long *ptr = phys_to_virt(phys);
^ ~~~~~~~~~~~~~~~~~~
2 warnings and 2 errors generated.
vim +/phys_to_virt +13 kernel/poke.c
10
11 static ssize_t val_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf)
12 {
> 13 unsigned long *ptr = phys_to_virt(phys);
14
15 return sprintf(buf, "0x%lx\n", *ptr);
16 }
17
---
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: 22759 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [ardb:arm64-ro-page-tables-pkvm 34/57] kernel/poke.c:13:23: error: implicit declaration of function 'phys_to_virt'
@ 2021-02-27 6:43 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-02-27 6:43 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2798 bytes --]
Hi Quentin,
FYI, the error/warning still remains.
tree: git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git arm64-ro-page-tables-pkvm
head: c5266cc8ebfbdcc7e1ea856a82beb017d0a4f611
commit: c75121a984d82981c73f4c7d3f0eb3c9c5b6ed4c [34/57] [DEBUG] poke: Add sysctl to poke abitrary PAs
config: s390-randconfig-r025-20210226 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project b889ef4214bc6dc8880fdd4badc0dcd9a3197753)
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
# install s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/commit/?id=c75121a984d82981c73f4c7d3f0eb3c9c5b6ed4c
git remote add ardb git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git
git fetch --no-tags ardb arm64-ro-page-tables-pkvm
git checkout c75121a984d82981c73f4c7d3f0eb3c9c5b6ed4c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
>> kernel/poke.c:13:23: error: implicit declaration of function 'phys_to_virt' [-Werror,-Wimplicit-function-declaration]
unsigned long *ptr = phys_to_virt(phys);
^
>> kernel/poke.c:13:17: warning: incompatible integer to pointer conversion initializing 'unsigned long *' with an expression of type 'int' [-Wint-conversion]
unsigned long *ptr = phys_to_virt(phys);
^ ~~~~~~~~~~~~~~~~~~
kernel/poke.c:21:23: error: implicit declaration of function 'phys_to_virt' [-Werror,-Wimplicit-function-declaration]
unsigned long *ptr = phys_to_virt(phys);
^
kernel/poke.c:21:17: warning: incompatible integer to pointer conversion initializing 'unsigned long *' with an expression of type 'int' [-Wint-conversion]
unsigned long *ptr = phys_to_virt(phys);
^ ~~~~~~~~~~~~~~~~~~
2 warnings and 2 errors generated.
vim +/phys_to_virt +13 kernel/poke.c
10
11 static ssize_t val_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf)
12 {
> 13 unsigned long *ptr = phys_to_virt(phys);
14
15 return sprintf(buf, "0x%lx\n", *ptr);
16 }
17
---
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: 24986 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-27 6:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-27 2:50 [ardb:arm64-ro-page-tables-pkvm 34/57] kernel/poke.c:13:23: error: implicit declaration of function 'phys_to_virt' kernel test robot
2021-02-27 6:43 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.