[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202108290953.wn9FEGlg-lkp@intel.com>
Date: Sun, 29 Aug 2021 09:54:57 +0800
From: kernel test robot <lkp@...el.com>
To: Jani Nikula <jani.nikula@...el.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org, Rodrigo Vivi <rodrigo.vivi@...el.com>
Subject: [drm-drm-intel:drm-intel-next 4/5]
drivers/gpu/drm/i915/display/intel_fdi.c:917:6: warning: comparison of
integers of different signs: 'unsigned long long' and 'int'
tree: git://anongit.freedesktop.org/drm/drm-intel drm-intel-next
head: 9716846039eff1264de8868e9ed3f74a34b5b724
commit: e2cf6afcdacf937b67f362a623254dac32e7c509 [4/5] drm/i915/fdi: move fdi mphy reset and programming to intel_fdi.c
config: i386-randconfig-a002-20210829 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 4e1a164d7bd53653f79decc121afe784d2fde0a7)
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 remote add drm-drm-intel git://anongit.freedesktop.org/drm/drm-intel
git fetch --no-tags drm-drm-intel drm-intel-next
git checkout e2cf6afcdacf937b67f362a623254dac32e7c509
# 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@...el.com>
All warnings (new ones prefixed by >>):
^
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_fdi.c:8:
In file included from drivers/gpu/drm/i915/display/intel_de.h:11:
drivers/gpu/drm/i915/i915_trace.h:1149: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_fdi.c:8:
In file included from drivers/gpu/drm/i915/display/intel_de.h:11:
drivers/gpu/drm/i915/i915_trace.h:1177: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_fdi.c:8:
In file included from drivers/gpu/drm/i915/display/intel_de.h:11:
drivers/gpu/drm/i915/i915_trace.h:1219: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_fdi.c:8:
In file included from drivers/gpu/drm/i915/display/intel_de.h:11:
drivers/gpu/drm/i915/i915_trace.h:1224: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_fdi.c:8:
In file included from drivers/gpu/drm/i915/display/intel_de.h:11:
drivers/gpu/drm/i915/i915_trace.h:1256: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_fdi.c:8:
In file included from drivers/gpu/drm/i915/display/intel_de.h:11:
drivers/gpu/drm/i915/i915_trace.h:1261: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_fdi.c:702:16: warning: comparison of integers of different signs: 'u32' (aka 'unsigned int') and 'int' [-Wsign-compare]
for (i = 0; i < n_entries * 2; i++) {
~ ^ ~~~~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_fdi.c:751:9: warning: comparison of integers of different signs: 'u32' (aka 'unsigned int') and 'int' [-Wsign-compare]
if (i == n_entries * 2 - 1) {
~ ^ ~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/display/intel_fdi.c:917:6: warning: comparison of integers of different signs: 'unsigned long long' and 'int' [-Wsign-compare]
if (wait_for_us(intel_de_read(dev_priv, SOUTH_CHICKEN2) &
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_utils.h:396:11: note: expanded from macro 'wait_for_us'
ret__ = _wait_for_atomic((COND), (US), 0); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_utils.h:372:18: note: expanded from macro '_wait_for_atomic'
if (now - base >= timeout) { \
~~~~~~~~~~ ^ ~~~~~~~
drivers/gpu/drm/i915/display/intel_fdi.c:925:6: warning: comparison of integers of different signs: 'unsigned long long' and 'int' [-Wsign-compare]
if (wait_for_us((intel_de_read(dev_priv, SOUTH_CHICKEN2) &
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_utils.h:396:11: note: expanded from macro 'wait_for_us'
ret__ = _wait_for_atomic((COND), (US), 0); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_utils.h:372:18: note: expanded from macro '_wait_for_atomic'
if (now - base >= timeout) { \
~~~~~~~~~~ ^ ~~~~~~~
1207 warnings and 1 error generated.
vim +917 drivers/gpu/drm/i915/display/intel_fdi.c
908
909 static void lpt_fdi_reset_mphy(struct drm_i915_private *dev_priv)
910 {
911 u32 tmp;
912
913 tmp = intel_de_read(dev_priv, SOUTH_CHICKEN2);
914 tmp |= FDI_MPHY_IOSFSB_RESET_CTL;
915 intel_de_write(dev_priv, SOUTH_CHICKEN2, tmp);
916
> 917 if (wait_for_us(intel_de_read(dev_priv, SOUTH_CHICKEN2) &
918 FDI_MPHY_IOSFSB_RESET_STATUS, 100))
919 drm_err(&dev_priv->drm, "FDI mPHY reset assert timeout\n");
920
921 tmp = intel_de_read(dev_priv, SOUTH_CHICKEN2);
922 tmp &= ~FDI_MPHY_IOSFSB_RESET_CTL;
923 intel_de_write(dev_priv, SOUTH_CHICKEN2, tmp);
924
925 if (wait_for_us((intel_de_read(dev_priv, SOUTH_CHICKEN2) &
926 FDI_MPHY_IOSFSB_RESET_STATUS) == 0, 100))
927 drm_err(&dev_priv->drm, "FDI mPHY reset de-assert timeout\n");
928 }
929
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (43280 bytes)
Powered by blists - more mailing lists