From: kernel test robot <lkp@intel.com>
To: Matt Roper <matthew.d.roper@intel.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org, Jani Nikula <jani.nikula@intel.com>,
Matt Atwood <matthew.s.atwood@intel.com>
Subject: drivers/gpu/drm/i915/display/intel_snps_phy.c:70:12: warning: comparison of integers of different signs: 'u32' (aka 'unsigned int') and 'int'
Date: Sat, 4 Sep 2021 10:11:59 +0800 [thread overview]
Message-ID: <202109041047.ErzyaUPs-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2021-09-04 2:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202109041047.ErzyaUPs-lkp@intel.com \
--to=lkp@intel.com \
--cc=jani.nikula@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=matthew.d.roper@intel.com \
--cc=matthew.s.atwood@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox