All of lore.kernel.org
 help / color / mirror / Atom feed
* [chrome-os:chromeos-5.4 7/42] drivers/gpu/drm/msm/dp/dp_aux.c:34:8: warning: type qualifiers ignored on function return type
@ 2020-07-24  4:16 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-07-24  4:16 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 7046 bytes --]

tree:   https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head:   56c29f07e1d917570df2ace3faabc5e18df5ae8c
commit: 154b5a7da0fdc0340180a211f692be70a09ea2c4 [7/42] FROMLIST: drm/msm/dp: add displayPort driver support
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-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 154b5a7da0fdc0340180a211f692be70a09ea2c4
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/msm/dp/dp_aux.c:34:8: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
      34 | static const char * const dp_aux_get_error(u32 aux_error)
         |        ^~~~~
--
>> drivers/gpu/drm/msm/dp/dp_catalog.c:370:6: warning: no previous prototype for 'dump_regs' [-Wmissing-prototypes]
     370 | void dump_regs(void * __iomem *base, int len)
         |      ^~~~~~~~~
   In file included from include/linux/printk.h:7,
                    from include/linux/kernel.h:15,
                    from include/linux/delay.h:22,
                    from drivers/gpu/drm/msm/dp/dp_catalog.c:8:
   drivers/gpu/drm/msm/dp/dp_catalog.c: In function 'dump_regs':
>> include/linux/kern_levels.h:5:18: warning: '0' flag used with '%p' gnu_printf format [-Wformat=]
       5 | #define KERN_SOH "\001"  /* ASCII Start Of Header */
         |                  ^~~~~~
   include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH'
      14 | #define KERN_INFO KERN_SOH "6" /* informational */
         |                   ^~~~~~~~
   include/linux/printk.h:306:9: note: in expansion of macro 'KERN_INFO'
     306 |  printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~~~~
   drivers/gpu/drm/msm/dp/dp_catalog.c:382:3: note: in expansion of macro 'pr_info'
     382 |   pr_info("%08p: %08x %08x %08x %08x", base, x0, x4, x8, xc);
         |   ^~~~~~~
   drivers/gpu/drm/msm/dp/dp_catalog.c:382:15: note: format string is defined here
     382 |   pr_info("%08p: %08x %08x %08x %08x", base, x0, x4, x8, xc);
         |               ^
   At top level:
   drivers/gpu/drm/msm/dp/dp_catalog.c:77:17: warning: 'vm_voltage_swing_hbr3_hbr2' defined but not used [-Wunused-const-variable=]
      77 | static u8 const vm_voltage_swing_hbr3_hbr2[4][4] = {
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/msm/dp/dp_catalog.c:70:17: warning: 'vm_pre_emphasis_hbr3_hbr2' defined but not used [-Wunused-const-variable=]
      70 | static u8 const vm_pre_emphasis_hbr3_hbr2[4][4] = {
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/msm/dp/dp_catalog.c:63:17: warning: 'vm_voltage_swing' defined but not used [-Wunused-const-variable=]
      63 | static u8 const vm_voltage_swing[4][4] = {
         |                 ^~~~~~~~~~~~~~~~
   drivers/gpu/drm/msm/dp/dp_catalog.c:55:17: warning: 'vm_pre_emphasis' defined but not used [-Wunused-const-variable=]
      55 | static u8 const vm_pre_emphasis[4][4] = {
         |                 ^~~~~~~~~~~~~~~
--
   drivers/gpu/drm/msm/dp/dp_ctrl.c: In function '_tu_param_compare':
>> drivers/gpu/drm/msm/dp/dp_ctrl.c:254:13: warning: variable 'b_frac' set but not used [-Wunused-but-set-variable]
     254 |  u32 b_int, b_frac, b_sign;
         |             ^~~~~~
>> drivers/gpu/drm/msm/dp/dp_ctrl.c:254:6: warning: variable 'b_int' set but not used [-Wunused-but-set-variable]
     254 |  u32 b_int, b_frac, b_sign;
         |      ^~~~~
>> drivers/gpu/drm/msm/dp/dp_ctrl.c:253:13: warning: variable 'a_frac' set but not used [-Wunused-but-set-variable]
     253 |  u32 a_int, a_frac, a_sign;
         |             ^~~~~~
>> drivers/gpu/drm/msm/dp/dp_ctrl.c:253:6: warning: variable 'a_int' set but not used [-Wunused-but-set-variable]
     253 |  u32 a_int, a_frac, a_sign;
         |      ^~~~~
   drivers/gpu/drm/msm/dp/dp_ctrl.c: In function 'dp_panel_update_tu_timings':
>> drivers/gpu/drm/msm/dp/dp_ctrl.c:301:6: warning: variable 'overhead_dsc' set but not used [-Wunused-but-set-variable]
     301 |  s64 overhead_dsc;
         |      ^~~~~~~~~~~~
--
   drivers/gpu/drm/msm/dp/dp_link.c: In function 'dp_link_adjust_levels':
>> drivers/gpu/drm/msm/dp/dp_link.c:1106:26: warning: variable 'link' set but not used [-Wunused-but-set-variable]
    1106 |  struct dp_link_private *link;
         |                          ^~~~
--
   drivers/gpu/drm/msm/dp/dp_panel.c: In function 'dp_panel_read_dpcd':
   drivers/gpu/drm/msm/dp/dp_panel.c:39:11: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
      39 |  if (rlen < 0) {
         |           ^
   drivers/gpu/drm/msm/dp/dp_panel.c: At top level:
>> drivers/gpu/drm/msm/dp/dp_panel.c:283:4: warning: no previous prototype for 'dp_panel_get_edid_checksum' [-Wmissing-prototypes]
     283 | u8 dp_panel_get_edid_checksum(struct edid *edid)
         |    ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/msm/dp/dp_panel.c: In function 'dp_panel_put':
>> drivers/gpu/drm/msm/dp/dp_panel.c:482:27: warning: variable 'panel' set but not used [-Wunused-but-set-variable]
     482 |  struct dp_panel_private *panel;
         |                           ^~~~~
--
   drivers/gpu/drm/msm/dp/dp_parser.c: In function 'dp_parser_init_clk_data':
>> drivers/gpu/drm/msm/dp/dp_parser.c:131:26: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
     131 |  int num_clk = 0, i = 0, rc = 0;
         |                          ^~
--
   drivers/gpu/drm/msm/dp/dp_power.c: In function 'dp_power_clk_enable':
>> drivers/gpu/drm/msm/dp/dp_power.c:164:27: warning: variable 'mp' set but not used [-Wunused-but-set-variable]
     164 |  struct dss_module_power *mp;
         |                           ^~

vim +34 drivers/gpu/drm/msm/dp/dp_aux.c

    33	
  > 34	static const char * const dp_aux_get_error(u32 aux_error)
    35	{
    36		switch (aux_error) {
    37		case DP_AUX_ERR_NONE:
    38			return DP_AUX_ENUM_STR(DP_AUX_ERR_NONE);
    39		case DP_AUX_ERR_ADDR:
    40			return DP_AUX_ENUM_STR(DP_AUX_ERR_ADDR);
    41		case DP_AUX_ERR_TOUT:
    42			return DP_AUX_ENUM_STR(DP_AUX_ERR_TOUT);
    43		case DP_AUX_ERR_NACK:
    44			return DP_AUX_ENUM_STR(DP_AUX_ERR_NACK);
    45		case DP_AUX_ERR_DEFER:
    46			return DP_AUX_ENUM_STR(DP_AUX_ERR_DEFER);
    47		case DP_AUX_ERR_NACK_DEFER:
    48			return DP_AUX_ENUM_STR(DP_AUX_ERR_NACK_DEFER);
    49		default:
    50			return "unknown";
    51		}
    52	}
    53	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 70413 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-24  4:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-24  4:16 [chrome-os:chromeos-5.4 7/42] drivers/gpu/drm/msm/dp/dp_aux.c:34:8: warning: type qualifiers ignored on function return type kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.