* [frank-w-bpi-r2-4.14:5.16-r2pro 50/53] arch/ia64/include/asm/mmu_context.h:127:48: error: variable 'old_rr4' set but not used
@ 2021-12-29 2:01 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-29 2:01 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 5753 bytes --]
tree: https://github.com/frank-w/BPI-R2-4.14 5.16-r2pro
head: 4136e3e8621834efaac799c13c8ea99f21fa2add
commit: 9e69038811fbd1a4c478ccda3817426a3f4af504 [50/53] rtl8367: add phy-driver from vendor
config: ia64-buildonly-randconfig-r002-20211229 (https://download.01.org/0day-ci/archive/20211229/202112290954.agHXxjC4-lkp(a)intel.com/config)
compiler: ia64-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/frank-w/BPI-R2-4.14/commit/9e69038811fbd1a4c478ccda3817426a3f4af504
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.16-r2pro
git checkout 9e69038811fbd1a4c478ccda3817426a3f4af504
# 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=ia64 SHELL=/bin/bash drivers/net/phy/rtk/
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 >>):
cc1: error: drivers/net/phy/rtk/rtl8367c/include: No such file or directory [-Werror=missing-include-dirs]
cc1: error: include/linux/: No such file or directory [-Werror=missing-include-dirs]
In file included from arch/ia64/include/asm/pgtable.h:153,
from include/linux/pgtable.h:6,
from arch/ia64/include/asm/uaccess.h:40,
from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from include/linux/compat.h:17,
from include/linux/ethtool.h:17,
from include/linux/phy.h:16,
from include/linux/of_mdio.h:12,
from drivers/net/phy/rtk/rtl8367rb_mdio.c:19:
arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
>> arch/ia64/include/asm/mmu_context.h:127:48: error: variable 'old_rr4' set but not used [-Werror=unused-but-set-variable]
127 | unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
| ^~~~~~~
In file included from drivers/net/phy/rtk/rtl8367rb_mdio.c:24:
drivers/net/phy/rtk/./rtl8367c/include/rtk_switch.h: At top level:
drivers/net/phy/rtk/./rtl8367c/include/rtk_switch.h:21:10: fatal error: rtk_types.h: No such file or directory
21 | #include <rtk_types.h>
| ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
compilation terminated.
vim +/old_rr4 +127 arch/ia64/include/asm/mmu_context.h
^1da177e4c3f415 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 121
^1da177e4c3f415 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 122 static inline void
badea125d7cbd93 include/asm-ia64/mmu_context.h David Mosberger-Tang 2005-07-25 123 reload_context (nv_mm_context_t context)
^1da177e4c3f415 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 124 {
^1da177e4c3f415 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 125 unsigned long rid;
^1da177e4c3f415 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 126 unsigned long rid_incr = 0;
^1da177e4c3f415 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 @127 unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
^1da177e4c3f415 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 128
0a41e2501160587 include/asm-ia64/mmu_context.h Peter Chubb 2005-08-16 129 old_rr4 = ia64_get_rr(RGN_BASE(RGN_HPAGE));
^1da177e4c3f415 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 130 rid = context << 3; /* make space for encoding the region number */
^1da177e4c3f415 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 131 rid_incr = 1 << 8;
^1da177e4c3f415 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 132
^1da177e4c3f415 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 133 /* encode the region id, preferred page size, and VHPT enable bit: */
^1da177e4c3f415 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 134 rr0 = (rid << 8) | (PAGE_SHIFT << 2) | 1;
^1da177e4c3f415 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 135 rr1 = rr0 + 1*rid_incr;
^1da177e4c3f415 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 136 rr2 = rr0 + 2*rid_incr;
^1da177e4c3f415 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 137 rr3 = rr0 + 3*rid_incr;
^1da177e4c3f415 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 138 rr4 = rr0 + 4*rid_incr;
^1da177e4c3f415 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 139 #ifdef CONFIG_HUGETLB_PAGE
^1da177e4c3f415 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 140 rr4 = (rr4 & (~(0xfcUL))) | (old_rr4 & 0xfc);
0a41e2501160587 include/asm-ia64/mmu_context.h Peter Chubb 2005-08-16 141
:::::: The code@line 127 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-29 2:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-29 2:01 [frank-w-bpi-r2-4.14:5.16-r2pro 50/53] arch/ia64/include/asm/mmu_context.h:127:48: error: variable 'old_rr4' set but not used 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.