[PATCH] lib: fix for_each_child.cocci warnings
by Julia Lawall
From: kernel test robot <lkp(a)intel.com>
For_each_available_child_of_node should have of_node_put() before return
around line 1121.
Generated by: scripts/coccinelle/iterators/for_each_child.cocci
Fixes: 7d37cb2c912d ("lib: fix kconfig dependency on ARCH_WANT_FRAME_POINTERS")
CC: Julian Braha <julianbraha(a)gmail.com>
Reported-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: Julia Lawall <julia.lawall(a)inria.fr>
---
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1140ab592e2ebf8153d2b322604031a8868ce7a5
commit: 7d37cb2c912dc5c25ffac784a4f9b98c06c6bd08 lib: fix kconfig dependency on ARCH_WANT_FRAME_POINTERS
:::::: branch date: 15 hours ago
:::::: commit date: 5 weeks ago
mcde_dsi.c | 1 +
1 file changed, 1 insertion(+)
--- a/drivers/gpu/drm/mcde/mcde_dsi.c
+++ b/drivers/gpu/drm/mcde/mcde_dsi.c
@@ -1118,6 +1118,7 @@ static int mcde_dsi_bind(struct device *
bridge = of_drm_find_bridge(child);
if (!bridge) {
dev_err(dev, "failed to find bridge\n");
+ of_node_put(child);
return -EINVAL;
}
}
1 year, 4 months
[arnd-playground:to-build 25/41] drivers/s390/net/qeth_l3_main.c:2072:14: error: initialization of 'int (*)(struct net_device *, struct ifreq *, int)' from incompatible pointer type 'int (*)(struct net_device *, struct ifreq *, void *, int)'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git to-build
head: 5fd3eccb73a30251d944935959498ca308848a54
commit: 94128c7eff45bbd72b15dd67ff164f8e6b874a0c [25/41] qeth: use ndo_siocdevprivate
config: s390-allyesconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.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/arnd/playground.git/commi...
git remote add arnd-playground https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
git fetch --no-tags arnd-playground to-build
git checkout 94128c7eff45bbd72b15dd67ff164f8e6b874a0c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/s390/net/qeth_l3_main.c:2072:14: error: initialization of 'int (*)(struct net_device *, struct ifreq *, int)' from incompatible pointer type 'int (*)(struct net_device *, struct ifreq *, void *, int)' [-Werror=incompatible-pointer-types]
2072 | .do_ioctl = qeth_l3_do_ioctl,
| ^~~~~~~~~~~~~~~~
drivers/s390/net/qeth_l3_main.c:2072:14: note: (near initialization for 'qeth_l3_discipline.do_ioctl')
cc1: some warnings being treated as errors
vim +2072 drivers/s390/net/qeth_l3_main.c
c044dc2132d19d Eugene Crosser 2014-01-29 2065
50144f675363c3 Julian Wiedmann 2020-10-01 2066 const struct qeth_discipline qeth_l3_discipline = {
79a04e40f7f0e9 Ursula Braun 2017-06-06 2067 .devtype = &qeth_l3_devtype,
c041f2d487654e Sebastian Ott 2012-05-15 2068 .setup = qeth_l3_probe_device,
4a71df50047f0d Frank Blaschka 2008-02-15 2069 .remove = qeth_l3_remove_device,
4a71df50047f0d Frank Blaschka 2008-02-15 2070 .set_online = qeth_l3_set_online,
4a71df50047f0d Frank Blaschka 2008-02-15 2071 .set_offline = qeth_l3_set_offline,
942d6984aa0cb3 Julian Wiedmann 2017-04-11 @2072 .do_ioctl = qeth_l3_do_ioctl,
c044dc2132d19d Eugene Crosser 2014-01-29 2073 .control_event_handler = qeth_l3_control_event,
4a71df50047f0d Frank Blaschka 2008-02-15 2074 };
c041f2d487654e Sebastian Ott 2012-05-15 2075 EXPORT_SYMBOL_GPL(qeth_l3_discipline);
4a71df50047f0d Frank Blaschka 2008-02-15 2076
:::::: The code at line 2072 was first introduced by commit
:::::: 942d6984aa0cb3974b99d302b566eaf0b8eccf54 s390/qeth: move common ioctl handling to core
:::::: TO: Julian Wiedmann <jwi(a)linux.vnet.ibm.com>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[arm-integrator:kernel-in-vmalloc-v5.13-rc1 2/8] arch/arm/mm/init.c:306:5: warning: format specifies type 'unsigned long' but the argument has type 'char *'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v5.13-rc1
head: 7e5485b7d61fc97a247dc26f4888293aab05136b
commit: e6cd53886e36cf1bef7e3a060a61805d156dabc9 [2/8] ARM: Print virtual memory info again
config: arm-randconfig-r026-20210517 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 0a34ff8bcb1df16fe7d643ccbe4567b2162c5024)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.g...
git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
git fetch --no-tags arm-integrator kernel-in-vmalloc-v5.13-rc1
git checkout e6cd53886e36cf1bef7e3a060a61805d156dabc9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
arch/arm/mm/init.c:97:13: warning: no previous prototype for function 'setup_dma_zone' [-Wmissing-prototypes]
void __init setup_dma_zone(const struct machine_desc *mdesc)
^
arch/arm/mm/init.c:97:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init setup_dma_zone(const struct machine_desc *mdesc)
^
static
>> arch/arm/mm/init.c:306:5: warning: format specifies type 'unsigned long' but the argument has type 'char *' [-Wformat]
" kernel : 0x%08lx - 0x%08lx (%4ld MB)\n",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:363:36: note: expanded from macro 'pr_notice'
printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
>> arch/arm/mm/init.c:311:5: warning: data argument not used by format string [-Wformat-extra-args]
MLM(MODULES_VADDR, MODULES_END),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:363:36: note: expanded from macro 'pr_notice'
printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__)
~~~~~~~~~~~~~~~~~~~~~~~ ^
arch/arm/mm/init.c:298:25: note: expanded from macro 'MLM'
#define MLM(b, t) b, t, ((t) - (b)) >> 20
^
arch/arm/mm/init.c:296:13: warning: no previous prototype for function 'mem_init_print_arm_info' [-Wmissing-prototypes]
void __init mem_init_print_arm_info(void)
^
arch/arm/mm/init.c:296:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init mem_init_print_arm_info(void)
^
static
4 warnings generated.
vim +306 arch/arm/mm/init.c
295
296 void __init mem_init_print_arm_info(void)
297 {
298 #define MLM(b, t) b, t, ((t) - (b)) >> 20
299 pr_notice("Virtual kernel memory layout:\n"
300 " fixmap : 0x%08lx - 0x%08lx (%4ld MB)\n"
301 " vmalloc : 0x%08lx - 0x%08lx (%4ld MB)\n"
302 " lowmem : 0x%08lx - 0x%08lx (%4ld MB)\n"
303 #ifdef CONFIG_MODULES
304 " modules : 0x%08lx - 0x%08lx (%4ld MB)\n",
305 #endif
> 306 " kernel : 0x%08lx - 0x%08lx (%4ld MB)\n",
307 MLM(FIXADDR_START, FIXADDR_END),
308 MLM(VMALLOC_START, VMALLOC_END),
309 MLM(PAGE_OFFSET, (unsigned long)high_memory),
310 #ifdef CONFIG_MODULES
> 311 MLM(MODULES_VADDR, MODULES_END),
312 #endif
313 /* From beginning of .text to end of .bss */
314 MLM((unsigned long)_text, (unsigned long)__bss_stop));
315 #undef MLM
316 }
317
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[arm-integrator:kernel-in-vmalloc-v5.13-rc1 7/8] arch/arm/include/asm/memory.h:330:16: warning: cast to pointer from integer of different size
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v5.13-rc1
head: 7e5485b7d61fc97a247dc26f4888293aab05136b
commit: 63d42bff112c6522ab18d6b2484fcc29161cc6ef [7/8] ARM: Compile the kernel into VMALLOC
config: arm-keystone_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.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/linusw/linux-integrator.g...
git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
git fetch --no-tags arm-integrator kernel-in-vmalloc-v5.13-rc1
git checkout 63d42bff112c6522ab18d6b2484fcc29161cc6ef
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/arm/include/asm/page.h:160,
from arch/arm/include/asm/thread_info.h:14,
from include/linux/thread_info.h:59,
from include/asm-generic/current.h:5,
from ./arch/arm/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from arch/arm/kernel/asm-offsets.c:11:
arch/arm/include/asm/memory.h: In function 'virt_to_pfn':
>> arch/arm/include/asm/memory.h:330:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
330 | (kaddr < (void *)(KERNEL_OFFSET + KERNEL_SECTION_SIZE))) {
| ^
arch/arm/include/asm/memory.h:332:5: error: 'KERNEL_PFN_OFFSET' undeclared (first use in this function); did you mean 'KERNEL_OFFSET'?
332 | KERNEL_PFN_OFFSET);
| ^~~~~~~~~~~~~~~~~
| KERNEL_OFFSET
arch/arm/include/asm/memory.h:332:5: note: each undeclared identifier is reported only once for each function it appears in
--
In file included from arch/arm/include/asm/page.h:160,
from arch/arm/include/asm/thread_info.h:14,
from include/linux/thread_info.h:59,
from include/asm-generic/current.h:5,
from ./arch/arm/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from arch/arm/kernel/asm-offsets.c:11:
arch/arm/include/asm/memory.h: In function 'virt_to_pfn':
>> arch/arm/include/asm/memory.h:330:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
330 | (kaddr < (void *)(KERNEL_OFFSET + KERNEL_SECTION_SIZE))) {
| ^
arch/arm/include/asm/memory.h:332:5: error: 'KERNEL_PFN_OFFSET' undeclared (first use in this function); did you mean 'KERNEL_OFFSET'?
332 | KERNEL_PFN_OFFSET);
| ^~~~~~~~~~~~~~~~~
| KERNEL_OFFSET
arch/arm/include/asm/memory.h:332:5: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [scripts/Makefile.build:117: arch/arm/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1227: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:215: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
In file included from arch/arm/include/asm/page.h:160,
from arch/arm/include/asm/thread_info.h:14,
from include/linux/thread_info.h:59,
from include/asm-generic/current.h:5,
from ./arch/arm/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from arch/arm/kernel/asm-offsets.c:11:
arch/arm/include/asm/memory.h: In function 'virt_to_pfn':
>> arch/arm/include/asm/memory.h:330:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
330 | (kaddr < (void *)(KERNEL_OFFSET + KERNEL_SECTION_SIZE))) {
| ^
arch/arm/include/asm/memory.h:332:5: error: 'KERNEL_PFN_OFFSET' undeclared (first use in this function); did you mean 'KERNEL_OFFSET'?
332 | KERNEL_PFN_OFFSET);
| ^~~~~~~~~~~~~~~~~
| KERNEL_OFFSET
arch/arm/include/asm/memory.h:332:5: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [scripts/Makefile.build:117: arch/arm/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1227: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:215: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +330 arch/arm/include/asm/memory.h
322
323 static inline unsigned long virt_to_pfn(const void *kaddr)
324 {
325 if (!IS_ENABLED(CONFIG_ARM_KERNEL_IN_VMALLOC)) {
326 return ((((unsigned long)(kaddr) - PAGE_OFFSET) >> PAGE_SHIFT) +
327 PHYS_PFN_OFFSET);
328 } else {
329 if ((kaddr >= (void *)KERNEL_OFFSET) &&
> 330 (kaddr < (void *)(KERNEL_OFFSET + KERNEL_SECTION_SIZE))) {
331 return ((((unsigned long)(kaddr) - KERNEL_OFFSET) >> PAGE_SHIFT) +
332 KERNEL_PFN_OFFSET);
333 } else {
334 return ((((unsigned long)(kaddr) - PAGE_OFFSET) >> PAGE_SHIFT) +
335 PHYS_PFN_OFFSET);
336 }
337 }
338 }
339
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[arm-integrator:kernel-in-vmalloc-v5.13-rc1 7/8] init.c:undefined reference to `kernel_sec_start'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v5.13-rc1
head: 7e5485b7d61fc97a247dc26f4888293aab05136b
commit: 63d42bff112c6522ab18d6b2484fcc29161cc6ef [7/8] ARM: Compile the kernel into VMALLOC
config: arm-randconfig-c004-20210517 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.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/linusw/linux-integrator.g...
git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
git fetch --no-tags arm-integrator kernel-in-vmalloc-v5.13-rc1
git checkout 63d42bff112c6522ab18d6b2484fcc29161cc6ef
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
arm-linux-gnueabi-ld: arch/arm/mm/init.o: in function `arm_memblock_init':
>> init.c:(.init.text+0x2d0): undefined reference to `kernel_sec_start'
--
In file included from arch/arm/include/asm/memory.h:447,
from arch/arm/include/asm/page.h:160,
from arch/arm/include/asm/thread_info.h:14,
from include/linux/thread_info.h:59,
from include/asm-generic/preempt.h:5,
from ./arch/arm/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from mm/gup.c:5:
mm/gup.c: In function '__get_user_pages_locked':
>> mm/gup.c:1552:28: warning: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Wint-conversion]
1552 | pages[i] = virt_to_page(start);
| ^~~~~
| |
| long unsigned int
include/asm-generic/memory_model.h:33:41: note: in definition of macro '__pfn_to_page'
33 | #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET))
| ^~~
mm/gup.c:1552:15: note: in expansion of macro 'virt_to_page'
1552 | pages[i] = virt_to_page(start);
| ^~~~~~~~~~~~
In file included from arch/arm/include/asm/page.h:160,
from arch/arm/include/asm/thread_info.h:14,
from include/linux/thread_info.h:59,
from include/asm-generic/preempt.h:5,
from ./arch/arm/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from mm/gup.c:5:
arch/arm/include/asm/memory.h:323:53: note: expected 'const void *' but argument is of type 'long unsigned int'
323 | static inline unsigned long virt_to_pfn(const void *kaddr)
| ~~~~~~~~~~~~^~~~~
--
In file included from arch/arm/include/asm/memory.h:447,
from arch/arm/include/asm/page.h:160,
from arch/arm/include/asm/thread_info.h:14,
from include/linux/thread_info.h:59,
from include/asm-generic/preempt.h:5,
from ./arch/arm/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from mm/nommu.c:20:
mm/nommu.c: In function 'free_page_series':
>> mm/nommu.c:502:36: warning: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Wint-conversion]
502 | struct page *page = virt_to_page(from);
| ^~~~
| |
| long unsigned int
include/asm-generic/memory_model.h:33:41: note: in definition of macro '__pfn_to_page'
33 | #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET))
| ^~~
mm/nommu.c:502:23: note: in expansion of macro 'virt_to_page'
502 | struct page *page = virt_to_page(from);
| ^~~~~~~~~~~~
In file included from arch/arm/include/asm/page.h:160,
from arch/arm/include/asm/thread_info.h:14,
from include/linux/thread_info.h:59,
from include/asm-generic/preempt.h:5,
from ./arch/arm/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from mm/nommu.c:20:
arch/arm/include/asm/memory.h:323:53: note: expected 'const void *' but argument is of type 'long unsigned int'
323 | static inline unsigned long virt_to_pfn(const void *kaddr)
| ~~~~~~~~~~~~^~~~~
mm/nommu.c: At top level:
mm/nommu.c:1648:15: warning: no previous prototype for 'arch_get_unmapped_area' [-Wmissing-prototypes]
1648 | unsigned long arch_get_unmapped_area(struct file *file, unsigned long addr,
| ^~~~~~~~~~~~~~~~~~~~~~
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[nbdd0121:rustdoc 127/369] ld.lld: error: main.c:(.text+0xA74): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
by kernel test robot
CC: Miguel Ojeda <ojeda(a)kernel.org>
tree: https://github.com/nbdd0121/linux rustdoc
head: ba3afcc4cba7d728a4c7ef88fca8305d4af2e7c1
commit: f85857bc670e584c318535082376dc53f1f3c40c [127/369] Merge tag 'v5.12-rc2' into rust-sync
config: riscv-randconfig-r033-20210517 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 0a34ff8bcb1df16fe7d643ccbe4567b2162c5024)
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://github.com/nbdd0121/linux/commit/f85857bc670e584c318535082376dc53...
git remote add nbdd0121 https://github.com/nbdd0121/linux
git fetch --no-tags nbdd0121 rustdoc
git checkout f85857bc670e584c318535082376dc53f1f3c40c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x8): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x3E): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x48): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x9C): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0xB6): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0xE4): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x1C0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x82): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x104): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x18E): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x30A): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x452): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x5A4): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x732): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x8A0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: main.c:(.text+0xA74): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0xC50): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0xCAA): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[arm-integrator:kernel-in-vmalloc-v5.13-rc1 7/8] ld.lld: error: undefined symbol: kernel_sec_start
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v5.13-rc1
head: 7e5485b7d61fc97a247dc26f4888293aab05136b
commit: 63d42bff112c6522ab18d6b2484fcc29161cc6ef [7/8] ARM: Compile the kernel into VMALLOC
config: arm-randconfig-r012-20210517 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 0a34ff8bcb1df16fe7d643ccbe4567b2162c5024)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.g...
git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
git fetch --no-tags arm-integrator kernel-in-vmalloc-v5.13-rc1
git checkout 63d42bff112c6522ab18d6b2484fcc29161cc6ef
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
>> ld.lld: error: undefined symbol: kernel_sec_start
>>> referenced by init.c
>>> mm/init.o:(arm_memblock_init) in archive arch/arm/built-in.a
>>> referenced by init.c
>>> mm/init.o:(arm_memblock_init) in archive arch/arm/built-in.a
--
>> mm/gup.c:1552:28: warning: incompatible integer to pointer conversion passing 'unsigned long' to parameter of type 'const void *' [-Wint-conversion]
pages[i] = virt_to_page(start);
^~~~~
arch/arm/include/asm/memory.h:441:53: note: expanded from macro 'virt_to_page'
#define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr))
^~~~~
include/asm-generic/memory_model.h:33:41: note: expanded from macro '__pfn_to_page'
#define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET))
^~~
arch/arm/include/asm/memory.h:323:53: note: passing argument to parameter 'kaddr' here
static inline unsigned long virt_to_pfn(const void *kaddr)
^
1 warning generated.
--
>> mm/nommu.c:502:36: warning: incompatible integer to pointer conversion passing 'unsigned long' to parameter of type 'const void *' [-Wint-conversion]
struct page *page = virt_to_page(from);
^~~~
arch/arm/include/asm/memory.h:441:53: note: expanded from macro 'virt_to_page'
#define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr))
^~~~~
include/asm-generic/memory_model.h:33:41: note: expanded from macro '__pfn_to_page'
#define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET))
^~~
arch/arm/include/asm/memory.h:323:53: note: passing argument to parameter 'kaddr' here
static inline unsigned long virt_to_pfn(const void *kaddr)
^
mm/nommu.c:1648:15: warning: no previous prototype for function 'arch_get_unmapped_area' [-Wmissing-prototypes]
unsigned long arch_get_unmapped_area(struct file *file, unsigned long addr,
^
mm/nommu.c:1648:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
unsigned long arch_get_unmapped_area(struct file *file, unsigned long addr,
^
static
2 warnings generated.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
drivers/gpu/drm/amd/amdgpu/../display/dc/dml/display_mode_lib.c:122:6: warning: stack frame size of 2704 bytes in function 'dml_log_pipe_params'
by kernel test robot
Hi Alex,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d07f6ca923ea0927a1024dfccafc5b53b61cfecc
commit: 20f2ffe504728612d7b0c34e4f8280e34251e704 drm/amdgpu: fold CONFIG_DRM_AMD_DC_DCN3* into CONFIG_DRM_AMD_DC_DCN (v3)
date: 6 months ago
config: powerpc-randconfig-r004-20210517 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 0a34ff8bcb1df16fe7d643ccbe4567b2162c5024)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 20f2ffe504728612d7b0c34e4f8280e34251e704
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dml/display_mode_lib.c:122:6: warning: stack frame size of 2704 bytes in function 'dml_log_pipe_params' [-Wframe-larger-than=]
void dml_log_pipe_params(
^
1 warning generated.
--
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn30/display_rq_dlg_calc_30.c:963:13: warning: stack frame size of 2128 bytes in function 'dml_rq_dlg_get_dlg_params' [-Wframe-larger-than=]
static void dml_rq_dlg_get_dlg_params(struct display_mode_lib *mode_lib,
^
1 warning generated.
vim +/dml_log_pipe_params +122 drivers/gpu/drm/amd/amdgpu/../display/dc/dml/display_mode_lib.c
20f2ffe50472861 Alex Deucher 2020-11-02 121
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 @122 void dml_log_pipe_params(
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 123 struct display_mode_lib *mode_lib,
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 124 display_e2e_pipe_params_st *pipes,
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 125 int pipe_cnt)
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 126 {
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 127 display_pipe_source_params_st *pipe_src;
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 128 display_pipe_dest_params_st *pipe_dest;
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 129 scaler_ratio_depth_st *scale_ratio_depth;
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 130 scaler_taps_st *scale_taps;
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 131 display_output_params_st *dout;
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 132 display_clocks_and_cfg_st *clks_cfg;
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 133 int i;
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 134
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 135 for (i = 0; i < pipe_cnt; i++) {
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 136 pipe_src = &(pipes[i].pipe.src);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 137 pipe_dest = &(pipes[i].pipe.dest);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 138 scale_ratio_depth = &(pipes[i].pipe.scale_ratio_depth);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 139 scale_taps = &(pipes[i].pipe.scale_taps);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 140 dout = &(pipes[i].dout);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 141 clks_cfg = &(pipes[i].clks_cfg);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 142
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 143 dml_print("DML PARAMS: =====================================\n");
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 144 dml_print("DML PARAMS: PIPE [%d] SOURCE PARAMS:\n", i);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 145 dml_print("DML PARAMS: source_format = %d\n", pipe_src->source_format);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 146 dml_print("DML PARAMS: dcc = %d\n", pipe_src->dcc);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 147 dml_print("DML PARAMS: dcc_rate = %d\n", pipe_src->dcc_rate);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 148 dml_print("DML PARAMS: dcc_use_global = %d\n", pipe_src->dcc_use_global);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 149 dml_print("DML PARAMS: vm = %d\n", pipe_src->vm);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 150 dml_print("DML PARAMS: gpuvm = %d\n", pipe_src->gpuvm);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 151 dml_print("DML PARAMS: hostvm = %d\n", pipe_src->hostvm);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 152 dml_print("DML PARAMS: gpuvm_levels_force_en = %d\n", pipe_src->gpuvm_levels_force_en);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 153 dml_print("DML PARAMS: gpuvm_levels_force = %d\n", pipe_src->gpuvm_levels_force);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 154 dml_print("DML PARAMS: source_scan = %d\n", pipe_src->source_scan);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 155 dml_print("DML PARAMS: sw_mode = %d\n", pipe_src->sw_mode);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 156 dml_print("DML PARAMS: macro_tile_size = %d\n", pipe_src->macro_tile_size);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 157 dml_print("DML PARAMS: viewport_width = %d\n", pipe_src->viewport_width);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 158 dml_print("DML PARAMS: viewport_height = %d\n", pipe_src->viewport_height);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 159 dml_print("DML PARAMS: viewport_y_y = %d\n", pipe_src->viewport_y_y);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 160 dml_print("DML PARAMS: viewport_y_c = %d\n", pipe_src->viewport_y_c);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 161 dml_print("DML PARAMS: viewport_width_c = %d\n", pipe_src->viewport_width_c);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 162 dml_print("DML PARAMS: viewport_height_c = %d\n", pipe_src->viewport_height_c);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 163 dml_print("DML PARAMS: data_pitch = %d\n", pipe_src->data_pitch);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 164 dml_print("DML PARAMS: data_pitch_c = %d\n", pipe_src->data_pitch_c);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 165 dml_print("DML PARAMS: meta_pitch = %d\n", pipe_src->meta_pitch);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 166 dml_print("DML PARAMS: meta_pitch_c = %d\n", pipe_src->meta_pitch_c);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 167 dml_print("DML PARAMS: cur0_src_width = %d\n", pipe_src->cur0_src_width);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 168 dml_print("DML PARAMS: cur0_bpp = %d\n", pipe_src->cur0_bpp);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 169 dml_print("DML PARAMS: cur1_src_width = %d\n", pipe_src->cur1_src_width);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 170 dml_print("DML PARAMS: cur1_bpp = %d\n", pipe_src->cur1_bpp);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 171 dml_print("DML PARAMS: num_cursors = %d\n", pipe_src->num_cursors);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 172 dml_print("DML PARAMS: is_hsplit = %d\n", pipe_src->is_hsplit);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 173 dml_print("DML PARAMS: hsplit_grp = %d\n", pipe_src->hsplit_grp);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 174 dml_print("DML PARAMS: dynamic_metadata_enable = %d\n", pipe_src->dynamic_metadata_enable);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 175 dml_print("DML PARAMS: dmdata_lines_before_active = %d\n", pipe_src->dynamic_metadata_lines_before_active);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 176 dml_print("DML PARAMS: dmdata_xmit_bytes = %d\n", pipe_src->dynamic_metadata_xmit_bytes);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 177 dml_print("DML PARAMS: immediate_flip = %d\n", pipe_src->immediate_flip);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 178 dml_print("DML PARAMS: v_total_min = %d\n", pipe_src->v_total_min);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 179 dml_print("DML PARAMS: v_total_max = %d\n", pipe_src->v_total_max);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 180 dml_print("DML PARAMS: =====================================\n");
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 181
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 182 dml_print("DML PARAMS: PIPE [%d] DESTINATION PARAMS:\n", i);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 183 dml_print("DML PARAMS: recout_width = %d\n", pipe_dest->recout_width);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 184 dml_print("DML PARAMS: recout_height = %d\n", pipe_dest->recout_height);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 185 dml_print("DML PARAMS: full_recout_width = %d\n", pipe_dest->full_recout_width);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 186 dml_print("DML PARAMS: full_recout_height = %d\n", pipe_dest->full_recout_height);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 187 dml_print("DML PARAMS: hblank_start = %d\n", pipe_dest->hblank_start);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 188 dml_print("DML PARAMS: hblank_end = %d\n", pipe_dest->hblank_end);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 189 dml_print("DML PARAMS: vblank_start = %d\n", pipe_dest->vblank_start);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 190 dml_print("DML PARAMS: vblank_end = %d\n", pipe_dest->vblank_end);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 191 dml_print("DML PARAMS: htotal = %d\n", pipe_dest->htotal);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 192 dml_print("DML PARAMS: vtotal = %d\n", pipe_dest->vtotal);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 193 dml_print("DML PARAMS: vactive = %d\n", pipe_dest->vactive);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 194 dml_print("DML PARAMS: hactive = %d\n", pipe_dest->hactive);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 195 dml_print("DML PARAMS: vstartup_start = %d\n", pipe_dest->vstartup_start);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 196 dml_print("DML PARAMS: vupdate_offset = %d\n", pipe_dest->vupdate_offset);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 197 dml_print("DML PARAMS: vupdate_width = %d\n", pipe_dest->vupdate_width);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 198 dml_print("DML PARAMS: vready_offset = %d\n", pipe_dest->vready_offset);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 199 dml_print("DML PARAMS: interlaced = %d\n", pipe_dest->interlaced);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 200 dml_print("DML PARAMS: pixel_rate_mhz = %3.2f\n", pipe_dest->pixel_rate_mhz);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 201 dml_print("DML PARAMS: sync_vblank_all_planes = %d\n", pipe_dest->synchronized_vblank_all_planes);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 202 dml_print("DML PARAMS: otg_inst = %d\n", pipe_dest->otg_inst);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 203 dml_print("DML PARAMS: odm_combine = %d\n", pipe_dest->odm_combine);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 204 dml_print("DML PARAMS: use_maximum_vstartup = %d\n", pipe_dest->use_maximum_vstartup);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 205 dml_print("DML PARAMS: vtotal_max = %d\n", pipe_dest->vtotal_max);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 206 dml_print("DML PARAMS: vtotal_min = %d\n", pipe_dest->vtotal_min);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 207 dml_print("DML PARAMS: =====================================\n");
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 208
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 209 dml_print("DML PARAMS: PIPE [%d] SCALER PARAMS:\n", i);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 210 dml_print("DML PARAMS: hscl_ratio = %3.4f\n", scale_ratio_depth->hscl_ratio);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 211 dml_print("DML PARAMS: vscl_ratio = %3.4f\n", scale_ratio_depth->vscl_ratio);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 212 dml_print("DML PARAMS: hscl_ratio_c = %3.4f\n", scale_ratio_depth->hscl_ratio_c);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 213 dml_print("DML PARAMS: vscl_ratio_c = %3.4f\n", scale_ratio_depth->vscl_ratio_c);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 214 dml_print("DML PARAMS: vinit = %3.4f\n", scale_ratio_depth->vinit);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 215 dml_print("DML PARAMS: vinit_c = %3.4f\n", scale_ratio_depth->vinit_c);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 216 dml_print("DML PARAMS: vinit_bot = %3.4f\n", scale_ratio_depth->vinit_bot);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 217 dml_print("DML PARAMS: vinit_bot_c = %3.4f\n", scale_ratio_depth->vinit_bot_c);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 218 dml_print("DML PARAMS: lb_depth = %d\n", scale_ratio_depth->lb_depth);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 219 dml_print("DML PARAMS: scl_enable = %d\n", scale_ratio_depth->scl_enable);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 220 dml_print("DML PARAMS: htaps = %d\n", scale_taps->htaps);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 221 dml_print("DML PARAMS: vtaps = %d\n", scale_taps->vtaps);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 222 dml_print("DML PARAMS: htaps_c = %d\n", scale_taps->htaps_c);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 223 dml_print("DML PARAMS: vtaps_c = %d\n", scale_taps->vtaps_c);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 224 dml_print("DML PARAMS: =====================================\n");
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 225
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 226 dml_print("DML PARAMS: PIPE [%d] DISPLAY OUTPUT PARAMS:\n", i);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 227 dml_print("DML PARAMS: output_type = %d\n", dout->output_type);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 228 dml_print("DML PARAMS: output_format = %d\n", dout->output_format);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 229 dml_print("DML PARAMS: output_bpc = %d\n", dout->output_bpc);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 230 dml_print("DML PARAMS: output_bpp = %3.4f\n", dout->output_bpp);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 231 dml_print("DML PARAMS: dp_lanes = %d\n", dout->dp_lanes);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 232 dml_print("DML PARAMS: dsc_enable = %d\n", dout->dsc_enable);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 233 dml_print("DML PARAMS: dsc_slices = %d\n", dout->dsc_slices);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 234 dml_print("DML PARAMS: wb_enable = %d\n", dout->wb_enable);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 235 dml_print("DML PARAMS: num_active_wb = %d\n", dout->num_active_wb);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 236 dml_print("DML PARAMS: =====================================\n");
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 237
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 238 dml_print("DML PARAMS: PIPE [%d] CLOCK CONFIG PARAMS:\n", i);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 239 dml_print("DML PARAMS: voltage = %d\n", clks_cfg->voltage);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 240 dml_print("DML PARAMS: dppclk_mhz = %3.2f\n", clks_cfg->dppclk_mhz);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 241 dml_print("DML PARAMS: refclk_mhz = %3.2f\n", clks_cfg->refclk_mhz);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 242 dml_print("DML PARAMS: dispclk_mhz = %3.2f\n", clks_cfg->dispclk_mhz);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 243 dml_print("DML PARAMS: dcfclk_mhz = %3.2f\n", clks_cfg->dcfclk_mhz);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 244 dml_print("DML PARAMS: socclk_mhz = %3.2f\n", clks_cfg->socclk_mhz);
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 245 dml_print("DML PARAMS: =====================================\n");
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 246 }
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 247 }
6725a88f88a7e92 Bhawanpreet Lakha 2020-05-21 248
:::::: The code at line 122 was first introduced by commit
:::::: 6725a88f88a7e922e91c45bf83d320487810c192 drm/amd/display: Add DCN3 DML
:::::: TO: Bhawanpreet Lakha <Bhawanpreet.Lakha(a)amd.com>
:::::: CC: Alex Deucher <alexander.deucher(a)amd.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[arm-integrator:kernel-in-vmalloc-v5.13-rc1 2/8] arch/arm/mm/init.c:296:13: warning: no previous prototype for 'mem_init_print_arm_info'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v5.13-rc1
head: 7e5485b7d61fc97a247dc26f4888293aab05136b
commit: e6cd53886e36cf1bef7e3a060a61805d156dabc9 [2/8] ARM: Print virtual memory info again
config: arm-randconfig-c004-20210517 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.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/linusw/linux-integrator.g...
git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
git fetch --no-tags arm-integrator kernel-in-vmalloc-v5.13-rc1
git checkout e6cd53886e36cf1bef7e3a060a61805d156dabc9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
arch/arm/mm/init.c:97:13: warning: no previous prototype for 'setup_dma_zone' [-Wmissing-prototypes]
97 | void __init setup_dma_zone(const struct machine_desc *mdesc)
| ^~~~~~~~~~~~~~
>> arch/arm/mm/init.c:296:13: warning: no previous prototype for 'mem_init_print_arm_info' [-Wmissing-prototypes]
296 | void __init mem_init_print_arm_info(void)
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from arch/arm/mm/init.c:36:
arch/arm/include/asm/fixmap.h:39:35: warning: '__end_of_fixed_addresses' defined but not used [-Wunused-const-variable=]
39 | static const enum fixed_addresses __end_of_fixed_addresses =
| ^~~~~~~~~~~~~~~~~~~~~~~~
vim +/mem_init_print_arm_info +296 arch/arm/mm/init.c
295
> 296 void __init mem_init_print_arm_info(void)
297 {
298 #define MLM(b, t) b, t, ((t) - (b)) >> 20
299 pr_notice("Virtual kernel memory layout:\n"
300 " fixmap : 0x%08lx - 0x%08lx (%4ld MB)\n"
301 " vmalloc : 0x%08lx - 0x%08lx (%4ld MB)\n"
302 " lowmem : 0x%08lx - 0x%08lx (%4ld MB)\n"
303 #ifdef CONFIG_MODULES
304 " modules : 0x%08lx - 0x%08lx (%4ld MB)\n",
305 #endif
306 " kernel : 0x%08lx - 0x%08lx (%4ld MB)\n",
307 MLM(FIXADDR_START, FIXADDR_END),
308 MLM(VMALLOC_START, VMALLOC_END),
309 MLM(PAGE_OFFSET, (unsigned long)high_memory),
310 #ifdef CONFIG_MODULES
311 MLM(MODULES_VADDR, MODULES_END),
312 #endif
313 /* From beginning of .text to end of .bss */
314 MLM((unsigned long)_text, (unsigned long)__bss_stop));
315 #undef MLM
316 }
317
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months