tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   69119673bd50b176ded34032fadd41530fb5af21
commit: d4caa72e275c1920d38a9541b2e4dcc167733734 drm/amd/display: change from 
panel to panel cntl
date:   8 weeks 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 d4caa72e275c1920d38a9541b2e4dcc167733734
        # 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 <l...@intel.com>

All warnings (new ones prefixed by >>, old ones prefixed by <<):

>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c:48:6: warning: 
>> no previous prototype for 'dce_panel_cntl_hw_init' [-Wmissing-prototypes]
48 | void dce_panel_cntl_hw_init(struct panel_cntl *panel_cntl)
|      ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c:53:6: warning: 
>> no previous prototype for 'dce_is_panel_backlight_on' [-Wmissing-prototypes]
53 | bool dce_is_panel_backlight_on(struct panel_cntl *panel_cntl)
|      ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c:63:6: warning: 
>> no previous prototype for 'dce_is_panel_powered_on' [-Wmissing-prototypes]
63 | bool dce_is_panel_powered_on(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 };
|                                ^~~~~~~~~~~~~

vim +/dce_panel_cntl_hw_init +48 
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c

    31  
    32  #define TO_DCE_PANEL_CNTL(panel_cntl)\
    33          container_of(panel_cntl, struct dce_panel_cntl, base)
    34  
    35  #define CTX \
    36          dce_panel_cntl->base.ctx
    37  
    38  #define DC_LOGGER \
    39          dce_panel_cntl->base.ctx->logger
    40  
    41  #define REG(reg)\
    42          dce_panel_cntl->regs->reg
    43  
    44  #undef FN
    45  #define FN(reg_name, field_name) \
    46          dce_panel_cntl->shift->field_name, 
dce_panel_cntl->mask->field_name
    47  
  > 48  void dce_panel_cntl_hw_init(struct panel_cntl *panel_cntl)
    49  {
    50  
    51  }
    52  
  > 53  bool dce_is_panel_backlight_on(struct panel_cntl *panel_cntl)
    54  {
    55          struct dce_panel_cntl *dce_panel_cntl = 
TO_DCE_PANEL_CNTL(panel_cntl);
    56          uint32_t value;
    57  
    58          REG_GET(PWRSEQ_CNTL, BLON, &value);
    59  
    60          return value;
    61  }
    62  
  > 63  bool dce_is_panel_powered_on(struct panel_cntl *panel_cntl)
    64  {
    65          struct dce_panel_cntl *dce_panel_cntl = 
TO_DCE_PANEL_CNTL(panel_cntl);
    66          uint32_t pwr_seq_state, dig_on, dig_on_ovrd;
    67  
    68          REG_GET(PWRSEQ_STATE, PWRSEQ_TARGET_STATE_R, &pwr_seq_state);
    69  
    70          REG_GET_2(PWRSEQ_CNTL, DIGON, &dig_on, DIGON_OVRD, 
&dig_on_ovrd);
    71  
    72          return (pwr_seq_state == 1) || (dig_on == 1 && dig_on_ovrd == 
1);
    73  }
    74  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org

Attachment: .config.gz
Description: application/gzip

Reply via email to