From: kernel test robot <lkp@intel.com>
To: Sean Christopherson <seanjc@google.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [sean-jc:svm/sev_cache_opts 19/24] drivers/gpu/drm/drm_cache.c:96:2: error: invalid argument type 'void' to unary expression
Date: Thu, 24 Apr 2025 00:12:26 +0800 [thread overview]
Message-ID: <202504240050.Ipyo2SjN-lkp@intel.com> (raw)
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
reply other threads:[~2025-04-23 16:13 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=202504240050.Ipyo2SjN-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=seanjc@google.com \
/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