[jirislaby:devel 61/76] drivers/video/fbdev/core/fbcon.c:3415:17: error: initialization of 'u16 COPYING CREDITS Documentation Kbuild Kconfig LICENSES MAINTAINERS Makefile Next README arch block certs crypto drivers fs include init ipc kernel lib localversion-next mm net samples scripts security sound tools usr virt vc_data long unsigned int, int int {aka 'short unsigned int COPYING CREDITS Documentation Kbuild Kconfig LICENSES MAINTAINERS Makefile Next README arch block certs crypto drivers fs
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head: bf8fd3c80f466d63067fd6a6f31ef0fbb332c20c
commit: 444af40fdc3639563d3eeddd0ac50448c273102f [61/76] tty: vt, con_getxy works with u16 *
config: arm-corgi_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
git checkout 444af40fdc3639563d3eeddd0ac50448c273102f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 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 >>, old ones prefixed by <<):
>> drivers/video/fbdev/core/fbcon.c:3415:17: error: initialization of 'u16 * (*)(struct vc_data *, long unsigned int, int *, int *)' {aka 'short unsigned int * (*)(struct vc_data *, long unsigned int, int *, int *)'} from incompatible pointer type 'u16 * (*)(struct vc_data *, u16 *, int *, int *)' {aka 'short unsigned int * (*)(struct vc_data *, short unsigned int *, int *, int *)'} [-Werror=incompatible-pointer-types]
3415 | .con_getxy = fbcon_getxy,
| ^~~~~~~~~~~
drivers/video/fbdev/core/fbcon.c:3415:17: note: (near initialization for 'fb_con.con_getxy')
drivers/video/fbdev/core/fbcon.c: In function 'fbcon_exit':
drivers/video/fbdev/core/fbcon.c:3650:7: warning: variable 'pending' set but not used [-Wunused-but-set-variable]
3650 | int pending = 0;
| ^~~~~~~
cc1: some warnings being treated as errors
--
drivers/tty/vt/vt.c: In function 'do_update_region':
>> drivers/tty/vt/vt.c:656:43: warning: passing argument 2 of 'vc->vc_sw->con_getxy' makes integer from pointer without a cast [-Wint-conversion]
656 | start = (ulong)vc->vc_sw->con_getxy(vc, (u16 *)start, &nxx, &nyy);
| ^~~~~~~~~~~~
| |
| u16 * {aka short unsigned int *}
drivers/tty/vt/vt.c:656:43: note: expected 'long unsigned int' but argument is of type 'u16 *' {aka 'short unsigned int *'}
drivers/tty/vt/vt.c:683:44: warning: passing argument 2 of 'vc->vc_sw->con_getxy' makes integer from pointer without a cast [-Wint-conversion]
683 | start = (ulong)vc->vc_sw->con_getxy(vc, (u16 *)start, NULL, NULL);
| ^~~~~~~~~~~~
| |
| u16 * {aka short unsigned int *}
drivers/tty/vt/vt.c:683:44: note: expected 'long unsigned int' but argument is of type 'u16 *' {aka 'short unsigned int *'}
vim +3415 drivers/video/fbdev/core/fbcon.c
fe2d70d6f6ff03 drivers/video/fbdev/core/fbcon.c Daniel Vetter 2019-05-28 3389
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3390 /*
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3391 * The console `switch' structure for the frame buffer based console
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3392 */
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3393
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3394 static const struct consw fb_con = {
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3395 .owner = THIS_MODULE,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3396 .con_startup = fbcon_startup,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3397 .con_init = fbcon_init,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3398 .con_deinit = fbcon_deinit,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3399 .con_clear = fbcon_clear,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3400 .con_putc = fbcon_putc,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3401 .con_putcs = fbcon_putcs,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3402 .con_cursor = fbcon_cursor,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3403 .con_scroll = fbcon_scroll,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3404 .con_switch = fbcon_switch,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3405 .con_blank = fbcon_blank,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3406 .con_font_set = fbcon_set_font,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3407 .con_font_get = fbcon_get_font,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3408 .con_font_default = fbcon_set_def_font,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3409 .con_font_copy = fbcon_copy_font,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3410 .con_set_palette = fbcon_set_palette,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3411 .con_scrolldelta = fbcon_scrolldelta,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3412 .con_set_origin = fbcon_set_origin,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3413 .con_invert_region = fbcon_invert_region,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3414 .con_screen_pos = fbcon_screen_pos,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 @3415 .con_getxy = fbcon_getxy,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3416 .con_resize = fbcon_resize,
d219adc1228a38 drivers/video/console/fbcon.c Jesse Barnes 2010-08-02 3417 .con_debug_enter = fbcon_debug_enter,
d219adc1228a38 drivers/video/console/fbcon.c Jesse Barnes 2010-08-02 3418 .con_debug_leave = fbcon_debug_leave,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3419 };
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3420
:::::: The code at line 3415 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c:687:6: warning: variable 'ret' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 69119673bd50b176ded34032fadd41530fb5af21
commit: 1b61de45dfaff00b627e47349a019658e39268b9 drm/amdgpu: add initial VCN2.0 support (v2)
date: 12 months ago
config: ia64-randconfig-r012-20200617 (attached as .config)
compiler: ia64-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
git checkout 1b61de45dfaff00b627e47349a019658e39268b9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
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 >>, old ones prefixed by <<):
drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c: In function 'vcn_v2_0_disable_static_power_gating':
>> drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c:687:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
687 | int ret;
| ^~~
drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c: In function 'vcn_v2_0_enable_static_power_gating':
drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c:736:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
736 | int ret;
| ^~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:53,
from drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c:26:
At top level:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
vim +/ret +687 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c
683
684 static void vcn_v2_0_disable_static_power_gating(struct amdgpu_device *adev)
685 {
686 uint32_t data = 0;
> 687 int ret;
688
689 if (adev->pg_flags & AMD_PG_SUPPORT_VCN) {
690 data = (1 << UVD_PGFSM_CONFIG__UVDM_PWR_CONFIG__SHIFT
691 | 1 << UVD_PGFSM_CONFIG__UVDU_PWR_CONFIG__SHIFT
692 | 2 << UVD_PGFSM_CONFIG__UVDF_PWR_CONFIG__SHIFT
693 | 2 << UVD_PGFSM_CONFIG__UVDC_PWR_CONFIG__SHIFT
694 | 2 << UVD_PGFSM_CONFIG__UVDB_PWR_CONFIG__SHIFT
695 | 2 << UVD_PGFSM_CONFIG__UVDIL_PWR_CONFIG__SHIFT
696 | 2 << UVD_PGFSM_CONFIG__UVDIR_PWR_CONFIG__SHIFT
697 | 2 << UVD_PGFSM_CONFIG__UVDTD_PWR_CONFIG__SHIFT
698 | 2 << UVD_PGFSM_CONFIG__UVDTE_PWR_CONFIG__SHIFT
699 | 2 << UVD_PGFSM_CONFIG__UVDE_PWR_CONFIG__SHIFT
700 | 2 << UVD_PGFSM_CONFIG__UVDW_PWR_CONFIG__SHIFT);
701
702 WREG32_SOC15(VCN, 0, mmUVD_PGFSM_CONFIG, data);
703 SOC15_WAIT_ON_RREG(VCN, 0, mmUVD_PGFSM_STATUS,
704 UVD_PGFSM_STATUS__UVDM_UVDU_PWR_ON, 0xFFFFFF, ret);
705 } else {
706 data = (1 << UVD_PGFSM_CONFIG__UVDM_PWR_CONFIG__SHIFT
707 | 1 << UVD_PGFSM_CONFIG__UVDU_PWR_CONFIG__SHIFT
708 | 1 << UVD_PGFSM_CONFIG__UVDF_PWR_CONFIG__SHIFT
709 | 1 << UVD_PGFSM_CONFIG__UVDC_PWR_CONFIG__SHIFT
710 | 1 << UVD_PGFSM_CONFIG__UVDB_PWR_CONFIG__SHIFT
711 | 1 << UVD_PGFSM_CONFIG__UVDIL_PWR_CONFIG__SHIFT
712 | 1 << UVD_PGFSM_CONFIG__UVDIR_PWR_CONFIG__SHIFT
713 | 1 << UVD_PGFSM_CONFIG__UVDTD_PWR_CONFIG__SHIFT
714 | 1 << UVD_PGFSM_CONFIG__UVDTE_PWR_CONFIG__SHIFT
715 | 1 << UVD_PGFSM_CONFIG__UVDE_PWR_CONFIG__SHIFT
716 | 1 << UVD_PGFSM_CONFIG__UVDW_PWR_CONFIG__SHIFT);
717 WREG32_SOC15(VCN, 0, mmUVD_PGFSM_CONFIG, data);
718 SOC15_WAIT_ON_RREG(VCN, 0, mmUVD_PGFSM_STATUS, 0, 0xFFFFFFFF, ret);
719 }
720
721 /* polling UVD_PGFSM_STATUS to confirm UVDM_PWR_STATUS,
722 * UVDU_PWR_STATUS are 0 (power on) */
723
724 data = RREG32_SOC15(VCN, 0, mmUVD_POWER_STATUS);
725 data &= ~0x103;
726 if (adev->pg_flags & AMD_PG_SUPPORT_VCN)
727 data |= UVD_PGFSM_CONFIG__UVDM_UVDU_PWR_ON |
728 UVD_POWER_STATUS__UVD_PG_EN_MASK;
729
730 WREG32_SOC15(VCN, 0, mmUVD_POWER_STATUS, data);
731 }
732
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_init.c:107:20: warning: initialized field overwritten
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 69119673bd50b176ded34032fadd41530fb5af21
commit: 78c7738211e027f122ada3f59c2c5e8a83ee3c59 drm/amd/display: cleanup of function pointer tables
date: 7 months ago
config: i386-randconfig-s001-20200617 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-rc1-6-g78f577f8-dirty
git checkout 78c7738211e027f122ada3f59c2c5e8a83ee3c59
# save the attached .config to linux build tree
make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
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 >>, old ones prefixed by <<):
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_init.c:107:20: warning: initialized field overwritten [-Woverride-init]
107 | .dsc_pg_control = dcn20_dsc_pg_control,
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_init.c:107:20: note: (near initialization for 'dcn20_funcs.dsc_pg_control')
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_init.c:119:6: warning: no previous prototype for 'dcn20_hw_sequencer_construct' [-Wmissing-prototypes]
119 | void dcn20_hw_sequencer_construct(struct dc *dc)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_init.c:26:
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:124:22: warning: 'DP_DVI_CONVERTER_ID_4' defined but not used [-Wunused-const-variable=]
124 | static const uint8_t DP_DVI_CONVERTER_ID_4[] = "m2DVIa";
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:122:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_3' defined but not used [-Wunused-const-variable=]
122 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_3[] = "dnomlA";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_2' defined but not used [-Wunused-const-variable=]
120 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_2[] = "sivarT";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:34,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_init.c:26:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
vim +107 drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_init.c
29
30 static const struct hw_sequencer_funcs dcn20_funcs = {
31 .program_gamut_remap = dcn10_program_gamut_remap,
32 .init_hw = dcn10_init_hw,
33 .init_pipes = dcn10_init_pipes,
34 .apply_ctx_to_hw = dce110_apply_ctx_to_hw,
35 .apply_ctx_for_surface = NULL,
36 .program_front_end_for_ctx = dcn20_program_front_end_for_ctx,
37 .update_plane_addr = dcn20_update_plane_addr,
38 .plane_atomic_disconnect = dcn10_plane_atomic_disconnect,
39 .update_dchub = dcn10_update_dchub,
40 .update_mpcc = dcn20_update_mpcc,
41 .update_pending_status = dcn10_update_pending_status,
42 .set_input_transfer_func = dcn20_set_input_transfer_func,
43 .set_output_transfer_func = dcn20_set_output_transfer_func,
44 .program_output_csc = dcn20_program_output_csc,
45 .power_down = dce110_power_down,
46 .enable_accelerated_mode = dce110_enable_accelerated_mode,
47 .enable_timing_synchronization = dcn10_enable_timing_synchronization,
48 .enable_per_frame_crtc_position_reset = dcn10_enable_per_frame_crtc_position_reset,
49 .update_info_frame = dce110_update_info_frame,
50 .send_immediate_sdp_message = dcn10_send_immediate_sdp_message,
51 .enable_stream = dcn20_enable_stream,
52 .disable_stream = dce110_disable_stream,
53 .unblank_stream = dcn20_unblank_stream,
54 .blank_stream = dce110_blank_stream,
55 .enable_audio_stream = dce110_enable_audio_stream,
56 .disable_audio_stream = dce110_disable_audio_stream,
57 .enable_display_power_gating = dcn10_dummy_display_power_gating,
58 .disable_plane = dcn20_disable_plane,
59 .blank_pixel_data = dcn20_blank_pixel_data,
60 .pipe_control_lock = dcn20_pipe_control_lock,
61 .pipe_control_lock_global = dcn20_pipe_control_lock_global,
62 .prepare_bandwidth = dcn20_prepare_bandwidth,
63 .optimize_bandwidth = dcn20_optimize_bandwidth,
64 .update_bandwidth = dcn20_update_bandwidth,
65 .reset_hw_ctx_wrap = dcn20_reset_hw_ctx_wrap,
66 .enable_stream_timing = dcn20_enable_stream_timing,
67 .set_drr = dcn10_set_drr,
68 .get_position = dcn10_get_position,
69 .set_static_screen_control = dcn10_set_static_screen_control,
70 .setup_stereo = dcn10_setup_stereo,
71 .set_avmute = dce110_set_avmute,
72 .log_hw_state = dcn10_log_hw_state,
73 .get_hw_state = dcn10_get_hw_state,
74 .clear_status_bits = dcn10_clear_status_bits,
75 .wait_for_mpcc_disconnect = dcn10_wait_for_mpcc_disconnect,
76 .edp_backlight_control = dce110_edp_backlight_control,
77 .edp_power_control = dce110_edp_power_control,
78 .edp_wait_for_hpd_ready = dce110_edp_wait_for_hpd_ready,
79 .set_cursor_position = dcn10_set_cursor_position,
80 .set_cursor_attribute = dcn10_set_cursor_attribute,
81 .set_cursor_sdr_white_level = dcn10_set_cursor_sdr_white_level,
82 .disable_stream_gating = dcn20_disable_stream_gating,
83 .enable_stream_gating = dcn20_enable_stream_gating,
84 .setup_periodic_interrupt = dcn10_setup_periodic_interrupt,
85 .setup_vupdate_interrupt = dcn20_setup_vupdate_interrupt,
86 .set_clock = dcn10_set_clock,
87 .get_clock = dcn10_get_clock,
88 .did_underflow_occur = dcn10_did_underflow_occur,
89 .init_blank = dcn20_init_blank,
90 .disable_vga = dcn20_disable_vga,
91 .bios_golden_init = dcn10_bios_golden_init,
92 .plane_atomic_disable = dcn20_plane_atomic_disable,
93 .plane_atomic_power_down = dcn10_plane_atomic_power_down,
94 .enable_power_gating_plane = dcn20_enable_power_gating_plane,
95 .dpp_pg_control = dcn20_dpp_pg_control,
96 .hubp_pg_control = dcn20_hubp_pg_control,
97 .dsc_pg_control = NULL,
98 .program_triplebuffer = dcn20_program_triple_buffer,
99 .enable_writeback = dcn20_enable_writeback,
100 .disable_writeback = dcn20_disable_writeback,
101 .update_odm = dcn20_update_odm,
102 .dmdata_status_done = dcn20_dmdata_status_done,
103 .program_dmdata_engine = dcn20_program_dmdata_engine,
104 .init_sys_ctx = dcn20_init_sys_ctx,
105 .init_vm_ctx = dcn20_init_vm_ctx,
106 .set_flip_control_gsl = dcn20_set_flip_control_gsl,
> 107 .dsc_pg_control = dcn20_dsc_pg_control,
108 .get_surface_visual_confirm_color = dcn10_get_surface_visual_confirm_color,
109 .get_hdr_visual_confirm_color = dcn10_get_hdr_visual_confirm_color,
110 .set_hdr_multiplier = dcn10_set_hdr_multiplier,
111 .verify_allow_pstate_change_high = dcn10_verify_allow_pstate_change_high,
112 .wait_for_blank_complete = dcn20_wait_for_blank_complete,
113 .dccg_init = dcn20_dccg_init,
114 .set_blend_lut = dcn20_set_blend_lut,
115 .set_shaper_3dlut = dcn20_set_shaper_3dlut,
116 .get_vupdate_offset_from_vsync = dcn10_get_vupdate_offset_from_vsync,
117 };
118
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
drivers/infiniband/hw/mlx5/qp.c:2904:3: note: in expansion of macro 'mlx5_ib_dbg'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 69119673bd50b176ded34032fadd41530fb5af21
commit: e383085c24255821e79d3c2aa6302d804b6a1c48 RDMA/mlx5: Set ECE options during QP create
date: 3 weeks ago
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
git checkout e383085c24255821e79d3c2aa6302d804b6a1c48
# save the attached .config to linux build tree
make W=1 ARCH=i386
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 >>, old ones prefixed by <<):
In file included from include/linux/printk.h:326,
from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/linux/module.h:12,
from drivers/infiniband/hw/mlx5/qp.c:33:
drivers/infiniband/hw/mlx5/qp.c: In function 'check_ucmd_data':
>> drivers/infiniband/hw/mlx5/mlx5_ib.h:56:31: warning: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
56 | dev_dbg(&(_dev)->ib_dev.dev, "%s:%d:(pid %d): " format, __func__, | ^~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:125:15: note: in definition of macro '__dynamic_func_call'
125 | func(&id, ##__VA_ARGS__); | ^~~~~~~~~~~
include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
157 | _dynamic_func_call(fmt,__dynamic_dev_dbg, | ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:114:2: note: in expansion of macro 'dynamic_dev_dbg'
114 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
include/linux/dev_printk.h:114:23: note: in expansion of macro 'dev_fmt'
114 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
>> drivers/infiniband/hw/mlx5/mlx5_ib.h:56:2: note: in expansion of macro 'dev_dbg'
56 | dev_dbg(&(_dev)->ib_dev.dev, "%s:%d:(pid %d): " format, __func__, | ^~~~~~~
>> drivers/infiniband/hw/mlx5/qp.c:2904:3: note: in expansion of macro 'mlx5_ib_dbg'
2904 | mlx5_ib_dbg(
| ^~~~~~~~~~~
drivers/infiniband/hw/mlx5/qp.c:2906:37: note: format string is defined here
2906 | "udata is not cleared, inlen = %lu, ucmd = %lu, last = %lu, size = %lun",
| ~~^
| |
| long unsigned int
| %u
In file included from include/linux/printk.h:326,
from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/linux/module.h:12,
from drivers/infiniband/hw/mlx5/qp.c:33:
drivers/infiniband/hw/mlx5/mlx5_ib.h:56:31: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
56 | dev_dbg(&(_dev)->ib_dev.dev, "%s:%d:(pid %d): " format, __func__, | ^~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:125:15: note: in definition of macro '__dynamic_func_call'
125 | func(&id, ##__VA_ARGS__); | ^~~~~~~~~~~
include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
157 | _dynamic_func_call(fmt,__dynamic_dev_dbg, | ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:114:2: note: in expansion of macro 'dynamic_dev_dbg'
114 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
include/linux/dev_printk.h:114:23: note: in expansion of macro 'dev_fmt'
114 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
>> drivers/infiniband/hw/mlx5/mlx5_ib.h:56:2: note: in expansion of macro 'dev_dbg'
56 | dev_dbg(&(_dev)->ib_dev.dev, "%s:%d:(pid %d): " format, __func__, | ^~~~~~~
>> drivers/infiniband/hw/mlx5/qp.c:2904:3: note: in expansion of macro 'mlx5_ib_dbg'
2904 | mlx5_ib_dbg(
| ^~~~~~~~~~~
drivers/infiniband/hw/mlx5/qp.c:2906:49: note: format string is defined here
2906 | "udata is not cleared, inlen = %lu, ucmd = %lu, last = %lu, size = %lun",
| ~~^
| |
| long unsigned int
| %u
In file included from include/linux/printk.h:326,
from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/linux/module.h:12,
from drivers/infiniband/hw/mlx5/qp.c:33:
drivers/infiniband/hw/mlx5/mlx5_ib.h:56:31: warning: format '%lu' expects argument of type 'long unsigned int', but argument 9 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
56 | dev_dbg(&(_dev)->ib_dev.dev, "%s:%d:(pid %d): " format, __func__, | ^~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:125:15: note: in definition of macro '__dynamic_func_call'
125 | func(&id, ##__VA_ARGS__); | ^~~~~~~~~~~
include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
157 | _dynamic_func_call(fmt,__dynamic_dev_dbg, | ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:114:2: note: in expansion of macro 'dynamic_dev_dbg'
114 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
include/linux/dev_printk.h:114:23: note: in expansion of macro 'dev_fmt'
114 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
>> drivers/infiniband/hw/mlx5/mlx5_ib.h:56:2: note: in expansion of macro 'dev_dbg'
56 | dev_dbg(&(_dev)->ib_dev.dev, "%s:%d:(pid %d): " format, __func__, | ^~~~~~~
>> drivers/infiniband/hw/mlx5/qp.c:2904:3: note: in expansion of macro 'mlx5_ib_dbg'
2904 | mlx5_ib_dbg(
| ^~~~~~~~~~~
drivers/infiniband/hw/mlx5/qp.c:2906:61: note: format string is defined here
2906 | "udata is not cleared, inlen = %lu, ucmd = %lu, last = %lu, size = %lun",
| ~~^
| |
| long unsigned int
| %u
In file included from include/linux/printk.h:326,
from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/linux/module.h:12,
from drivers/infiniband/hw/mlx5/qp.c:33:
drivers/infiniband/hw/mlx5/mlx5_ib.h:56:31: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
56 | dev_dbg(&(_dev)->ib_dev.dev, "%s:%d:(pid %d): " format, __func__, | ^~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:125:15: note: in definition of macro '__dynamic_func_call'
125 | func(&id, ##__VA_ARGS__); | ^~~~~~~~~~~
include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
157 | _dynamic_func_call(fmt,__dynamic_dev_dbg, | ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:114:2: note: in expansion of macro 'dynamic_dev_dbg'
114 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
include/linux/dev_printk.h:114:23: note: in expansion of macro 'dev_fmt'
114 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
>> drivers/infiniband/hw/mlx5/mlx5_ib.h:56:2: note: in expansion of macro 'dev_dbg'
56 | dev_dbg(&(_dev)->ib_dev.dev, "%s:%d:(pid %d): " format, __func__, | ^~~~~~~
>> drivers/infiniband/hw/mlx5/qp.c:2904:3: note: in expansion of macro 'mlx5_ib_dbg'
2904 | mlx5_ib_dbg(
| ^~~~~~~~~~~
drivers/infiniband/hw/mlx5/qp.c:2906:73: note: format string is defined here
2906 | "udata is not cleared, inlen = %lu, ucmd = %lu, last = %lu, size = %lun",
| ~~^
| |
| long unsigned int
| %u
vim +/mlx5_ib_dbg +2904 drivers/infiniband/hw/mlx5/qp.c
2867
2868 static int check_ucmd_data(struct mlx5_ib_dev *dev,
2869 struct mlx5_create_qp_params *params)
2870 {
2871 struct ib_qp_init_attr *attr = params->attr;
2872 struct ib_udata *udata = params->udata;
2873 size_t size, last;
2874 int ret;
2875
2876 if (params->is_rss_raw)
2877 /*
2878 * These QPs don't have "reserved" field in their
2879 * create_qp input struct, so their data is always valid.
2880 */
2881 last = sizeof(struct mlx5_ib_create_qp_rss);
2882 else
2883 /* IB_QPT_RAW_PACKET and IB_QPT_DRIVER don't have ECE data */
2884 switch (attr->qp_type) {
2885 case IB_QPT_DRIVER:
2886 case IB_QPT_RAW_PACKET:
2887 last = offsetof(struct mlx5_ib_create_qp, ece_options);
2888 break;
2889 default:
2890 last = offsetof(struct mlx5_ib_create_qp, reserved);
2891 }
2892
2893 if (udata->inlen <= last)
2894 return 0;
2895
2896 /*
2897 * User provides different create_qp structures based on the
2898 * flow and we need to know if he cleared memory after our
2899 * struct create_qp ends.
2900 */
2901 size = udata->inlen - last;
2902 ret = ib_is_udata_cleared(params->udata, last, size);
2903 if (!ret)
> 2904 mlx5_ib_dbg(
2905 dev,
2906 "udata is not cleared, inlen = %lu, ucmd = %lu, last = %lu, size = %lu\n",
2907 udata->inlen, params->ucmd_size, last, size);
2908 return ret ? 0 : -EINVAL;
2909 }
2910
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[linux-next:master 831/2089] drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1093:52: sparse: sparse: incorrect type in assignment (different base types)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 5fcb9628fd1227a5f11d87171cb1b8b5c414d9d9
commit: b455159c053130d0658e9e7f8cb61e9bf6603f22 [831/2089] drm/amdgpu/powerplay: add initial swSMU support for sienna_cichlid (v2)
config: i386-randconfig-s001-20200617 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-rc1-6-g78f577f8-dirty
git checkout b455159c053130d0658e9e7f8cb61e9bf6603f22
# save the attached .config to linux build tree
make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1093:52: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] MinClock @@ got restricted __le16 [usertype] @@
>> drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1093:52: sparse: expected unsigned short [usertype] MinClock
>> drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1093:52: sparse: got restricted __le16 [usertype]
>> drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1097:52: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] MaxClock @@ got restricted __le16 [usertype] @@
>> drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1097:52: sparse: expected unsigned short [usertype] MaxClock
drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1097:52: sparse: got restricted __le16 [usertype]
>> drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1101:51: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] MinUclk @@ got restricted __le16 [usertype] @@
>> drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1101:51: sparse: expected unsigned short [usertype] MinUclk
drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1101:51: sparse: got restricted __le16 [usertype]
>> drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1105:51: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] MaxUclk @@ got restricted __le16 [usertype] @@
>> drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1105:51: sparse: expected unsigned short [usertype] MaxUclk
drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1105:51: sparse: got restricted __le16 [usertype]
drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1114:52: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] MinClock @@ got restricted __le16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1114:52: sparse: expected unsigned short [usertype] MinClock
drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1114:52: sparse: got restricted __le16 [usertype]
drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1118:52: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] MaxClock @@ got restricted __le16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1118:52: sparse: expected unsigned short [usertype] MaxClock
drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1118:52: sparse: got restricted __le16 [usertype]
drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1122:51: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] MinUclk @@ got restricted __le16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1122:51: sparse: expected unsigned short [usertype] MinUclk
drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1122:51: sparse: got restricted __le16 [usertype]
drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1126:51: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] MaxUclk @@ got restricted __le16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1126:51: sparse: expected unsigned short [usertype] MaxUclk
drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1126:51: sparse: got restricted __le16 [usertype]
vim +1093 drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c
1076
1077 static int sienna_cichlid_set_watermarks_table(struct smu_context *smu,
1078 void *watermarks, struct
1079 dm_pp_wm_sets_with_clock_ranges_soc15
1080 *clock_ranges)
1081 {
1082 int i;
1083 Watermarks_t *table = watermarks;
1084
1085 if (!table || !clock_ranges)
1086 return -EINVAL;
1087
1088 if (clock_ranges->num_wm_dmif_sets > 4 ||
1089 clock_ranges->num_wm_mcif_sets > 4)
1090 return -EINVAL;
1091
1092 for (i = 0; i < clock_ranges->num_wm_dmif_sets; i++) {
> 1093 table->WatermarkRow[1][i].MinClock =
1094 cpu_to_le16((uint16_t)
1095 (clock_ranges->wm_dmif_clocks_ranges[i].wm_min_dcfclk_clk_in_khz /
1096 1000));
> 1097 table->WatermarkRow[1][i].MaxClock =
1098 cpu_to_le16((uint16_t)
1099 (clock_ranges->wm_dmif_clocks_ranges[i].wm_max_dcfclk_clk_in_khz /
1100 1000));
> 1101 table->WatermarkRow[1][i].MinUclk =
1102 cpu_to_le16((uint16_t)
1103 (clock_ranges->wm_dmif_clocks_ranges[i].wm_min_mem_clk_in_khz /
1104 1000));
> 1105 table->WatermarkRow[1][i].MaxUclk =
1106 cpu_to_le16((uint16_t)
1107 (clock_ranges->wm_dmif_clocks_ranges[i].wm_max_mem_clk_in_khz /
1108 1000));
1109 table->WatermarkRow[1][i].WmSetting = (uint8_t)
1110 clock_ranges->wm_dmif_clocks_ranges[i].wm_set_id;
1111 }
1112
1113 for (i = 0; i < clock_ranges->num_wm_mcif_sets; i++) {
1114 table->WatermarkRow[0][i].MinClock =
1115 cpu_to_le16((uint16_t)
1116 (clock_ranges->wm_mcif_clocks_ranges[i].wm_min_socclk_clk_in_khz /
1117 1000));
1118 table->WatermarkRow[0][i].MaxClock =
1119 cpu_to_le16((uint16_t)
1120 (clock_ranges->wm_mcif_clocks_ranges[i].wm_max_socclk_clk_in_khz /
1121 1000));
1122 table->WatermarkRow[0][i].MinUclk =
1123 cpu_to_le16((uint16_t)
1124 (clock_ranges->wm_mcif_clocks_ranges[i].wm_min_mem_clk_in_khz /
1125 1000));
1126 table->WatermarkRow[0][i].MaxUclk =
1127 cpu_to_le16((uint16_t)
1128 (clock_ranges->wm_mcif_clocks_ranges[i].wm_max_mem_clk_in_khz /
1129 1000));
1130 table->WatermarkRow[0][i].WmSetting = (uint8_t)
1131 clock_ranges->wm_mcif_clocks_ranges[i].wm_set_id;
1132 }
1133
1134 return 0;
1135 }
1136
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[linux-next:master 685/2089] drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:679:12: warning: variable 'temp' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 5fcb9628fd1227a5f11d87171cb1b8b5c414d9d9
commit: 84034ad4c0c0813c1350b43087eed036066edd5a [685/2089] drm/amd/display: combine public interfaces into single header
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
git checkout 84034ad4c0c0813c1350b43087eed036066edd5a
# save the attached .config to linux build tree
make W=1 ARCH=i386
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 >>, old ones prefixed by <<):
In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/dmub_srv.h:67,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:33:
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
>> drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:679:12: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
679 | uint64_t temp;
| ^~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: At top level:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:699:6: warning: no previous prototype for 'amdgpu_dm_audio_eld_notify' [-Wmissing-prototypes]
699 | void amdgpu_dm_audio_eld_notify(struct amdgpu_device *adev, int pin)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1579:16: warning: no previous prototype for 'amdgpu_dm_commit_zero_streams' [-Wmissing-prototypes]
1579 | enum dc_status amdgpu_dm_commit_zero_streams(struct dc *dc)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:2700:1: warning: no previous prototype for 'dm_atomic_get_new_state' [-Wmissing-prototypes]
2700 | dm_atomic_get_new_state(struct drm_atomic_state *state)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:2718:1: warning: no previous prototype for 'dm_atomic_get_old_state' [-Wmissing-prototypes]
2718 | dm_atomic_get_old_state(struct drm_atomic_state *state)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'dm_update_mst_vcpi_slots_for_dsc':
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5449:46: warning: variable 'old_con_state' set but not used [-Wunused-but-set-variable]
5449 | struct drm_connector_state *new_con_state, *old_con_state;
| ^~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: At top level:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5542:6: warning: no previous prototype for 'dm_drm_plane_destroy_state' [-Wmissing-prototypes]
5542 | void dm_drm_plane_destroy_state(struct drm_plane *plane,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'amdgpu_dm_commit_cursors':
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:6788:44: warning: variable 'new_plane_state' set but not used [-Wunused-but-set-variable]
6788 | struct drm_plane_state *old_plane_state, *new_plane_state;
| ^~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:86:
At top level:
drivers/gpu/drm/amd/amdgpu/../include/vega10_ip_offset.h:208:29: warning: 'FUSE_BASE' defined but not used [-Wunused-const-variable=]
208 | static const struct IP_BASE FUSE_BASE = { { { { 0x00017400, 0, 0, 0, 0 } },
| ^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/vega10_ip_offset.h:203:29: warning: 'CLK_BASE' defined but not used [-Wunused-const-variable=]
203 | static const struct IP_BASE CLK_BASE = { { { { 0x00016C00, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/vega10_ip_offset.h:198:29: warning: 'PWR_BASE' defined but not used [-Wunused-const-variable=]
198 | static const struct IP_BASE PWR_BASE = { { { { 0x00016A00, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/vega10_ip_offset.h:193:29: warning: 'SMUIO_BASE' defined but not used [-Wunused-const-variable=]
193 | static const struct IP_BASE SMUIO_BASE = { { { { 0x00016800, 0, 0, 0, 0 } },
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/vega10_ip_offset.h:188:29: warning: 'THM_BASE' defined but not used [-Wunused-const-variable=]
188 | static const struct IP_BASE THM_BASE = { { { { 0x00016600, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/vega10_ip_offset.h:183:29: warning: 'UMC_BASE' defined but not used [-Wunused-const-variable=]
183 | static const struct IP_BASE UMC_BASE = { { { { 0x00014000, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/vega10_ip_offset.h:178:29: warning: 'XDMA_BASE' defined but not used [-Wunused-const-variable=]
178 | static const struct IP_BASE XDMA_BASE = { { { { 0x00003400, 0, 0, 0, 0 } },
| ^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/vega10_ip_offset.h:173:29: warning: 'SDMA1_BASE' defined but not used [-Wunused-const-variable=]
173 | static const struct IP_BASE SDMA1_BASE = { { { { 0x00001460, 0, 0, 0, 0 } },
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/vega10_ip_offset.h:168:29: warning: 'SDMA0_BASE' defined but not used [-Wunused-const-variable=]
168 | static const struct IP_BASE SDMA0_BASE = { { { { 0x00001260, 0, 0, 0, 0 } },
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/vega10_ip_offset.h:163:29: warning: 'OSSSYS_BASE' defined but not used [-Wunused-const-variable=]
163 | static const struct IP_BASE OSSSYS_BASE = { { { { 0x000010A0, 0, 0, 0, 0 } },
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/vega10_ip_offset.h:158:29: warning: 'HDP_BASE' defined but not used [-Wunused-const-variable=]
158 | static const struct IP_BASE HDP_BASE = { { { { 0x00000F20, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/vega10_ip_offset.h:153:29: warning: 'RSMU_BASE' defined but not used [-Wunused-const-variable=]
153 | static const struct IP_BASE RSMU_BASE = { { { { 0x00012000, 0, 0, 0, 0 } },
| ^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/vega10_ip_offset.h:148:29: warning: 'MMHUB_BASE' defined but not used [-Wunused-const-variable=]
148 | static const struct IP_BASE MMHUB_BASE = { { { { 0x0001A000, 0, 0, 0, 0 } },
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/vega10_ip_offset.h:143:29: warning: 'GC_BASE' defined but not used [-Wunused-const-variable=]
143 | static const struct IP_BASE GC_BASE = { { { { 0x00002000, 0x0000A000, 0, 0, 0 } },
| ^~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/vega10_ip_offset.h:138:29: warning: 'VCE_BASE' defined but not used [-Wunused-const-variable=]
138 | static const struct IP_BASE VCE_BASE = { { { { 0x00007E00, 0x00048800, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/vega10_ip_offset.h:133:29: warning: 'ATHUB_BASE' defined but not used [-Wunused-const-variable=]
133 | static const struct IP_BASE ATHUB_BASE = { { { { 0x00000C20, 0, 0, 0, 0 } },
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/vega10_ip_offset.h:128:29: warning: 'IOHC_BASE' defined but not used [-Wunused-const-variable=]
128 | static const struct IP_BASE IOHC_BASE = { { { { 0x00010000, 0, 0, 0, 0 } },
| ^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/vega10_ip_offset.h:123:29: warning: 'L2IMU_BASE' defined but not used [-Wunused-const-variable=]
123 | static const struct IP_BASE L2IMU_BASE = { { { { 0x00007DC0, 0, 0, 0, 0 } },
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/vega10_ip_offset.h:118:29: warning: 'SYSTEMHUB_BASE' defined but not used [-Wunused-const-variable=]
118 | static const struct IP_BASE SYSTEMHUB_BASE = { { { { 0x00000EA0, 0, 0, 0, 0 } },
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/vega10_ip_offset.h:113:29: warning: 'ISP_BASE' defined but not used [-Wunused-const-variable=]
113 | static const struct IP_BASE ISP_BASE = { { { { 0x00018000, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/vega10_ip_offset.h:108:29: warning: 'DFX_BASE' defined but not used [-Wunused-const-variable=]
108 | static const struct IP_BASE DFX_BASE = { { { { 0x00000580, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/vega10_ip_offset.h:103:29: warning: 'DFX_DAP_BASE' defined but not used [-Wunused-const-variable=]
103 | static const struct IP_BASE DFX_DAP_BASE = { { { { 0x000005A0, 0, 0, 0, 0 } },
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/vega10_ip_offset.h:98:29: warning: 'DBGU_IO_BASE' defined but not used [-Wunused-const-variable=]
98 | static const struct IP_BASE DBGU_IO_BASE = { { { { 0x000001E0, 0, 0, 0, 0 } },
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/vega10_ip_offset.h:93:29: warning: 'DBGU_NBIO_BASE' defined but not used [-Wunused-const-variable=]
93 | static const struct IP_BASE DBGU_NBIO_BASE = { { { { 0x000001C0, 0, 0, 0, 0 } },
--
In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/dmub_srv.h:67,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:35:
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
>> drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:679:12: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
679 | uint64_t temp;
| ^~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:31:
At top level:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:190:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
190 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:30:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
--
In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/dmub_srv.h:67,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:28:
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
>> drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:679:12: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
679 | uint64_t temp;
| ^~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:86,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:30:
At top level:
drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/dpp.h:50:42: warning: 'dpp_input_csc_matrix' defined but not used [-Wunused-const-variable=]
50 | static const struct dpp_input_csc_matrix dpp_input_csc_matrix[] = {
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:30:
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:124:22: warning: 'DP_DVI_CONVERTER_ID_4' defined but not used [-Wunused-const-variable=]
124 | static const uint8_t DP_DVI_CONVERTER_ID_4[] = "m2DVIa";
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:122:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_3' defined but not used [-Wunused-const-variable=]
122 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_3[] = "dnomlA";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_2' defined but not used [-Wunused-const-variable=]
120 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_2[] = "sivarT";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_link.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:26:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
--
In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/dmub_srv.h:67,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c:28:
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
>> drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:679:12: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
679 | uint64_t temp;
| ^~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c: In function 'calculate_16_bit_backlight_from_pwm':
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c:54:11: warning: variable 'bl_pwm_cntl' set but not used [-Wunused-but-set-variable]
54 | uint32_t bl_pwm_cntl, bl_pwm, fractional_duty_cycle_en;
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c:53:11: warning: variable 'pwm_period_cntl' set but not used [-Wunused-but-set-variable]
53 | uint32_t pwm_period_cntl, bl_period, bl_int_count;
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c: At top level:
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c:98:10: warning: no previous prototype for 'dce_panel_cntl_hw_init' [-Wmissing-prototypes]
98 | uint32_t dce_panel_cntl_hw_init(struct panel_cntl *panel_cntl)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c:158:6: warning: no previous prototype for 'dce_is_panel_backlight_on' [-Wmissing-prototypes]
158 | bool dce_is_panel_backlight_on(struct panel_cntl *panel_cntl)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c:168:6: warning: no previous prototype for 'dce_is_panel_powered_on' [-Wmissing-prototypes]
168 | bool dce_is_panel_powered_on(struct panel_cntl *panel_cntl)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c:180:6: warning: no previous prototype for 'dce_store_backlight_level' [-Wmissing-prototypes]
180 | void dce_store_backlight_level(struct panel_cntl *panel_cntl)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c:195:6: warning: no previous prototype for 'dce_driver_set_backlight' [-Wmissing-prototypes]
195 | void dce_driver_set_backlight(struct panel_cntl *panel_cntl,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:86,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c:27:
drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/dpp.h:50:42: warning: 'dpp_input_csc_matrix' defined but not used [-Wunused-const-variable=]
50 | static const struct dpp_input_csc_matrix dpp_input_csc_matrix[] = {
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c:27:
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:124:22: warning: 'DP_DVI_CONVERTER_ID_4' defined but not used [-Wunused-const-variable=]
124 | static const uint8_t DP_DVI_CONVERTER_ID_4[] = "m2DVIa";
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:122:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_3' defined but not used [-Wunused-const-variable=]
122 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_3[] = "dnomlA";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: warning: 'DP_VGA_LVDS_CONVERTER_ID_2' defined but not used [-Wunused-const-variable=]
120 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_2[] = "sivarT";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:37,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/reg_helper.h:28,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c:26:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
--
In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/dmub_srv.h:67,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_hubp.c:32:
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
>> drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:679:12: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
679 | uint64_t temp;
| ^~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_hubp.c: At top level:
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_hubp.c:186:6: warning: no previous prototype for 'hubp21_set_viewport' [-Wmissing-prototypes]
186 | void hubp21_set_viewport(
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_hubp.c:228:6: warning: no previous prototype for 'hubp21_set_vm_system_aperture_settings' [-Wmissing-prototypes]
228 | void hubp21_set_vm_system_aperture_settings(struct hubp *hubp,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_hubp.c:251:6: warning: no previous prototype for 'hubp21_validate_dml_output' [-Wmissing-prototypes]
251 | void hubp21_validate_dml_output(struct hubp *hubp,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_hubp.c:667:6: warning: no previous prototype for 'dmcub_PLAT_54186_wa' [-Wmissing-prototypes]
667 | void dmcub_PLAT_54186_wa(struct hubp *hubp, struct surface_flip_registers *flip_regs)
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_hubp.c:700:6: warning: no previous prototype for 'hubp21_program_surface_flip_and_addr' [-Wmissing-prototypes]
700 | bool hubp21_program_surface_flip_and_addr(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_hubp.c:808:6: warning: no previous prototype for 'hubp21_init' [-Wmissing-prototypes]
808 | void hubp21_init(struct hubp *hubp)
| ^~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/mem_input.h:28,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/hubp.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hubp.h:28,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_hubp.c:26:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
..
vim +/temp +679 drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h
670
671 static inline void dmub_rb_flush_pending(const struct dmub_rb *rb)
672 {
673 uint32_t rptr = rb->rptr;
674 uint32_t wptr = rb->wrpt;
675
676 while (rptr != wptr) {
677 uint64_t volatile *data = (uint64_t volatile *)rb->base_address + rptr / sizeof(uint64_t);
678 //uint64_t volatile *p = (uint64_t volatile *)data;
> 679 uint64_t temp;
680 int i;
681
682 for (i = 0; i < DMUB_RB_CMD_SIZE / sizeof(uint64_t); i++)
683 temp = *data++;
684
685 rptr += DMUB_RB_CMD_SIZE;
686 if (rptr >= rb->capacity)
687 rptr %= rb->capacity;
688 }
689 }
690
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c:32:6: warning: no previous prototype for 'is_fru_eeprom_supported'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 69119673bd50b176ded34032fadd41530fb5af21
commit: fabe01d7bbda15ae608fe8fa221b596fe498b037 drm/amdgpu: disabled fru eeprom access
date: 3 months ago
config: ia64-randconfig-r012-20200617 (attached as .config)
compiler: ia64-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
git checkout fabe01d7bbda15ae608fe8fa221b596fe498b037
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
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 >>, old ones prefixed by <<):
>> drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c:32:6: warning: no previous prototype for 'is_fru_eeprom_supported' [-Wmissing-prototypes]
32 | bool is_fru_eeprom_supported(struct amdgpu_device *adev)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c:39:5: warning: no previous prototype for 'amdgpu_fru_read_eeprom' [-Wmissing-prototypes]
39 | int amdgpu_fru_read_eeprom(struct amdgpu_device *adev, uint32_t addrptr,
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c:76:5: warning: no previous prototype for 'amdgpu_fru_get_product_info' [-Wmissing-prototypes]
76 | int amdgpu_fru_get_product_info(struct amdgpu_device *adev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c:23:
drivers/gpu/drm/amd/amdgpu/amdgpu.h:177:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
177 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:53,
from drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c:23:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
vim +/is_fru_eeprom_supported +32 drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c
31
> 32 bool is_fru_eeprom_supported(struct amdgpu_device *adev)
33 {
34 /* TODO: Resolve supported ASIC type */
35
36 return false;
37 }
38
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [PATCH] mm, slab: Use kmem_cache_zalloc() instead of kmem_cache_alloc() with flag GFP_ZERO.
by kernel test robot
Hi Yi,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on mmotm/master]
url: https://github.com/0day-ci/linux/commits/Yi-Wang/mm-slab-Use-kmem_cache_z...
base: git://git.cmpxchg.org/linux-mmotm.git master
config: nds32-defconfig (attached as .config)
compiler: nds32le-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32
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 >>, old ones prefixed by <<):
In file included from include/linux/irq.h:21,
from include/asm-generic/hardirq.h:13,
from ./arch/nds32/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:9,
from include/linux/highmem.h:10,
from include/linux/pagemap.h:11,
from fs//crypto/crypto.c:23:
include/linux/slab.h: In function 'kmem_cache_zalloc':
>> include/linux/slab.h:678:21: error: inlining failed in call to always_inline 'kmem_cache_zalloc': recursive inlining
678 | static inline void *kmem_cache_zalloc(struct kmem_cache *k, gfp_t flags)
| ^~~~~~~~~~~~~~~~~
include/linux/slab.h:680:9: note: called from here
680 | return kmem_cache_zalloc(k, flags);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h: In function 'fscrypt_get_ctx':
>> include/linux/slab.h:678:21: error: inlining failed in call to always_inline 'kmem_cache_zalloc': recursive inlining
678 | static inline void *kmem_cache_zalloc(struct kmem_cache *k, gfp_t flags)
| ^~~~~~~~~~~~~~~~~
include/linux/slab.h:680:9: note: called from here
680 | return kmem_cache_zalloc(k, flags);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h: In function 'fscrypt_initialize':
>> include/linux/slab.h:678:21: error: inlining failed in call to always_inline 'kmem_cache_zalloc': recursive inlining
678 | static inline void *kmem_cache_zalloc(struct kmem_cache *k, gfp_t flags)
| ^~~~~~~~~~~~~~~~~
include/linux/slab.h:680:9: note: called from here
680 | return kmem_cache_zalloc(k, flags);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/irq.h:21,
from include/asm-generic/hardirq.h:13,
from ./arch/nds32/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:9,
from include/linux/highmem.h:10,
from include/linux/pagemap.h:11,
from fs//ext4/page-io.c:13:
include/linux/slab.h: In function 'kmem_cache_zalloc':
>> include/linux/slab.h:678:21: error: inlining failed in call to always_inline 'kmem_cache_zalloc': recursive inlining
678 | static inline void *kmem_cache_zalloc(struct kmem_cache *k, gfp_t flags)
| ^~~~~~~~~~~~~~~~~
include/linux/slab.h:680:9: note: called from here
680 | return kmem_cache_zalloc(k, flags);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h: In function 'ext4_init_io_end':
>> include/linux/slab.h:678:21: error: inlining failed in call to always_inline 'kmem_cache_zalloc': recursive inlining
678 | static inline void *kmem_cache_zalloc(struct kmem_cache *k, gfp_t flags)
| ^~~~~~~~~~~~~~~~~
include/linux/slab.h:680:9: note: called from here
680 | return kmem_cache_zalloc(k, flags);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/genhd.h:16,
from include/linux/blkdev.h:11,
from include/linux/backing-dev.h:15,
from fs//fuse/fuse_i.h:23,
from fs//fuse/dev.c:9:
include/linux/slab.h: In function 'kmem_cache_zalloc':
>> include/linux/slab.h:678:21: error: inlining failed in call to always_inline 'kmem_cache_zalloc': recursive inlining
678 | static inline void *kmem_cache_zalloc(struct kmem_cache *k, gfp_t flags)
| ^~~~~~~~~~~~~~~~~
include/linux/slab.h:680:9: note: called from here
680 | return kmem_cache_zalloc(k, flags);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h: In function '__fuse_request_alloc':
>> include/linux/slab.h:678:21: error: inlining failed in call to always_inline 'kmem_cache_zalloc': recursive inlining
678 | static inline void *kmem_cache_zalloc(struct kmem_cache *k, gfp_t flags)
| ^~~~~~~~~~~~~~~~~
include/linux/slab.h:680:9: note: called from here
680 | return kmem_cache_zalloc(k, flags);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/irq.h:21,
from include/asm-generic/hardirq.h:13,
from ./arch/nds32/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:9,
from include/linux/highmem.h:10,
from include/linux/pagemap.h:11,
from include/linux/buffer_head.h:14,
from include/linux/jbd2.h:23,
from fs//jbd2/transaction.c:19:
include/linux/slab.h: In function 'kmem_cache_zalloc':
>> include/linux/slab.h:678:21: error: inlining failed in call to always_inline 'kmem_cache_zalloc': recursive inlining
678 | static inline void *kmem_cache_zalloc(struct kmem_cache *k, gfp_t flags)
| ^~~~~~~~~~~~~~~~~
include/linux/slab.h:680:9: note: called from here
680 | return kmem_cache_zalloc(k, flags);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h: In function 'start_this_handle':
>> include/linux/slab.h:678:21: error: inlining failed in call to always_inline 'kmem_cache_zalloc': recursive inlining
678 | static inline void *kmem_cache_zalloc(struct kmem_cache *k, gfp_t flags)
| ^~~~~~~~~~~~~~~~~
include/linux/slab.h:680:9: note: called from here
680 | return kmem_cache_zalloc(k, flags);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h: In function 'jbd2__journal_start':
>> include/linux/slab.h:678:21: error: inlining failed in call to always_inline 'kmem_cache_zalloc': recursive inlining
678 | static inline void *kmem_cache_zalloc(struct kmem_cache *k, gfp_t flags)
| ^~~~~~~~~~~~~~~~~
include/linux/slab.h:680:9: note: called from here
680 | return kmem_cache_zalloc(k, flags);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/irq.h:21,
from include/asm-generic/hardirq.h:13,
from ./arch/nds32/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:9,
from include/linux/highmem.h:10,
from include/linux/pagemap.h:11,
from include/linux/buffer_head.h:14,
from include/linux/jbd2.h:23,
from fs//jbd2/journal.c:25:
include/linux/slab.h: In function 'kmem_cache_zalloc':
>> include/linux/slab.h:678:21: error: inlining failed in call to always_inline 'kmem_cache_zalloc': recursive inlining
678 | static inline void *kmem_cache_zalloc(struct kmem_cache *k, gfp_t flags)
| ^~~~~~~~~~~~~~~~~
include/linux/slab.h:680:9: note: called from here
680 | return kmem_cache_zalloc(k, flags);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h: In function 'jbd2_journal_add_journal_head':
>> include/linux/slab.h:678:21: error: inlining failed in call to always_inline 'kmem_cache_zalloc': recursive inlining
678 | static inline void *kmem_cache_zalloc(struct kmem_cache *k, gfp_t flags)
| ^~~~~~~~~~~~~~~~~
include/linux/slab.h:680:9: note: called from here
680 | return kmem_cache_zalloc(k, flags);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/slab.h:678:21: error: inlining failed in call to always_inline 'kmem_cache_zalloc': recursive inlining
678 | static inline void *kmem_cache_zalloc(struct kmem_cache *k, gfp_t flags)
| ^~~~~~~~~~~~~~~~~
include/linux/slab.h:680:9: note: called from here
680 | return kmem_cache_zalloc(k, flags);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/kmem_cache_zalloc +678 include/linux/slab.h
10cef602950291 Matt Mackall 2006-01-08 674
81cda6626178cd Christoph Lameter 2007-07-17 675 /*
81cda6626178cd Christoph Lameter 2007-07-17 676 * Shortcuts
81cda6626178cd Christoph Lameter 2007-07-17 677 */
81cda6626178cd Christoph Lameter 2007-07-17 @678 static inline void *kmem_cache_zalloc(struct kmem_cache *k, gfp_t flags)
81cda6626178cd Christoph Lameter 2007-07-17 679 {
3b0c169b666d29 Liao Pingfang 2020-06-17 680 return kmem_cache_zalloc(k, flags);
81cda6626178cd Christoph Lameter 2007-07-17 681 }
81cda6626178cd Christoph Lameter 2007-07-17 682
:::::: The code at line 678 was first introduced by commit
:::::: 81cda6626178cd55297831296ba8ecedbfd8b52d Slab allocators: Cleanup zeroing allocations
:::::: TO: Christoph Lameter <clameter(a)sgi.com>
:::::: CC: Linus Torvalds <torvalds(a)woody.linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_packet_manager_vi.c:113:5: warning: no previous prototype for 'pm_set_resources_vi'
by kernel test robot
Hi Timothy,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 69119673bd50b176ded34032fadd41530fb5af21
commit: 70ebe8a48216ae2fda862cae47ff0b8af5b279b9 amdgpu: Enable KFD on POWER systems
date: 7 months ago
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-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
git checkout 70ebe8a48216ae2fda862cae47ff0b8af5b279b9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 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 >>, old ones prefixed by <<):
>> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_packet_manager_vi.c:113:5: warning: no previous prototype for 'pm_set_resources_vi' [-Wmissing-prototypes]
113 | int pm_set_resources_vi(struct packet_manager *pm, uint32_t *buffer,
| ^~~~~~~~~~~~~~~~~~~
vim +/pm_set_resources_vi +113 drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_packet_manager_vi.c
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 112
454150b1f9a6be drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 @113 int pm_set_resources_vi(struct packet_manager *pm, uint32_t *buffer,
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 114 struct scheduling_resources *res)
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 115 {
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 116 struct pm4_mes_set_resources *packet;
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 117
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 118 packet = (struct pm4_mes_set_resources *)buffer;
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 119 memset(buffer, 0, sizeof(struct pm4_mes_set_resources));
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 120
454150b1f9a6be drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 121 packet->header.u32All = pm_build_pm4_header(IT_SET_RESOURCES,
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 122 sizeof(struct pm4_mes_set_resources));
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 123
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 124 packet->bitfields2.queue_type =
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 125 queue_type__mes_set_resources__hsa_interface_queue_hiq;
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 126 packet->bitfields2.vmid_mask = res->vmid_mask;
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 127 packet->bitfields2.unmap_latency = KFD_UNMAP_LATENCY_MS / 100;
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 128 packet->bitfields7.oac_mask = res->oac_mask;
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 129 packet->bitfields8.gds_heap_base = res->gds_heap_base;
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 130 packet->bitfields8.gds_heap_size = res->gds_heap_size;
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 131
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 132 packet->gws_mask_lo = lower_32_bits(res->gws_mask);
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 133 packet->gws_mask_hi = upper_32_bits(res->gws_mask);
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 134
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 135 packet->queue_mask_lo = lower_32_bits(res->queue_mask);
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 136 packet->queue_mask_hi = upper_32_bits(res->queue_mask);
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 137
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 138 return 0;
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 139 }
f6e27ff19d9db9 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c Felix Kuehling 2018-04-10 140
:::::: The code at line 113 was first introduced by commit
:::::: 454150b1f9a6be0a69138a698471bd13424204cc drm/amdkfd: Add GFXv9 PM4 packet writer functions
:::::: TO: Felix Kuehling <Felix.Kuehling(a)amd.com>
:::::: CC: Oded Gabbay <oded.gabbay(a)gmail.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months