* [sean-jc:svm/sev_cache_opts 19/24] drivers/gpu/drm/drm_cache.c:96:2: error: invalid argument type 'void' to unary expression
@ 2025-04-23 16:12 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-04-23 16:12 UTC (permalink / raw)
To: Sean Christopherson; +Cc: llvm, oe-kbuild-all
tree: https://github.com/sean-jc/linux svm/sev_cache_opts
head: fc0ae43d0eef1292a97a3109a394871b69ac9459
commit: a3224547b78b7ba78d71baa8cf1ae1fcefd6fad8 [19/24] x86, lib: Drop the unused return value from wbinvd_on_all_cpus()
config: x86_64-buildonly-randconfig-004-20250423 (https://download.01.org/0day-ci/archive/20250424/202504240050.Ipyo2SjN-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250424/202504240050.Ipyo2SjN-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/oe-kbuild-all/202504240050.Ipyo2SjN-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/drm_cache.c:96:2: error: invalid argument type 'void' to unary expression
96 | if (wbinvd_on_all_cpus())
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:55:45: note: expanded from macro 'if'
55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:57:52: note: expanded from macro '__trace_if_var'
57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
>> drivers/gpu/drm/drm_cache.c:96:2: error: invalid argument type 'void' to unary expression
96 | if (wbinvd_on_all_cpus())
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:55:45: note: expanded from macro 'if'
55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:57:61: note: expanded from macro '__trace_if_var'
57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
>> drivers/gpu/drm/drm_cache.c:96:2: error: invalid argument type 'void' to unary expression
96 | if (wbinvd_on_all_cpus())
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:55:45: note: expanded from macro 'if'
55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:57:86: note: expanded from macro '__trace_if_var'
57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ~~~~~~~~~~~~~~~~~^~~~~
include/linux/compiler.h:68:3: note: expanded from macro '__trace_if_value'
68 | (cond) ? \
| ^~~~
drivers/gpu/drm/drm_cache.c:142:2: error: invalid argument type 'void' to unary expression
142 | if (wbinvd_on_all_cpus())
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:55:45: note: expanded from macro 'if'
55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:57:52: note: expanded from macro '__trace_if_var'
57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/gpu/drm/drm_cache.c:142:2: error: invalid argument type 'void' to unary expression
142 | if (wbinvd_on_all_cpus())
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:55:45: note: expanded from macro 'if'
55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:57:61: note: expanded from macro '__trace_if_var'
57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/gpu/drm/drm_cache.c:142:2: error: invalid argument type 'void' to unary expression
142 | if (wbinvd_on_all_cpus())
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:55:45: note: expanded from macro 'if'
55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:57:86: note: expanded from macro '__trace_if_var'
57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ~~~~~~~~~~~~~~~~~^~~~~
include/linux/compiler.h:68:3: note: expanded from macro '__trace_if_value'
68 | (cond) ? \
| ^~~~
drivers/gpu/drm/drm_cache.c:175:2: error: invalid argument type 'void' to unary expression
175 | if (wbinvd_on_all_cpus())
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:55:45: note: expanded from macro 'if'
55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:57:52: note: expanded from macro '__trace_if_var'
57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/gpu/drm/drm_cache.c:175:2: error: invalid argument type 'void' to unary expression
175 | if (wbinvd_on_all_cpus())
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:55:45: note: expanded from macro 'if'
55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:57:61: note: expanded from macro '__trace_if_var'
57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/gpu/drm/drm_cache.c:175:2: error: invalid argument type 'void' to unary expression
175 | if (wbinvd_on_all_cpus())
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:55:45: note: expanded from macro 'if'
55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:57:86: note: expanded from macro '__trace_if_var'
57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ~~~~~~~~~~~~~~~~~^~~~~
include/linux/compiler.h:68:3: note: expanded from macro '__trace_if_value'
68 | (cond) ? \
| ^~~~
9 errors generated.
vim +/void +96 drivers/gpu/drm/drm_cache.c
c9c97b8c750198 Dave Airlie 2009-08-27 89
c9c97b8c750198 Dave Airlie 2009-08-27 90 #if defined(CONFIG_X86)
906bf7fda2c9cf Borislav Petkov 2016-03-29 91 if (static_cpu_has(X86_FEATURE_CLFLUSH)) {
c9c97b8c750198 Dave Airlie 2009-08-27 92 drm_cache_flush_clflush(pages, num_pages);
673a394b1e3b69 Eric Anholt 2008-07-30 93 return;
673a394b1e3b69 Eric Anholt 2008-07-30 94 }
673a394b1e3b69 Eric Anholt 2008-07-30 95
b04d4a38c0691e Ben Widawsky 2014-12-15 @96 if (wbinvd_on_all_cpus())
499447db0ebf43 Joe Perches 2017-02-28 97 pr_err("Timed out waiting for cache flush\n");
c9c97b8c750198 Dave Airlie 2009-08-27 98
:::::: The code at line 96 was first introduced by commit
:::::: b04d4a38c0691e4467fa2988b6fe481bf759daaf drm/cache: Use wbinvd helpers
:::::: TO: Ben Widawsky <ben@bwidawsk.net>
:::::: CC: Daniel Vetter <daniel.vetter@ffwll.ch>
--
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:[~2025-04-23 16:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-23 16:12 [sean-jc:svm/sev_cache_opts 19/24] drivers/gpu/drm/drm_cache.c:96:2: error: invalid argument type 'void' to unary expression kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox