All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: an expression is expected before ')'
Date: Wed, 23 Sep 2026 03:36:49 +0800	[thread overview]
Message-ID: <202609230301.OKmfzyIt-lkp@intel.com> (raw)

:::::: 
:::::: Manual check reason: "low confidence static check warning: drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: an expression is expected before ')'"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Michal Wajdeczko <michal.wajdeczko@intel.com>
CC: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   fe2ec83746e501645709761605c2464a44fd2929
commit: 4cffecaf127ae10ada4da0636f87e0170e347402 drm/xe/pf: Prepare for new threshold KLVs
date:   9 months ago
:::::: branch date: 2 hours ago
:::::: commit date: 9 months ago
config: x86_64-randconfig-1301-20260922 (https://download.01.org/0day-ci/archive/20260923/202609230301.OKmfzyIt-lkp@intel.com/config)
compiler: gcc-13 (Debian 13.3.0-16) 13.3.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260923/202609230301.OKmfzyIt-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Fixes: 4cffecaf127a ("drm/xe/pf: Prepare for new threshold KLVs")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202609230301.OKmfzyIt-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: an expression is expected before ')'
>> drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: an expression is expected before ')'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: got ,
>> drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: an expression is expected before ')'
>> drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: an expression is expected before ')'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: got ,
>> drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: an expression is expected before ')'
>> drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: an expression is expected before ')'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: got ,
>> drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: an expression is expected before ')'
>> drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: an expression is expected before ')'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: got ,
>> drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: an expression is expected before ')'
>> drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: an expression is expected before ')'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: got ,
>> drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: an expression is expected before ')'
>> drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: an expression is expected before ')'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: got ,
   drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: undefined identifier '__VA_OPT__'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: undefined identifier '__VA_OPT__'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: undefined identifier '__VA_OPT__'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: undefined identifier '__VA_OPT__'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: undefined identifier '__VA_OPT__'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c:310:9: sparse: sparse: undefined identifier '__VA_OPT__'
--
>> drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: an expression is expected before ')'
>> drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: an expression is expected before ')'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: got ,
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: Expected ) in expression
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: got }
>> drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: an expression is expected before ')'
>> drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: an expression is expected before ')'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: got ,
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: Expected ) in expression
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: got }
>> drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: an expression is expected before ')'
>> drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: an expression is expected before ')'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: got ,
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: Expected ) in expression
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: got }
>> drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: an expression is expected before ')'
>> drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: an expression is expected before ')'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: got ,
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: Expected ) in expression
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: got }
>> drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: an expression is expected before ')'
>> drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: an expression is expected before ')'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: got ,
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: Expected ) in expression
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: got }
>> drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: an expression is expected before ')'
>> drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: an expression is expected before ')'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: got ,
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: Expected ) in expression
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: got }
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: an expression is expected before ')'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: an expression is expected before ')'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: got ,
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: an expression is expected before ')'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: an expression is expected before ')'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: got ,
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: an expression is expected before ')'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: an expression is expected before ')'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: got ,
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: an expression is expected before ')'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: an expression is expected before ')'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: got ,
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: an expression is expected before ')'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: an expression is expected before ')'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: got ,
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: an expression is expected before ')'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: an expression is expected before ')'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: got ,
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: undefined identifier '__VA_OPT__'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: undefined identifier '__VA_OPT__'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: undefined identifier '__VA_OPT__'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: undefined identifier '__VA_OPT__'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: undefined identifier '__VA_OPT__'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:314:9: sparse: sparse: undefined identifier '__VA_OPT__'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: undefined identifier '__VA_OPT__'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: undefined identifier '__VA_OPT__'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: undefined identifier '__VA_OPT__'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: undefined identifier '__VA_OPT__'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: undefined identifier '__VA_OPT__'
   drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c:2568:9: sparse: sparse: undefined identifier '__VA_OPT__'

vim +310 drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c

c4f5ded082bb943 Michal Wajdeczko 2024-05-14  287  
e42a51fb9c0f386 Michal Wajdeczko 2024-04-23  288  static void pf_add_config_attrs(struct xe_gt *gt, struct dentry *parent, unsigned int vfid)
e42a51fb9c0f386 Michal Wajdeczko 2024-04-23  289  {
e42a51fb9c0f386 Michal Wajdeczko 2024-04-23  290  	xe_gt_assert(gt, gt == extract_gt(parent));
e42a51fb9c0f386 Michal Wajdeczko 2024-04-23  291  	xe_gt_assert(gt, vfid == extract_vfid(parent));
e42a51fb9c0f386 Michal Wajdeczko 2024-04-23  292  
e42a51fb9c0f386 Michal Wajdeczko 2024-04-23  293  	debugfs_create_file_unsafe(vfid ? "doorbells_quota" : "doorbells_spare",
e42a51fb9c0f386 Michal Wajdeczko 2024-04-23  294  				   0644, parent, parent, &dbs_fops);
e42a51fb9c0f386 Michal Wajdeczko 2024-04-23  295  	debugfs_create_file_unsafe(vfid ? "contexts_quota" : "contexts_spare",
e42a51fb9c0f386 Michal Wajdeczko 2024-04-23  296  				   0644, parent, parent, &ctxs_fops);
e42a51fb9c0f386 Michal Wajdeczko 2024-04-23  297  	debugfs_create_file_unsafe("exec_quantum_ms", 0644, parent, parent,
e42a51fb9c0f386 Michal Wajdeczko 2024-04-23  298  				   &exec_quantum_fops);
e42a51fb9c0f386 Michal Wajdeczko 2024-04-23  299  	debugfs_create_file_unsafe("preempt_timeout_us", 0644, parent, parent,
e42a51fb9c0f386 Michal Wajdeczko 2024-04-23  300  				   &preempt_timeout_fops);
9d6aabe126b4a27 Michal Wajdeczko 2024-11-06  301  	debugfs_create_file_unsafe("sched_priority", 0644, parent, parent,
9d6aabe126b4a27 Michal Wajdeczko 2024-11-06  302  				   &sched_priority_fops);
c4f5ded082bb943 Michal Wajdeczko 2024-05-14  303  
c4f5ded082bb943 Michal Wajdeczko 2024-05-14  304  	/* register all threshold attributes */
4cffecaf127ae10 Michal Wajdeczko 2025-12-16  305  #define register_threshold_attribute(TAG, NAME, VER...) ({				\
4cffecaf127ae10 Michal Wajdeczko 2025-12-16  306  	if (IF_ARGS(GUC_FIRMWARE_VER_AT_LEAST(&gt->uc.guc, VER), true, VER))		\
c4f5ded082bb943 Michal Wajdeczko 2024-05-14  307  		debugfs_create_file_unsafe("threshold_" #NAME, 0644, parent, parent,	\
4cffecaf127ae10 Michal Wajdeczko 2025-12-16  308  					   &NAME##_fops);				\
4cffecaf127ae10 Michal Wajdeczko 2025-12-16  309  });
c4f5ded082bb943 Michal Wajdeczko 2024-05-14 @310  	MAKE_XE_GUC_KLV_THRESHOLDS_SET(register_threshold_attribute)
c4f5ded082bb943 Michal Wajdeczko 2024-05-14  311  #undef register_threshold_attribute
e42a51fb9c0f386 Michal Wajdeczko 2024-04-23  312  }
e42a51fb9c0f386 Michal Wajdeczko 2024-04-23  313  

:::::: The code at line 310 was first introduced by commit
:::::: c4f5ded082bb9433b180dbfbb8352f92e319149b drm/xe/pf: Allow configuration of VF thresholds over debugfs

:::::: TO: Michal Wajdeczko <michal.wajdeczko@intel.com>
:::::: CC: Michal Wajdeczko <michal.wajdeczko@intel.com>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-09-22 19:37 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=202609230301.OKmfzyIt-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.