mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Nathan Chancellor <nathan@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
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
Date: Wed, 21 Sep 2022 08:03:19 +0800	[thread overview]
Message-ID: <202209210813.ckU6XX3t-lkp@intel.com> (raw)

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

                 reply	other threads:[~2022-09-21  0:03 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=202209210813.ckU6XX3t-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nathan@kernel.org \
    /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

all inboxes | Powered by JetHome®