* [linux-next:master 1582/6849] drivers/gpu/drm/xe/xe_guc_ads.c:411:9: sparse: sparse: Trying to use reserved word 'return' as identifier
@ 2026-01-19 6:58 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-01-19 6:58 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp
::::::
:::::: Manual check reason: "low confidence static check warning: drivers/gpu/drm/xe/xe_guc_ads.c:411:9: sparse: sparse: Trying to use reserved word 'return' as identifier"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
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/next/linux-next.git master
head: 46fe65a2c28ecf5df1a7475aba1f08ccf4c0ac1b
commit: 09af64eba63ece2d928295e61ab1d56ae264447c [1582/6849] drm/xe/guc: Introduce GUC_FIRMWARE_VER_AT_LEAST helper
:::::: branch date: 3 days ago
:::::: commit date: 5 weeks ago
config: i386-randconfig-062-20260119 (https://download.01.org/0day-ci/archive/20260119/202601191408.NFGKnKfR-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260119/202601191408.NFGKnKfR-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
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202601191408.NFGKnKfR-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: Expected ) in nested declarator
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: got {
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: Expected ) in function declarator
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: got (
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: Trying to use reserved word 'if' as identifier
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: Expected ; at the end of type declaration
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: got }
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: Expected ) in function declarator
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: got !
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: Trying to use reserved word 'if' as identifier
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: Expected ; at the end of type declaration
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: got }
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: Trying to use reserved word 'do' as identifier
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: Expected ; at end of declaration
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: got {
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: Expected ; at the end of type declaration
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: got }
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: Expected ; at the end of type declaration
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: got }
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: Expected ; at the end of type declaration
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: got }
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: Expected ; at the end of type declaration
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: got }
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: Expected ; at the end of type declaration
drivers/gpu/drm/xe/xe_guc_ads.c:373:9: sparse: sparse: got }
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: Expected ) in nested declarator
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: got {
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: Expected ) in nested declarator
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: got {
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: Expected ) in nested declarator
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: got {
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: Expected ) in function declarator
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: got (
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: Trying to use reserved word 'if' as identifier
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: Expected ; at the end of type declaration
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: got }
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: Expected ) in function declarator
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: got !
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: Trying to use reserved word 'if' as identifier
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: Expected ; at the end of type declaration
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: got }
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: Trying to use reserved word 'do' as identifier
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: Expected ; at end of declaration
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: got {
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: Expected ; at the end of type declaration
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: got }
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: Expected ; at the end of type declaration
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: got }
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: Expected ; at the end of type declaration
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: got }
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: Expected ; at the end of type declaration
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: got }
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: Expected ; at the end of type declaration
drivers/gpu/drm/xe/xe_guc_ads.c:374:9: sparse: sparse: got }
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: Expected ) in nested declarator
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: got {
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: Expected ) in nested declarator
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: got {
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: Expected ) in nested declarator
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: got {
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: Expected ) in function declarator
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: got (
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: Trying to use reserved word 'if' as identifier
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: Expected ; at the end of type declaration
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: got }
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: Expected ) in function declarator
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: got !
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: Trying to use reserved word 'if' as identifier
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: Expected ; at the end of type declaration
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: got }
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: Trying to use reserved word 'do' as identifier
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: Expected ; at end of declaration
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: got {
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: Expected ; at the end of type declaration
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: got }
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: Expected ; at the end of type declaration
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: got }
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: Expected ; at the end of type declaration
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: got }
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: Expected ; at the end of type declaration
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: got }
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: Expected ; at the end of type declaration
drivers/gpu/drm/xe/xe_guc_ads.c:375:9: sparse: sparse: got }
drivers/gpu/drm/xe/xe_guc_ads.c:376:1: sparse: sparse: Expected ; at the end of type declaration
drivers/gpu/drm/xe/xe_guc_ads.c:376:1: sparse: sparse: got }
drivers/gpu/drm/xe/xe_guc_ads.c:385:1: sparse: sparse: Expected ; at the end of type declaration
drivers/gpu/drm/xe/xe_guc_ads.c:385:1: sparse: sparse: got }
drivers/gpu/drm/xe/xe_guc_ads.c:396:12: sparse: sparse: Expected ; at end of declaration
drivers/gpu/drm/xe/xe_guc_ads.c:396:12: sparse: sparse: got ->
drivers/gpu/drm/xe/xe_guc_ads.c:397:12: sparse: sparse: Expected ; at end of declaration
drivers/gpu/drm/xe/xe_guc_ads.c:397:12: sparse: sparse: got ->
drivers/gpu/drm/xe/xe_guc_ads.c:398:12: sparse: sparse: Expected ; at end of declaration
drivers/gpu/drm/xe/xe_guc_ads.c:398:12: sparse: sparse: got ->
drivers/gpu/drm/xe/xe_guc_ads.c:399:12: sparse: sparse: Expected ; at end of declaration
drivers/gpu/drm/xe/xe_guc_ads.c:399:12: sparse: sparse: got ->
drivers/gpu/drm/xe/xe_guc_ads.c:406:19: sparse: sparse: Expected ) in function declarator
drivers/gpu/drm/xe/xe_guc_ads.c:406:19: sparse: sparse: got (
drivers/gpu/drm/xe/xe_guc_ads.c:406:9: sparse: sparse: Trying to use reserved word 'if' as identifier
drivers/gpu/drm/xe/xe_guc_ads.c:409:12: sparse: sparse: Expected ; at end of declaration
drivers/gpu/drm/xe/xe_guc_ads.c:409:12: sparse: sparse: got ->
>> drivers/gpu/drm/xe/xe_guc_ads.c:411:9: sparse: sparse: Trying to use reserved word 'return' as identifier
drivers/gpu/drm/xe/xe_guc_ads.c:411:16: sparse: sparse: Expected ; at end of declaration
drivers/gpu/drm/xe/xe_guc_ads.c:411:16: sparse: sparse: got 0
drivers/gpu/drm/xe/xe_guc_ads.c:412:1: sparse: sparse: Expected ; at the end of type declaration
drivers/gpu/drm/xe/xe_guc_ads.c:412:1: sparse: sparse: got }
drivers/gpu/drm/xe/xe_guc_ads.c:350:13: sparse: sparse: undefined identifier '__VA_OPT__'
drivers/gpu/drm/xe/xe_guc_ads.c:350:63: sparse: sparse: undefined identifier '__gt'
drivers/gpu/drm/xe/xe_guc_ads.c:353:63: sparse: sparse: undefined identifier '__xe'
drivers/gpu/drm/xe/xe_guc_ads.c:358:17: sparse: sparse: symbol 'guc_waklv_enable' redeclared with different type (incompatible argument 1 (different base types)):
drivers/gpu/drm/xe/xe_guc_ads.c:358:17: sparse: int static [signed] [toplevel] guc_waklv_enable( ... )
drivers/gpu/drm/xe/xe_guc_ads.c:287:13: sparse: note: previously declared as:
drivers/gpu/drm/xe/xe_guc_ads.c:287:13: sparse: void static [toplevel] guc_waklv_enable( ... )
drivers/gpu/drm/xe/xe_guc_ads.c:362:13: sparse: sparse: undefined identifier '__xe'
drivers/gpu/drm/xe/xe_guc_ads.c:366:35: sparse: sparse: undefined identifier 'ads'
drivers/gpu/drm/xe/xe_guc_ads.c:366:42: sparse: sparse: undefined identifier 'remain'
drivers/gpu/drm/xe/xe_guc_ads.c:370:39: sparse: sparse: undefined identifier 'ads'
drivers/gpu/drm/xe/xe_guc_ads.c:371:37: sparse: sparse: undefined identifier 'ads'
drivers/gpu/drm/xe/xe_guc_ads.c:392:38: sparse: sparse: undefined identifier 'ads'
drivers/gpu/drm/xe/xe_guc_ads.c:401:43: sparse: sparse: undefined identifier 'xe'
drivers/gpu/drm/xe/xe_guc_ads.c:401:9: sparse: sparse: symbol 'bo' redeclared with different type (different base types):
drivers/gpu/drm/xe/xe_guc_ads.c:401:9: sparse: int [addressable] [toplevel] bo
drivers/gpu/drm/xe/xe_guc_ads.c:394:22: sparse: note: previously declared as:
drivers/gpu/drm/xe/xe_guc_ads.c:394:22: sparse: struct xe_bo *[addressable] [toplevel] bo
vim +/return +411 drivers/gpu/drm/xe/xe_guc_ads.c
dd08ebf6c3525a Matthew Brost 2023-03-30 388
dd08ebf6c3525a Matthew Brost 2023-03-30 389 int xe_guc_ads_init(struct xe_guc_ads *ads)
dd08ebf6c3525a Matthew Brost 2023-03-30 390 {
dd08ebf6c3525a Matthew Brost 2023-03-30 391 struct xe_device *xe = ads_to_xe(ads);
dd08ebf6c3525a Matthew Brost 2023-03-30 392 struct xe_gt *gt = ads_to_gt(ads);
876611c2b75689 Matt Roper 2023-06-01 393 struct xe_tile *tile = gt_to_tile(gt);
dd08ebf6c3525a Matthew Brost 2023-03-30 394 struct xe_bo *bo;
dd08ebf6c3525a Matthew Brost 2023-03-30 395
dd08ebf6c3525a Matthew Brost 2023-03-30 396 ads->golden_lrc_size = calculate_golden_lrc_size(ads);
9c8c7a7e6f1f55 Zhanjun Dong 2024-10-04 397 ads->capture_size = xe_guc_capture_ads_input_worst_size(ads_to_guc(ads));
dd08ebf6c3525a Matthew Brost 2023-03-30 398 ads->regset_size = calculate_regset_size(gt);
d6da81a4785ca6 Badal Nilawar 2024-04-05 399 ads->ads_waklv_size = calculate_waklv_size(ads);
dd08ebf6c3525a Matthew Brost 2023-03-30 400
0e1a47fcabc8ff Michał Winiarski 2023-12-05 401 bo = xe_managed_bo_create_pin_map(xe, tile, guc_ads_size(ads) + MAX_GOLDEN_LRC_SIZE,
62742d12663145 Lucas De Marchi 2024-03-22 402 XE_BO_FLAG_SYSTEM |
62742d12663145 Lucas De Marchi 2024-03-22 403 XE_BO_FLAG_GGTT |
045448da87bfb1 Matthew Brost 2025-04-03 404 XE_BO_FLAG_GGTT_INVALIDATE |
045448da87bfb1 Matthew Brost 2025-04-03 405 XE_BO_FLAG_PINNED_NORESTORE);
dd08ebf6c3525a Matthew Brost 2023-03-30 406 if (IS_ERR(bo))
dd08ebf6c3525a Matthew Brost 2023-03-30 407 return PTR_ERR(bo);
dd08ebf6c3525a Matthew Brost 2023-03-30 408
dd08ebf6c3525a Matthew Brost 2023-03-30 409 ads->bo = bo;
dd08ebf6c3525a Matthew Brost 2023-03-30 410
dd08ebf6c3525a Matthew Brost 2023-03-30 @411 return 0;
dd08ebf6c3525a Matthew Brost 2023-03-30 412 }
91b2c42c214f57 Francois Dugast 2024-09-27 413 ALLOW_ERROR_INJECTION(xe_guc_ads_init, ERRNO); /* See xe_pci_probe() */
dd08ebf6c3525a Matthew Brost 2023-03-30 414
:::::: The code at line 411 was first introduced by commit
:::::: dd08ebf6c3525a7ea2186e636df064ea47281987 drm/xe: Introduce a new DRM driver for Intel GPUs
:::::: TO: Matthew Brost <matthew.brost@intel.com>
:::::: CC: Rodrigo Vivi <rodrigo.vivi@intel.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-01-19 6:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-19 6:58 [linux-next:master 1582/6849] drivers/gpu/drm/xe/xe_guc_ads.c:411:9: sparse: sparse: Trying to use reserved word 'return' as identifier kernel test robot
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.