Messages in this thread | | | Date | Wed, 21 Sep 2022 08:03:19 +0800 | From | kernel test robot <> | Subject | [nathan:wip/i915-kcfi 1/1] drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:441:1: warning: data definition has no type or storage class |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/nathan/linux.git wip/i915-kcfi head: 5aed167ba402539d4fb1c48c7c7801569feaf0d5 commit: 5aed167ba402539d4fb1c48c7c7801569feaf0d5 [1/1] WIP: drm/i915: Fix CFI violation config: x86_64-randconfig-a011 (https://download.01.org/0day-ci/archive/20220921/202209210813.ckU6XX3t-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-5) 11.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/nathan/linux.git/commit/?id=5aed167ba402539d4fb1c48c7c7801569feaf0d5 git remote add nathan https://git.kernel.org/pub/scm/linux/kernel/git/nathan/linux.git git fetch --no-tags nathan wip/i915-kcfi git checkout 5aed167ba402539d4fb1c48c7c7801569feaf0d5 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/drm/i915/ drivers/mtd/nand/raw/
If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:441:1: warning: data definition has no type or storage class 441 | INTEL_GT_ATTR_RO(vlv_rpe_freq_mhz); | ^~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:441:1: error: type defaults to 'int' in declaration of 'INTEL_GT_ATTR_RO' [-Werror=implicit-int] >> drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:441:1: warning: parameter names (without types) in function declaration drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:499:1: warning: data definition has no type or storage class 499 | INTEL_GT_ATTR_RO(punit_req_freq_mhz); | ^~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:499:1: error: type defaults to 'int' in declaration of 'INTEL_GT_ATTR_RO' [-Werror=implicit-int] drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:499:1: warning: parameter names (without types) in function declaration drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:511:10: error: 'attr_punit_req_freq_mhz' undeclared here (not in a function); did you mean 'attr_rps_RPn_freq_mhz'? 511 | &attr_punit_req_freq_mhz.attr, | ^~~~~~~~~~~~~~~~~~~~~~~ | attr_rps_RPn_freq_mhz drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:678:1: warning: data definition has no type or storage class 678 | INTEL_GT_ATTR_RW(media_freq_factor); | ^~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:678:1: error: type defaults to 'int' in declaration of 'INTEL_GT_ATTR_RW' [-Werror=implicit-int] drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:678:1: warning: parameter names (without types) in function declaration drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:681:1: warning: data definition has no type or storage class 681 | INTEL_GT_ATTR_RO(media_RP0_freq_mhz); | ^~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:681:1: error: type defaults to 'int' in declaration of 'INTEL_GT_ATTR_RO' [-Werror=implicit-int] drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:681:1: warning: parameter names (without types) in function declaration drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:682:1: warning: data definition has no type or storage class 682 | INTEL_GT_ATTR_RO(media_RPn_freq_mhz); | ^~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:682:1: error: type defaults to 'int' in declaration of 'INTEL_GT_ATTR_RO' [-Werror=implicit-int] drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:682:1: warning: parameter names (without types) in function declaration drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:685:10: error: 'attr_media_freq_factor' undeclared here (not in a function); did you mean 'attr_media_freq_factor_scale'? 685 | &attr_media_freq_factor.attr, | ^~~~~~~~~~~~~~~~~~~~~~ | attr_media_freq_factor_scale drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:687:10: error: 'attr_media_RP0_freq_mhz' undeclared here (not in a function); did you mean 'attr_rps_RP0_freq_mhz'? 687 | &attr_media_RP0_freq_mhz.attr, | ^~~~~~~~~~~~~~~~~~~~~~~ | attr_rps_RP0_freq_mhz drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:688:10: error: 'attr_media_RPn_freq_mhz' undeclared here (not in a function); did you mean 'attr_rps_RPn_freq_mhz'? 688 | &attr_media_RPn_freq_mhz.attr, | ^~~~~~~~~~~~~~~~~~~~~~~ | attr_rps_RPn_freq_mhz drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c: In function 'intel_sysfs_rps_init': drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:705:48: error: 'attr_vlv_rpe_freq_mhz' undeclared (first use in this function); did you mean 'attr_rps_RPn_freq_mhz'? 705 | ret = sysfs_create_file(kobj, &attr_vlv_rpe_freq_mhz.attr); | ^~~~~~~~~~~~~~~~~~~~~ | attr_rps_RPn_freq_mhz drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:705:48: note: each undeclared identifier is reported only once for each function it appears in At top level: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:657:16: warning: 'media_RPn_freq_mhz_show' defined but not used [-Wunused-function] 657 | static ssize_t media_RPn_freq_mhz_show(struct kobject *kobj, | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:636:16: warning: 'media_RP0_freq_mhz_show' defined but not used [-Wunused-function] 636 | static ssize_t media_RP0_freq_mhz_show(struct kobject *kobj, | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:607:16: warning: 'media_freq_factor_store' defined but not used [-Wunused-function] 607 | static ssize_t media_freq_factor_store(struct kobject *kobj, | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:576:16: warning: 'media_freq_factor_show' defined but not used [-Wunused-function] 576 | static ssize_t media_freq_factor_show(struct kobject *kobj, | ^~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:461:16: warning: 'punit_req_freq_mhz_show' defined but not used [-Wunused-function] 461 | static ssize_t punit_req_freq_mhz_show(struct kobject *kobj, | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:401:16: warning: 'vlv_rpe_freq_mhz_show' defined but not used [-Wunused-function] 401 | static ssize_t vlv_rpe_freq_mhz_show(struct kobject *kobj, | ^~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors
vim +441 drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c
440 > 441 INTEL_GT_ATTR_RO(vlv_rpe_freq_mhz); 442
-- 0-DAY CI Kernel Test Service https://01.org/lkp
| |