linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/gpu/drm/i915/display/intel_snps_phy.c:70:12: warning: comparison of integers of different signs: 'u32' (aka 'unsigned int') and 'int'
@ 2021-09-04  2:11 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-04  2:11 UTC (permalink / raw)
  To: Matt Roper; +Cc: llvm, kbuild-all, linux-kernel, Jani Nikula, Matt Atwood

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a9c9a6f741cdaa2fa9ba24a790db8d07295761e3
commit: a046a0daa3c6855d63fdf108919bb9666ba96c82 drm/i915/dg2: Add vswing programming for SNPS phys
date:   5 weeks ago
config: i386-randconfig-r002-20210903 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c9948e9254fbb6ea00f66c7b4542311d21e060be)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a046a0daa3c6855d63fdf108919bb9666ba96c82
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a046a0daa3c6855d63fdf108919bb9666ba96c82
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386 

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 >>):

           check_trace_callback_type_##name(void (*cb)(data_proto))        \
                                                   ^
   In file included from drivers/gpu/drm/i915/display/intel_snps_phy.c:8:
   In file included from drivers/gpu/drm/i915/display/intel_de.h:11:
   drivers/gpu/drm/i915/i915_trace.h:951:1: warning: unused parameter 'cb' [-Wunused-parameter]
   DEFINE_EVENT(i915_request, i915_request_wait_end,
   ^
   include/linux/tracepoint.h:542:2: note: expanded from macro 'DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:419:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:279:42: note: expanded from macro '__DECLARE_TRACE'
           check_trace_callback_type_##name(void (*cb)(data_proto))        \
                                                   ^
   In file included from drivers/gpu/drm/i915/display/intel_snps_phy.c:8:
   In file included from drivers/gpu/drm/i915/display/intel_de.h:11:
   drivers/gpu/drm/i915/i915_trace.h:956:1: warning: unused parameter 'cb' [-Wunused-parameter]
   TRACE_EVENT_CONDITION(i915_reg_rw,
   ^
   include/linux/tracepoint.h:563:2: note: expanded from macro 'TRACE_EVENT_CONDITION'
           DECLARE_TRACE_CONDITION(name, PARAMS(proto),            \
           ^
   include/linux/tracepoint.h:424:2: note: expanded from macro 'DECLARE_TRACE_CONDITION'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:279:42: note: expanded from macro '__DECLARE_TRACE'
           check_trace_callback_type_##name(void (*cb)(data_proto))        \
                                                   ^
   In file included from drivers/gpu/drm/i915/display/intel_snps_phy.c:8:
   In file included from drivers/gpu/drm/i915/display/intel_de.h:11:
   drivers/gpu/drm/i915/i915_trace.h:984:1: warning: unused parameter 'cb' [-Wunused-parameter]
   TRACE_EVENT(intel_gpu_freq_change,
   ^
   include/linux/tracepoint.h:553:2: note: expanded from macro 'TRACE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:419:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:279:42: note: expanded from macro '__DECLARE_TRACE'
           check_trace_callback_type_##name(void (*cb)(data_proto))        \
                                                   ^
   In file included from drivers/gpu/drm/i915/display/intel_snps_phy.c:8:
   In file included from drivers/gpu/drm/i915/display/intel_de.h:11:
   drivers/gpu/drm/i915/i915_trace.h:1026:1: warning: unused parameter 'cb' [-Wunused-parameter]
   DEFINE_EVENT(i915_ppgtt, i915_ppgtt_create,
   ^
   include/linux/tracepoint.h:542:2: note: expanded from macro 'DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:419:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:279:42: note: expanded from macro '__DECLARE_TRACE'
           check_trace_callback_type_##name(void (*cb)(data_proto))        \
                                                   ^
   In file included from drivers/gpu/drm/i915/display/intel_snps_phy.c:8:
   In file included from drivers/gpu/drm/i915/display/intel_de.h:11:
   drivers/gpu/drm/i915/i915_trace.h:1031:1: warning: unused parameter 'cb' [-Wunused-parameter]
   DEFINE_EVENT(i915_ppgtt, i915_ppgtt_release,
   ^
   include/linux/tracepoint.h:542:2: note: expanded from macro 'DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:419:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:279:42: note: expanded from macro '__DECLARE_TRACE'
           check_trace_callback_type_##name(void (*cb)(data_proto))        \
                                                   ^
   In file included from drivers/gpu/drm/i915/display/intel_snps_phy.c:8:
   In file included from drivers/gpu/drm/i915/display/intel_de.h:11:
   drivers/gpu/drm/i915/i915_trace.h:1063:1: warning: unused parameter 'cb' [-Wunused-parameter]
   DEFINE_EVENT(i915_context, i915_context_create,
   ^
   include/linux/tracepoint.h:542:2: note: expanded from macro 'DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:419:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:279:42: note: expanded from macro '__DECLARE_TRACE'
           check_trace_callback_type_##name(void (*cb)(data_proto))        \
                                                   ^
   In file included from drivers/gpu/drm/i915/display/intel_snps_phy.c:8:
   In file included from drivers/gpu/drm/i915/display/intel_de.h:11:
   drivers/gpu/drm/i915/i915_trace.h:1068:1: warning: unused parameter 'cb' [-Wunused-parameter]
   DEFINE_EVENT(i915_context, i915_context_free,
   ^
   include/linux/tracepoint.h:542:2: note: expanded from macro 'DEFINE_EVENT'
           DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
           ^
   include/linux/tracepoint.h:419:2: note: expanded from macro 'DECLARE_TRACE'
           __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
           ^
   include/linux/tracepoint.h:279:42: note: expanded from macro '__DECLARE_TRACE'
           check_trace_callback_type_##name(void (*cb)(data_proto))        \
                                                   ^
>> drivers/gpu/drm/i915/display/intel_snps_phy.c:70:12: warning: comparison of integers of different signs: 'u32' (aka 'unsigned int') and 'int' [-Wsign-compare]
           if (level >= n_entries)
               ~~~~~ ^  ~~~~~~~~~
   drivers/gpu/drm/i915/display/intel_snps_phy.c:650:30: warning: comparison of integers of different signs: 'int' and 'const u32' (aka 'const unsigned int') [-Wsign-compare]
                   if (crtc_state->port_clock <= tables[i]->clock) {
                       ~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/display/intel_snps_phy.c:759:55: warning: unused parameter 'encoder' [-Wunused-parameter]
   int intel_mpllb_calc_port_clock(struct intel_encoder *encoder,
                                                         ^
   drivers/gpu/drm/i915/display/intel_snps_phy.c:828:13: warning: comparison of integers of different signs: 'int' and 'const u32' (aka 'const unsigned int') [-Wsign-compare]
                   if (clock == tables[i]->clock)
                       ~~~~~ ^  ~~~~~~~~~~~~~~~~
   1812 warnings generated.


vim +70 drivers/gpu/drm/i915/display/intel_snps_phy.c

    61	
    62	void intel_snps_phy_ddi_vswing_sequence(struct intel_encoder *encoder,
    63						u32 level)
    64	{
    65		struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
    66		enum phy phy = intel_port_to_phy(dev_priv, encoder->port);
    67		int n_entries, ln;
    68	
    69		n_entries = ARRAY_SIZE(dg2_ddi_translations);
  > 70		if (level >= n_entries)
    71			level = n_entries - 1;
    72	
    73		for (ln = 0; ln < 4; ln++)
    74			intel_de_write(dev_priv, SNPS_PHY_TX_EQ(ln, phy),
    75				       dg2_ddi_translations[level]);
    76	}
    77	

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

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

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

only message in thread, other threads:[~2021-09-04  2:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-04  2:11 drivers/gpu/drm/i915/display/intel_snps_phy.c:70:12: warning: comparison of integers of different signs: 'u32' (aka 'unsigned int') and 'int' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).