[xilinx-xlnx:xlnx_rebase_v5.10 1908/1981] drivers/gpu/drm/xlnx/xlnx_pl_disp.c:115:15: error: implicit declaration of function 'xilinx_xdma_get_fid_err_flag'; did you mean 'xilinx_xdma_get_width_align'?
by kernel test robot
Hi Venkateshwar,
FYI, the error/warning still remains.
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.10
head: 87ec9a2d98a7a7dfc98b57348a0ec310fd170e4b
commit: 329361a85ed2eaeaacd649ee1826e98dc1336bf7 [1908/1981] drm: xlnx: pl_disp: Add plane properties for fid error detection
config: arc-randconfig-r005-20211214 (https://download.01.org/0day-ci/archive/20211215/202112150450.zZvzmMa7-lk...)
compiler: arc-elf-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/Xilinx/linux-xlnx/commit/329361a85ed2eaeaacd649ee1826e...
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.10
git checkout 329361a85ed2eaeaacd649ee1826e98dc1336bf7
# 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=arc SHELL=/bin/bash drivers/gpu/drm/xlnx/
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/gpu/drm/xlnx/xlnx_pl_disp.c: In function 'xlnx_pl_disp_complete':
>> drivers/gpu/drm/xlnx/xlnx_pl_disp.c:115:15: error: implicit declaration of function 'xilinx_xdma_get_fid_err_flag'; did you mean 'xilinx_xdma_get_width_align'? [-Werror=implicit-function-declaration]
115 | ret = xilinx_xdma_get_fid_err_flag(xlnx_dma_chan->dma_chan,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| xilinx_xdma_get_width_align
>> drivers/gpu/drm/xlnx/xlnx_pl_disp.c:120:15: error: implicit declaration of function 'xilinx_xdma_get_fid_out'; did you mean 'xilinx_xdma_get_fid'? [-Werror=implicit-function-declaration]
120 | ret = xilinx_xdma_get_fid_out(xlnx_dma_chan->dma_chan,
| ^~~~~~~~~~~~~~~~~~~~~~~
| xilinx_xdma_get_fid
cc1: some warnings being treated as errors
vim +115 drivers/gpu/drm/xlnx/xlnx_pl_disp.c
99
100 /**
101 * xlnx_pl_disp_complete - vblank handler
102 * @param: parameter to vblank handler
103 *
104 * This function handles the vblank interrupt, and sends an event to
105 * CRTC object.
106 */
107 static void xlnx_pl_disp_complete(void *param)
108 {
109 struct xlnx_pl_disp *xlnx_pl_disp = param;
110 struct drm_device *drm = xlnx_pl_disp->drm;
111 struct xlnx_dma_chan *xlnx_dma_chan = xlnx_pl_disp->chan;
112 int ret;
113
114 /* Get fid err flag and fid out val */
> 115 ret = xilinx_xdma_get_fid_err_flag(xlnx_dma_chan->dma_chan,
116 &xlnx_pl_disp->fid_err_val);
117 if (ret)
118 dev_dbg(xlnx_pl_disp->dev, "failed to get fid_err info\n");
119
> 120 ret = xilinx_xdma_get_fid_out(xlnx_dma_chan->dma_chan,
121 &xlnx_pl_disp->fid_out_val);
122 if (ret)
123 dev_dbg(xlnx_pl_disp->dev, "failed to get fid_out info\n");
124
125 drm_handle_vblank(drm, 0);
126 }
127
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[xilinx-xlnx:xlnx_rebase_v5.10 240/1981] drivers/gpu/drm/xlnx/xlnx_mixer.c:1443:13: warning: cast from pointer to integer of different size
by kernel test robot
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.10
head: 87ec9a2d98a7a7dfc98b57348a0ec310fd170e4b
commit: f44962ff80bcd41ca6c29caabecbf21fbc4f95a1 [240/1981] drm: xlnx: mixer: Initial video mixer driver
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20211215/202112150334.bpLUKdSA-lk...)
compiler: arceb-elf-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/Xilinx/linux-xlnx/commit/f44962ff80bcd41ca6c29caabecbf...
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.10
git checkout f44962ff80bcd41ca6c29caabecbf21fbc4f95a1
# 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=arc SHELL=/bin/bash drivers/clk/ drivers/fpga/ drivers/gpu/drm/vc4/ drivers/gpu/drm/xlnx/ drivers/infiniband/hw/mlx5/ drivers/media/platform/xilinx/ drivers/memory/samsung/ drivers/misc/ drivers/mtd/nand/raw/brcmnand/ drivers/mtd/spi-nor/controllers/ drivers/net/ drivers/of/ drivers/ptp/ drivers/remoteproc/ drivers/spi/ drivers/staging/ drivers/thunderbolt/ drivers/uio/ drivers/usb/cdns3/ sound/hda/ sound/pci/hda/
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/xlnx/xlnx_mixer.c: In function 'xlnx_mix_logo_load':
drivers/gpu/drm/xlnx/xlnx_mixer.c:1339:20: warning: variable 'height' set but not used [-Wunused-but-set-variable]
1339 | u32 width, height, curr_x_pos, curr_y_pos;
| ^~~~~~
drivers/gpu/drm/xlnx/xlnx_mixer.c:1339:13: warning: variable 'width' set but not used [-Wunused-but-set-variable]
1339 | u32 width, height, curr_x_pos, curr_y_pos;
| ^~~~~
drivers/gpu/drm/xlnx/xlnx_mixer.c: In function 'xlnx_mix_update_logo_img':
>> drivers/gpu/drm/xlnx/xlnx_mixer.c:1443:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1443 | if ((phys_addr_t)buffer->vaddr == logo_layer->layer_regs.buff_addr1 &&
| ^
drivers/gpu/drm/xlnx/xlnx_mixer.c:1449:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1449 | logo_layer->layer_regs.buff_addr1 = (phys_addr_t)buffer->vaddr;
| ^
drivers/gpu/drm/xlnx/xlnx_mixer.c:1397:13: warning: variable 'logo_cmp_cnt' set but not used [-Wunused-but-set-variable]
1397 | u32 logo_cmp_cnt;
| ^~~~~~~~~~~~
drivers/gpu/drm/xlnx/xlnx_mixer.c: In function 'xlnx_mix_plane_create':
drivers/gpu/drm/xlnx/xlnx_mixer.c:2049:42: warning: variable 'layer_data' set but not used [-Wunused-but-set-variable]
2049 | struct xlnx_mix_layer_data *layer_data;
| ^~~~~~~~~~
drivers/gpu/drm/xlnx/xlnx_mixer.c: In function 'xlnx_mix_crtc_create':
drivers/gpu/drm/xlnx/xlnx_mixer.c:2418:27: warning: variable 'cursor_plane' set but not used [-Wunused-but-set-variable]
2418 | struct drm_plane *cursor_plane = NULL;
| ^~~~~~~~~~~~
drivers/gpu/drm/xlnx/xlnx_mixer.c:2417:27: warning: variable 'primary_plane' set but not used [-Wunused-but-set-variable]
2417 | struct drm_plane *primary_plane = NULL;
| ^~~~~~~~~~~~~
vim +1443 drivers/gpu/drm/xlnx/xlnx_mixer.c
1388
1389 static int xlnx_mix_update_logo_img(struct xlnx_mix_plane *plane,
1390 struct drm_gem_cma_object *buffer,
1391 u32 src_w, u32 src_h)
1392 {
1393 struct xlnx_mix_layer_data *logo_layer = plane->mixer_layer;
1394 size_t pixel_cnt = src_h * src_w;
1395 /* color comp defaults to offset in RG24 buffer */
1396 u32 pix_cmp_cnt;
1397 u32 logo_cmp_cnt;
1398 bool per_pixel_alpha = false;
1399 u32 max_width = logo_layer->hw_config.max_width;
1400 u32 max_height = logo_layer->hw_config.max_height;
1401 u32 min_width = logo_layer->hw_config.min_width;
1402 u32 min_height = logo_layer->hw_config.min_height;
1403 u8 *r_data = NULL;
1404 u8 *g_data = NULL;
1405 u8 *b_data = NULL;
1406 u8 *a_data = NULL;
1407 size_t el_size = sizeof(u8);
1408 u8 *pixel_mem_data;
1409 int ret, i, j;
1410
1411 /* ensure valid conditions for update */
1412 if (logo_layer->id != XVMIX_LAYER_LOGO)
1413 return 0;
1414
1415 if (src_h > max_height || src_w > max_width ||
1416 src_h < min_height || src_w < min_width) {
1417 DRM_ERROR("Mixer logo/cursor layer dimensions illegal.\n");
1418 return -EINVAL;
1419 }
1420
1421 if (!xlnx_mix_isfmt_support(plane->mixer_layer->hw_config.vid_fmt)) {
1422 DRM_ERROR("DRM color format not supported for logo layer\n");
1423 return -EINVAL;
1424 }
1425 per_pixel_alpha = (logo_layer->hw_config.vid_fmt ==
1426 DRM_FORMAT_RGBA8888) ? false : true;
1427 r_data = kcalloc(pixel_cnt, el_size, GFP_KERNEL);
1428 g_data = kcalloc(pixel_cnt, el_size, GFP_KERNEL);
1429 b_data = kcalloc(pixel_cnt, el_size, GFP_KERNEL);
1430 if (per_pixel_alpha)
1431 a_data = kcalloc(pixel_cnt, el_size, GFP_KERNEL);
1432
1433 if (!r_data || !g_data || !b_data || (per_pixel_alpha && !a_data)) {
1434 DRM_ERROR("Unable to allocate memory for logo layer data\n");
1435 ret = -ENOMEM;
1436 goto free;
1437 }
1438 pix_cmp_cnt = per_pixel_alpha ? 4 : 3;
1439 logo_cmp_cnt = pixel_cnt * pix_cmp_cnt;
1440 /* ensure buffer attributes have changed to indicate new logo
1441 * has been created
1442 */
> 1443 if ((phys_addr_t)buffer->vaddr == logo_layer->layer_regs.buff_addr1 &&
1444 src_w == logo_layer->layer_regs.width &&
1445 src_h == logo_layer->layer_regs.height)
1446 return 0;
1447
1448 /* cache buffer address for future comparison */
1449 logo_layer->layer_regs.buff_addr1 = (phys_addr_t)buffer->vaddr;
1450 pixel_mem_data = (u8 *)(buffer->vaddr);
1451 for (i = 0, j = 0; j < pixel_cnt; j++) {
1452 if (per_pixel_alpha && a_data)
1453 a_data[j] = pixel_mem_data[i++];
1454
1455 b_data[j] = pixel_mem_data[i++];
1456 g_data[j] = pixel_mem_data[i++];
1457 r_data[j] = pixel_mem_data[i++];
1458 }
1459 ret = xlnx_mix_logo_load(to_mixer_hw(plane), src_w, src_h, r_data,
1460 g_data, b_data,
1461 per_pixel_alpha ? a_data : NULL);
1462 free:
1463 kfree(r_data);
1464 kfree(g_data);
1465 kfree(b_data);
1466 kfree(a_data);
1467
1468 return ret;
1469 }
1470
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[hch-misc:um-set_fs 1/2] arch/x86/kernel/setup.c:984:3: error: expected ')' before 'mtrr_bp_init'
by kernel test robot
tree: git://git.infradead.org/users/hch/misc.git um-set_fs
head: 8b4bae6dce5196fc30ef0f98418f599c71b48f2e
commit: 712ae528f295df414e4bd7b15b058795b8464f86 [1/2] x86/mtrr: remove the mtrr_bp_init stub
config: x86_64-randconfig-m001-20211214 (https://download.01.org/0day-ci/archive/20211215/202112150313.UXVKhR4K-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add hch-misc git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc um-set_fs
git checkout 712ae528f295df414e4bd7b15b058795b8464f86
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
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 >>):
arch/x86/kernel/setup.c: In function 'setup_arch':
>> arch/x86/kernel/setup.c:984:3: error: expected ')' before 'mtrr_bp_init'
984 | mtrr_bp_init();
| ^~~~~~~~~~~~
arch/x86/kernel/setup.c:983:5: note: to match this '('
983 | if (IS_ENABLED(CONFIG_MTRR)
| ^
>> arch/x86/kernel/setup.c:1240:1: error: expected expression before '}' token
1240 | }
| ^
At top level:
arch/x86/kernel/setup.c:467:20: warning: 'reserve_crashkernel' defined but not used [-Wunused-function]
467 | static void __init reserve_crashkernel(void)
| ^~~~~~~~~~~~~~~~~~~
arch/x86/kernel/setup.c:300:20: warning: 'reserve_initrd' defined but not used [-Wunused-function]
300 | static void __init reserve_initrd(void)
| ^~~~~~~~~~~~~~
arch/x86/kernel/setup.c:221:20: warning: 'reserve_brk' defined but not used [-Wunused-function]
221 | static void __init reserve_brk(void)
| ^~~~~~~~~~~
vim +984 arch/x86/kernel/setup.c
cc9f7a0ccf000d arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-16 975
7b2a0a6c4866ca arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-03 976 /*
7b2a0a6c4866ca arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-03 977 * partially used pages are not usable - thus
7b2a0a6c4866ca arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-03 978 * we are rounding upwards:
7b2a0a6c4866ca arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-03 979 */
0c6fc11ac343c8 arch/x86/kernel/setup.c Ingo Molnar 2017-01-28 980 max_pfn = e820__end_of_ram_pfn();
7b2a0a6c4866ca arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-03 981
093af8d7f0ba3c arch/x86/kernel/setup_32.c Yinghai Lu 2008-01-30 982 /* update e820 for memory not covered by WB MTRRs */
712ae528f295df arch/x86/kernel/setup.c Christoph Hellwig 2021-12-14 983 if (IS_ENABLED(CONFIG_MTRR)
093af8d7f0ba3c arch/x86/kernel/setup_32.c Yinghai Lu 2008-01-30 @984 mtrr_bp_init();
712ae528f295df arch/x86/kernel/setup.c Christoph Hellwig 2021-12-14 985 else
712ae528f295df arch/x86/kernel/setup.c Christoph Hellwig 2021-12-14 986 pat_disable("PAT support disabled because CONFIG_MTRR is disabled in the kernel.");
712ae528f295df arch/x86/kernel/setup.c Christoph Hellwig 2021-12-14 987
2dc807b37b7b8c arch/x86/kernel/setup.c Yinghai Lu 2008-07-08 988 if (mtrr_trim_uncached_memory(max_pfn))
0c6fc11ac343c8 arch/x86/kernel/setup.c Ingo Molnar 2017-01-28 989 max_pfn = e820__end_of_ram_pfn();
76c324182bbd29 arch/x86/kernel/setup_32.c Yinghai Lu 2008-03-23 990
8dd3303001976a arch/x86/kernel/setup.c Igor Mammedov 2015-12-04 991 max_possible_pfn = max_pfn;
8dd3303001976a arch/x86/kernel/setup.c Igor Mammedov 2015-12-04 992
99c13b8c8896d7 arch/x86/kernel/setup.c Mikulas Patocka 2017-07-04 993 /*
99c13b8c8896d7 arch/x86/kernel/setup.c Mikulas Patocka 2017-07-04 994 * This call is required when the CPU does not support PAT. If
99c13b8c8896d7 arch/x86/kernel/setup.c Mikulas Patocka 2017-07-04 995 * mtrr_bp_init() invoked it already via pat_init() the call has no
99c13b8c8896d7 arch/x86/kernel/setup.c Mikulas Patocka 2017-07-04 996 * effect.
99c13b8c8896d7 arch/x86/kernel/setup.c Mikulas Patocka 2017-07-04 997 */
99c13b8c8896d7 arch/x86/kernel/setup.c Mikulas Patocka 2017-07-04 998 init_cache_modes();
99c13b8c8896d7 arch/x86/kernel/setup.c Mikulas Patocka 2017-07-04 999
c7d2361f7524f3 arch/x86/kernel/setup.c Thomas Garnier 2016-08-09 1000 /*
c7d2361f7524f3 arch/x86/kernel/setup.c Thomas Garnier 2016-08-09 1001 * Define random base addresses for memory sections after max_pfn is
c7d2361f7524f3 arch/x86/kernel/setup.c Thomas Garnier 2016-08-09 1002 * defined and before each memory section base is used.
c7d2361f7524f3 arch/x86/kernel/setup.c Thomas Garnier 2016-08-09 1003 */
c7d2361f7524f3 arch/x86/kernel/setup.c Thomas Garnier 2016-08-09 1004 kernel_randomize_memory();
c7d2361f7524f3 arch/x86/kernel/setup.c Thomas Garnier 2016-08-09 1005
:::::: The code at line 984 was first introduced by commit
:::::: 093af8d7f0ba3c6be1485973508584ef081e9f93 x86_32: trim memory by updating e820
:::::: TO: Yinghai Lu <Yinghai.Lu(a)Sun.COM>
:::::: CC: Ingo Molnar <mingo(a)elte.hu>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[ardb:for-kernelci 2/2] <instantiation>:4:12: error: operand must be a register in range [r0, r14]
by kernel test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git for-kernelci
head: e87ef81a2a09f584487c502ff4dfe618b298000f
commit: e87ef81a2a09f584487c502ff4dfe618b298000f [2/2] fixup! ARM: assembler: use explicit relocation for ADR with a function symbol
config: arm-randconfig-r031-20211214 (https://download.01.org/0day-ci/archive/20211215/202112150319.rZuO4LiO-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b6a2ddb6c8ac29412b1361810972e15221fa021c)
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/ardb/linux.git/commit/?id...
git remote add ardb git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git
git fetch --no-tags ardb for-kernelci
git checkout e87ef81a2a09f584487c502ff4dfe618b298000f
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash
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 >>):
>> <instantiation>:4:12: error: operand must be a register in range [r0, r14]
sub.w r9, pc, #4
^
arch/arm/kernel/entry-armv.S:490:2: note: while in macro instantiation
badr r9, ret_from_exception
^
>> <instantiation>:4:12: error: operand must be a register in range [r0, r14]
sub.w lr, pc, #4
^
arch/arm/kernel/entry-armv.S:509:2: note: while in macro instantiation
badr lr, __und_usr_fault_32
^
>> <instantiation>:4:12: error: operand must be a register in range [r0, r14]
sub.w lr, pc, #4
^
arch/arm/kernel/entry-armv.S:727:2: note: while in macro instantiation
badr lr, ret_from_exception
^
--
>> <instantiation>:4:12: error: operand must be a register in range [r0, r14]
sub.w lr, pc, #4
^
<instantiation>:6:2: note: while in macro instantiation
badr lr, __ret_fast_syscall @ return address
^
arch/arm/kernel/entry-common.S:255:2: note: while in macro instantiation
invoke_syscall tbl, scno, r10, __ret_fast_syscall
^
>> <instantiation>:4:12: error: operand must be a register in range [r0, r14]
sub.w lr, pc, #4
^
<instantiation>:6:2: note: while in macro instantiation
badr lr, __sys_trace_return @ return address
^
arch/arm/kernel/entry-common.S:289:2: note: while in macro instantiation
invoke_syscall tbl, scno, r10, __sys_trace_return, reload=1
^
--
>> <instantiation>:4:12: error: operand must be a register in range [r0, r14]
sub.w lr, pc, #4
^
arch/arm/kernel/sleep.S:92:2: note: while in macro instantiation
badr lr, cpu_suspend_abort
^
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
Re: [PATCH bpf-next 4/5] bpf: remove the cgroup -> bpf header dependecy
by kernel test robot
Hi Jakub,
I love your patch! Yet something to improve:
[auto build test ERROR on bpf-next/master]
url: https://github.com/0day-ci/linux/commits/Jakub-Kicinski/bpf-remove-the-cg...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: s390-randconfig-r023-20211213 (https://download.01.org/0day-ci/archive/20211215/202112150326.PHRPQfmk-lk...)
compiler: s390-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/517f95dd6d9264e4104cfc35eecdd5c12...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jakub-Kicinski/bpf-remove-the-cgroup-bpf-header-dependecy/20211214-074344
git checkout 517f95dd6d9264e4104cfc35eecdd5c1287738ae
# 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=s390 SHELL=/bin/bash
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 >>):
arch/s390/mm/hugetlbpage.c: In function 'hugetlb_get_unmapped_area':
>> arch/s390/mm/hugetlbpage.c:352:16: error: implicit declaration of function 'check_asce_limit'; did you mean 'check_data_rlimit'? [-Werror=implicit-function-declaration]
352 | return check_asce_limit(mm, addr, len);
| ^~~~~~~~~~~~~~~~
| check_data_rlimit
cc1: some warnings being treated as errors
vim +352 arch/s390/mm/hugetlbpage.c
5f490a520bcb393 Gerald Schaefer 2020-01-16 315
5f490a520bcb393 Gerald Schaefer 2020-01-16 316 unsigned long hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
5f490a520bcb393 Gerald Schaefer 2020-01-16 317 unsigned long len, unsigned long pgoff, unsigned long flags)
5f490a520bcb393 Gerald Schaefer 2020-01-16 318 {
5f490a520bcb393 Gerald Schaefer 2020-01-16 319 struct hstate *h = hstate_file(file);
5f490a520bcb393 Gerald Schaefer 2020-01-16 320 struct mm_struct *mm = current->mm;
5f490a520bcb393 Gerald Schaefer 2020-01-16 321 struct vm_area_struct *vma;
5f490a520bcb393 Gerald Schaefer 2020-01-16 322
5f490a520bcb393 Gerald Schaefer 2020-01-16 323 if (len & ~huge_page_mask(h))
5f490a520bcb393 Gerald Schaefer 2020-01-16 324 return -EINVAL;
5f490a520bcb393 Gerald Schaefer 2020-01-16 325 if (len > TASK_SIZE - mmap_min_addr)
5f490a520bcb393 Gerald Schaefer 2020-01-16 326 return -ENOMEM;
5f490a520bcb393 Gerald Schaefer 2020-01-16 327
5f490a520bcb393 Gerald Schaefer 2020-01-16 328 if (flags & MAP_FIXED) {
5f490a520bcb393 Gerald Schaefer 2020-01-16 329 if (prepare_hugepage_range(file, addr, len))
5f490a520bcb393 Gerald Schaefer 2020-01-16 330 return -EINVAL;
5f490a520bcb393 Gerald Schaefer 2020-01-16 331 goto check_asce_limit;
5f490a520bcb393 Gerald Schaefer 2020-01-16 332 }
5f490a520bcb393 Gerald Schaefer 2020-01-16 333
5f490a520bcb393 Gerald Schaefer 2020-01-16 334 if (addr) {
5f490a520bcb393 Gerald Schaefer 2020-01-16 335 addr = ALIGN(addr, huge_page_size(h));
5f490a520bcb393 Gerald Schaefer 2020-01-16 336 vma = find_vma(mm, addr);
5f490a520bcb393 Gerald Schaefer 2020-01-16 337 if (TASK_SIZE - len >= addr && addr >= mmap_min_addr &&
5f490a520bcb393 Gerald Schaefer 2020-01-16 338 (!vma || addr + len <= vm_start_gap(vma)))
5f490a520bcb393 Gerald Schaefer 2020-01-16 339 goto check_asce_limit;
5f490a520bcb393 Gerald Schaefer 2020-01-16 340 }
5f490a520bcb393 Gerald Schaefer 2020-01-16 341
5f490a520bcb393 Gerald Schaefer 2020-01-16 342 if (mm->get_unmapped_area == arch_get_unmapped_area)
5f490a520bcb393 Gerald Schaefer 2020-01-16 343 addr = hugetlb_get_unmapped_area_bottomup(file, addr, len,
5f490a520bcb393 Gerald Schaefer 2020-01-16 344 pgoff, flags);
5f490a520bcb393 Gerald Schaefer 2020-01-16 345 else
5f490a520bcb393 Gerald Schaefer 2020-01-16 346 addr = hugetlb_get_unmapped_area_topdown(file, addr, len,
5f490a520bcb393 Gerald Schaefer 2020-01-16 347 pgoff, flags);
712fa5f294f377e Alexander Gordeev 2020-03-23 348 if (offset_in_page(addr))
5f490a520bcb393 Gerald Schaefer 2020-01-16 349 return addr;
5f490a520bcb393 Gerald Schaefer 2020-01-16 350
5f490a520bcb393 Gerald Schaefer 2020-01-16 351 check_asce_limit:
712fa5f294f377e Alexander Gordeev 2020-03-23 @352 return check_asce_limit(mm, addr, len);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
Re: [PATCH 06/17] fortify: Detect struct member overflows in memcpy() at compile-time
by kernel test robot
Hi Kees,
I love your patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.16-rc5 next-20211213]
[cannot apply to rdma/for-next axboe-block/for-next kvm/queue tip/x86/core mkp-scsi/for-next jejb-scsi/for-next]
[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/Kees-Cook/Enable-strict-compile-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git aa50faff4416c869b52dff68a937c84d29e12f4b
config: i386-randconfig-m021-20211214 (https://download.01.org/0day-ci/archive/20211215/202112150326.Cu6pK9ir-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
New smatch warnings:
drivers/media/usb/pvrusb2/pvrusb2-hdw.c:3289 pvr2_hdw_get_tuner_status() warn: inconsistent indenting
Old smatch warnings:
drivers/media/usb/pvrusb2/pvrusb2-hdw.c:1730 pvr2_hdw_set_streaming() warn: inconsistent indenting
drivers/media/usb/pvrusb2/pvrusb2-hdw.c:3461 pvr2_hdw_cpufw_set_enabled() warn: inconsistent indenting
drivers/media/usb/pvrusb2/pvrusb2-hdw.c:3501 pvr2_hdw_cpufw_get() warn: inconsistent indenting
vim +3289 drivers/media/usb/pvrusb2/pvrusb2-hdw.c
432907f750b27aa drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2008-08-31 3279
432907f750b27aa drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2008-08-31 3280
18103c57b0168eb drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-01-20 3281 /* Return information about the tuner */
18103c57b0168eb drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-01-20 3282 int pvr2_hdw_get_tuner_status(struct pvr2_hdw *hdw,struct v4l2_tuner *vtp)
18103c57b0168eb drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-01-20 3283 {
18103c57b0168eb drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-01-20 3284 LOCK_TAKE(hdw->big_lock); do {
18103c57b0168eb drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-01-20 3285 if (hdw->tuner_signal_stale) {
a51f5000b791003 drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2009-03-06 3286 pvr2_hdw_status_poll(hdw);
18103c57b0168eb drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-01-20 3287 }
18103c57b0168eb drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-01-20 3288 memcpy(vtp,&hdw->tuner_signal_info,sizeof(struct v4l2_tuner));
18103c57b0168eb drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-01-20 @3289 } while (0); LOCK_GIVE(hdw->big_lock);
18103c57b0168eb drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2007-01-20 3290 return 0;
d855497edbfbf9e drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2006-06-26 3291 }
d855497edbfbf9e drivers/media/video/pvrusb2/pvrusb2-hdw.c Mike Isely 2006-06-26 3292
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[ebiederm-user-namespace:signal-for-v5.17 11/12] kernel/fork.c:2123:9: error: use of undeclared label 'bad_fork_cleanup_threadgroup_lock'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git signal-for-v5.17
head: 6b1248798eb6f6d5285db214299996ecc5dc1e6b
commit: 40966e316f86b8cfd83abd31ccb4df729309d3e7 [11/12] kthread: Ensure struct kthread is present for all kthreads
config: arm64-buildonly-randconfig-r001-20211213 (https://download.01.org/0day-ci/archive/20211215/202112150208.ylx9t2Sc-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b6a2ddb6c8ac29412b1361810972e15221fa021c)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.g...
git remote add ebiederm-user-namespace https://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git
git fetch --no-tags ebiederm-user-namespace signal-for-v5.17
git checkout 40966e316f86b8cfd83abd31ccb4df729309d3e7
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash
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 >>):
kernel/fork.c:763:20: warning: no previous prototype for function 'arch_task_cache_init' [-Wmissing-prototypes]
void __init __weak arch_task_cache_init(void) { }
^
kernel/fork.c:763:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init __weak arch_task_cache_init(void) { }
^
static
>> kernel/fork.c:2123:9: error: use of undeclared label 'bad_fork_cleanup_threadgroup_lock'
goto bad_fork_cleanup_threadgroup_lock;
^
1 warning and 1 error generated.
vim +/bad_fork_cleanup_threadgroup_lock +2123 kernel/fork.c
2112
2113 task_io_accounting_init(&p->ioac);
2114 acct_clear_integrals(p);
2115
2116 posix_cputimers_init(&p->posix_cputimers);
2117
2118 p->io_context = NULL;
2119 audit_set_context(p, NULL);
2120 cgroup_fork(p);
2121 if (p->flags & PF_KTHREAD) {
2122 if (!set_kthread_struct(p))
> 2123 goto bad_fork_cleanup_threadgroup_lock;
2124 }
2125 #ifdef CONFIG_NUMA
2126 p->mempolicy = mpol_dup(p->mempolicy);
2127 if (IS_ERR(p->mempolicy)) {
2128 retval = PTR_ERR(p->mempolicy);
2129 p->mempolicy = NULL;
2130 goto bad_fork_cleanup_threadgroup_lock;
2131 }
2132 #endif
2133 #ifdef CONFIG_CPUSETS
2134 p->cpuset_mem_spread_rotor = NUMA_NO_NODE;
2135 p->cpuset_slab_spread_rotor = NUMA_NO_NODE;
2136 seqcount_spinlock_init(&p->mems_allowed_seq, &p->alloc_lock);
2137 #endif
2138 #ifdef CONFIG_TRACE_IRQFLAGS
2139 memset(&p->irqtrace, 0, sizeof(p->irqtrace));
2140 p->irqtrace.hardirq_disable_ip = _THIS_IP_;
2141 p->irqtrace.softirq_enable_ip = _THIS_IP_;
2142 p->softirqs_enabled = 1;
2143 p->softirq_context = 0;
2144 #endif
2145
2146 p->pagefault_disabled = 0;
2147
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week