drivers/gpu/drm/i915/display/intel_display_debugfs.c:934:26: warning: unused parameter 'ubuf'
From: kernel test robot
Date: Sat Sep 11 2021 - 22:29:34 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c605c39677b9842b0566013e0cf30bc13e90bdbc
commit: 829270e4552e9e6a0534d4d195f671363cb39e3e drm/i915/display: Record the plane update times for debugging
date: 9 months ago
config: i386-randconfig-r032-20210910 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 261cbe98c38f8c1ee1a482fe76511110e790f58a)
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=829270e4552e9e6a0534d4d195f671363cb39e3e
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 829270e4552e9e6a0534d4d195f671363cb39e3e
# 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@xxxxxxxxx>
All warnings (new ones prefixed by >>):
^
drivers/gpu/drm/i915/i915_gpu_error.h:285:52: warning: unused parameter 'gfp' [-Wunused-parameter]
intel_gt_coredump_alloc(struct intel_gt *gt, gfp_t gfp)
^
drivers/gpu/drm/i915/i915_gpu_error.h:291:53: warning: unused parameter 'engine' [-Wunused-parameter]
intel_engine_coredump_alloc(struct intel_engine_cs *engine, gfp_t gfp)
^
drivers/gpu/drm/i915/i915_gpu_error.h:291:67: warning: unused parameter 'gfp' [-Wunused-parameter]
intel_engine_coredump_alloc(struct intel_engine_cs *engine, gfp_t gfp)
^
drivers/gpu/drm/i915/i915_gpu_error.h:297:65: warning: unused parameter 'ee' [-Wunused-parameter]
intel_engine_coredump_add_request(struct intel_engine_coredump *ee,
^
drivers/gpu/drm/i915/i915_gpu_error.h:298:28: warning: unused parameter 'rq' [-Wunused-parameter]
struct i915_request *rq,
^
drivers/gpu/drm/i915/i915_gpu_error.h:299:13: warning: unused parameter 'gfp' [-Wunused-parameter]
gfp_t gfp)
^
drivers/gpu/drm/i915/i915_gpu_error.h:305:61: warning: unused parameter 'ee' [-Wunused-parameter]
intel_engine_coredump_add_vma(struct intel_engine_coredump *ee,
^
drivers/gpu/drm/i915/i915_gpu_error.h:306:43: warning: unused parameter 'capture' [-Wunused-parameter]
struct intel_engine_capture_vma *capture,
^
drivers/gpu/drm/i915/i915_gpu_error.h:307:36: warning: unused parameter 'compress' [-Wunused-parameter]
struct i915_vma_compress *compress)
^
drivers/gpu/drm/i915/i915_gpu_error.h:312:52: warning: unused parameter 'gt' [-Wunused-parameter]
i915_vma_capture_prepare(struct intel_gt_coredump *gt)
^
drivers/gpu/drm/i915/i915_gpu_error.h:318:51: warning: unused parameter 'gt' [-Wunused-parameter]
i915_vma_capture_finish(struct intel_gt_coredump *gt,
^
drivers/gpu/drm/i915/i915_gpu_error.h:319:30: warning: unused parameter 'compress' [-Wunused-parameter]
struct i915_vma_compress *compress)
^
drivers/gpu/drm/i915/i915_gpu_error.h:324:50: warning: unused parameter 'error' [-Wunused-parameter]
i915_error_state_store(struct i915_gpu_coredump *error)
^
drivers/gpu/drm/i915/i915_gpu_error.h:328:68: warning: unused parameter 'gpu' [-Wunused-parameter]
static inline void i915_gpu_coredump_put(struct i915_gpu_coredump *gpu)
^
drivers/gpu/drm/i915/i915_gpu_error.h:333:49: warning: unused parameter 'i915' [-Wunused-parameter]
i915_first_error_state(struct drm_i915_private *i915)
^
drivers/gpu/drm/i915/i915_gpu_error.h:338:68: warning: unused parameter 'i915' [-Wunused-parameter]
static inline void i915_reset_error_state(struct drm_i915_private *i915)
^
drivers/gpu/drm/i915/i915_gpu_error.h:342:70: warning: unused parameter 'i915' [-Wunused-parameter]
static inline void i915_disable_error_state(struct drm_i915_private *i915,
^
drivers/gpu/drm/i915/i915_gpu_error.h:343:14: warning: unused parameter 'err' [-Wunused-parameter]
int err)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:28:64: warning: unused parameter 'unused' [-Wunused-parameter]
static int i915_frontbuffer_tracking(struct seq_file *m, void *unused)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:41:54: warning: unused parameter 'unused' [-Wunused-parameter]
static int i915_fbc_status(struct seq_file *m, void *unused)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:118:54: warning: unused parameter 'unused' [-Wunused-parameter]
static int i915_ips_status(struct seq_file *m, void *unused)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:145:53: warning: unused parameter 'unused' [-Wunused-parameter]
static int i915_sr_status(struct seq_file *m, void *unused)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:174:52: warning: unused parameter 'unused' [-Wunused-parameter]
static int i915_opregion(struct seq_file *m, void *unused)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:184:47: warning: unused parameter 'unused' [-Wunused-parameter]
static int i915_vbt(struct seq_file *m, void *unused)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:194:64: warning: unused parameter 'data' [-Wunused-parameter]
static int i915_gem_framebuffer_info(struct seq_file *m, void *data)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:238:64: warning: unused parameter 'data' [-Wunused-parameter]
static int i915_psr_sink_status_show(struct seq_file *m, void *data)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:330:58: warning: unused parameter 'data' [-Wunused-parameter]
static int i915_edp_psr_status(struct seq_file *m, void *data)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:470:61: warning: unused parameter 'unused' [-Wunused-parameter]
static int i915_power_domain_info(struct seq_file *m, void *unused)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:498:52: warning: unused parameter 'unused' [-Wunused-parameter]
static int i915_dmc_info(struct seq_file *m, void *unused)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:574:30: warning: unused parameter 'crtc' [-Wunused-parameter]
struct intel_crtc *crtc,
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:878:20: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
for (row = 0; row < ARRAY_SIZE(crtc->debug.vbl.times); row++)
~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_display_debugfs.c:884:20: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
for (row = 0; row < ARRAY_SIZE(crtc->debug.vbl.times); row++) {
~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_display_debugfs.c:922:56: warning: unused parameter 'data' [-Wunused-parameter]
static int crtc_updates_show(struct seq_file *m, void *data)
^
>> drivers/gpu/drm/i915/display/intel_display_debugfs.c:934:26: warning: unused parameter 'ubuf' [-Wunused-parameter]
const char __user *ubuf,
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:935:27: warning: unused parameter 'offp' [-Wunused-parameter]
size_t len, loff_t *offp)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:1019:56: warning: unused parameter 'unused' [-Wunused-parameter]
static int i915_display_info(struct seq_file *m, void *unused)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:1052:61: warning: unused parameter 'unused' [-Wunused-parameter]
static int i915_shared_dplls_info(struct seq_file *m, void *unused)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:1106:59: warning: unused parameter 'data' [-Wunused-parameter]
static int i915_ipc_status_show(struct seq_file *m, void *data)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:1126:30: warning: unused parameter 'offp' [-Wunused-parameter]
size_t len, loff_t *offp)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:1159:52: warning: unused parameter 'unused' [-Wunused-parameter]
static int i915_ddb_info(struct seq_file *m, void *unused)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:1272:55: warning: unused parameter 'unused' [-Wunused-parameter]
static int i915_drrs_status(struct seq_file *m, void *unused)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:1314:55: warning: unused parameter 'unused' [-Wunused-parameter]
static int i915_lpsp_status(struct seq_file *m, void *unused)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:1341:55: warning: unused parameter 'unused' [-Wunused-parameter]
static int i915_dp_mst_info(struct seq_file *m, void *unused)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:1434:72: warning: unused parameter 'data' [-Wunused-parameter]
static int i915_displayport_test_active_show(struct seq_file *m, void *data)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:1484:70: warning: unused parameter 'data' [-Wunused-parameter]
static int i915_displayport_test_data_show(struct seq_file *m, void *data)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:1538:70: warning: unused parameter 'data' [-Wunused-parameter]
static int i915_displayport_test_type_show(struct seq_file *m, void *data)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:1610:58: warning: unused parameter 'data' [-Wunused-parameter]
static int pri_wm_latency_show(struct seq_file *m, void *data)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:1625:58: warning: unused parameter 'data' [-Wunused-parameter]
static int spr_wm_latency_show(struct seq_file *m, void *data)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:1640:58: warning: unused parameter 'data' [-Wunused-parameter]
static int cur_wm_latency_show(struct seq_file *m, void *data)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:1686:25: warning: unused parameter 'offp' [-Wunused-parameter]
size_t len, loff_t *offp, u16 wm[8])
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:1803:62: warning: unused parameter 'data' [-Wunused-parameter]
static int i915_hpd_storm_ctl_show(struct seq_file *m, void *data)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:1824:14: warning: unused parameter 'offp' [-Wunused-parameter]
loff_t *offp)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:1886:68: warning: unused parameter 'data' [-Wunused-parameter]
static int i915_hpd_short_storm_ctl_show(struct seq_file *m, void *data)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:1905:32: warning: unused parameter 'offp' [-Wunused-parameter]
size_t len, loff_t *offp)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:2033:31: warning: unused parameter 'ppos' [-Wunused-parameter]
size_t cnt, loff_t *ppos)
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:2093:60: warning: missing field 'data' initializer [-Wmissing-field-initializers]
{"i915_frontbuffer_tracking", i915_frontbuffer_tracking, 0},
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:2094:40: warning: missing field 'data' initializer [-Wmissing-field-initializers]
{"i915_fbc_status", i915_fbc_status, 0},
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:2095:40: warning: missing field 'data' initializer [-Wmissing-field-initializers]
{"i915_ips_status", i915_ips_status, 0},
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:2096:38: warning: missing field 'data' initializer [-Wmissing-field-initializers]
{"i915_sr_status", i915_sr_status, 0},
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:2097:36: warning: missing field 'data' initializer [-Wmissing-field-initializers]
{"i915_opregion", i915_opregion, 0},
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:2098:26: warning: missing field 'data' initializer [-Wmissing-field-initializers]
{"i915_vbt", i915_vbt, 0},
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:2099:55: warning: missing field 'data' initializer [-Wmissing-field-initializers]
{"i915_gem_framebuffer", i915_gem_framebuffer_info, 0},
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:2100:48: warning: missing field 'data' initializer [-Wmissing-field-initializers]
{"i915_edp_psr_status", i915_edp_psr_status, 0},
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:2101:54: warning: missing field 'data' initializer [-Wmissing-field-initializers]
{"i915_power_domain_info", i915_power_domain_info, 0},
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:2102:36: warning: missing field 'data' initializer [-Wmissing-field-initializers]
{"i915_dmc_info", i915_dmc_info, 0},
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:2103:44: warning: missing field 'data' initializer [-Wmissing-field-initializers]
{"i915_display_info", i915_display_info, 0},
^
drivers/gpu/drm/i915/display/intel_display_debugfs.c:2104:54: warning: missing field 'data' initializer [-Wmissing-field-initializers]
{"i915_shared_dplls_info", i915_shared_dplls_info, 0},
vim +/ubuf +934 drivers/gpu/drm/i915/display/intel_display_debugfs.c
932
933 static ssize_t crtc_updates_write(struct file *file,
> 934 const char __user *ubuf,
935 size_t len, loff_t *offp)
936 {
937 struct seq_file *m = file->private_data;
938 struct intel_crtc *crtc = m->private;
939
940 /* May race with an update. Meh. */
941 memset(&crtc->debug.vbl, 0, sizeof(crtc->debug.vbl));
942
943 return len;
944 }
945
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip