From: kernel test robot <lkp@intel.com>
To: Josh Poimboeuf <jpoimboe@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [jpoimboe:asm-call-constraint-fix 4/5] mm/slub.c:3573:9: error: expected ')'
Date: Fri, 28 Feb 2025 21:49:45 +0800 [thread overview]
Message-ID: <202502282103.R6IWsNEA-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git asm-call-constraint-fix
head: a882d0410fb655d41b5c5158dcd1a720275cf505
commit: 8f0a744bb81e98286456e1f433565240cd66e440 [4/5] x86: Convert ASM_CALL_CONSTRAINT to input constraint
config: i386-buildonly-randconfig-002-20250228 (https://download.01.org/0day-ci/archive/20250228/202502282103.R6IWsNEA-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250228/202502282103.R6IWsNEA-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/202502282103.R6IWsNEA-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from mm/slub.c:49:
In file included from mm/internal.h:13:
include/linux/mm_inline.h:47:41: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
47 | __mod_lruvec_state(lruvec, NR_LRU_BASE + lru, nr_pages);
| ~~~~~~~~~~~ ^ ~~~
include/linux/mm_inline.h:49:22: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
49 | NR_ZONE_LRU_BASE + lru, nr_pages);
| ~~~~~~~~~~~~~~~~ ^ ~~~
>> mm/slub.c:3573:9: error: expected ')'
3573 | return this_cpu_try_cmpxchg_freelist(s->cpu_slab->freelist_tid.full,
| ^
mm/slab.h:31:39: note: expanded from macro 'this_cpu_try_cmpxchg_freelist'
31 | #define this_cpu_try_cmpxchg_freelist this_cpu_try_cmpxchg64
| ^
arch/x86/include/asm/percpu.h:368:50: note: expanded from macro 'this_cpu_try_cmpxchg64'
368 | #define this_cpu_try_cmpxchg64(pcp, ovalp, nval) percpu_try_cmpxchg64_op(8, volatile, pcp, ovalp, nval)
| ^
arch/x86/include/asm/percpu.h:359:5: note: expanded from macro 'percpu_try_cmpxchg64_op'
359 | COMMA_ASM_CALL_CONSTRAINT) \
| ^
>> mm/slub.c:3573:9: error: expected expression
mm/slab.h:31:39: note: expanded from macro 'this_cpu_try_cmpxchg_freelist'
31 | #define this_cpu_try_cmpxchg_freelist this_cpu_try_cmpxchg64
| ^
arch/x86/include/asm/percpu.h:368:50: note: expanded from macro 'this_cpu_try_cmpxchg64'
368 | #define this_cpu_try_cmpxchg64(pcp, ovalp, nval) percpu_try_cmpxchg64_op(8, volatile, pcp, ovalp, nval)
| ^
arch/x86/include/asm/percpu.h:360:3: note: expanded from macro 'percpu_try_cmpxchg64_op'
360 | : "memory"); \
| ^
>> mm/slub.c:3573:9: error: expected expression
mm/slab.h:31:39: note: expanded from macro 'this_cpu_try_cmpxchg_freelist'
31 | #define this_cpu_try_cmpxchg_freelist this_cpu_try_cmpxchg64
| ^
arch/x86/include/asm/percpu.h:368:50: note: expanded from macro 'this_cpu_try_cmpxchg64'
368 | #define this_cpu_try_cmpxchg64(pcp, ovalp, nval) percpu_try_cmpxchg64_op(8, volatile, pcp, ovalp, nval)
| ^
arch/x86/include/asm/percpu.h:360:13: note: expanded from macro 'percpu_try_cmpxchg64_op'
360 | : "memory"); \
| ^
2 warnings and 3 errors generated.
vim +3573 mm/slub.c
0b303fb402862dc Vlastimil Babka 2021-05-08 3563
0af8489b0216fa1 Vlastimil Babka 2022-11-15 3564 #ifndef CONFIG_SLUB_TINY
6801be4f2653e5f Peter Zijlstra 2023-05-31 3565 static inline bool
6801be4f2653e5f Peter Zijlstra 2023-05-31 3566 __update_cpu_freelist_fast(struct kmem_cache *s,
6801be4f2653e5f Peter Zijlstra 2023-05-31 3567 void *freelist_old, void *freelist_new,
6801be4f2653e5f Peter Zijlstra 2023-05-31 3568 unsigned long tid)
6801be4f2653e5f Peter Zijlstra 2023-05-31 3569 {
6801be4f2653e5f Peter Zijlstra 2023-05-31 3570 freelist_aba_t old = { .freelist = freelist_old, .counter = tid };
6801be4f2653e5f Peter Zijlstra 2023-05-31 3571 freelist_aba_t new = { .freelist = freelist_new, .counter = next_tid(tid) };
6801be4f2653e5f Peter Zijlstra 2023-05-31 3572
6801be4f2653e5f Peter Zijlstra 2023-05-31 @3573 return this_cpu_try_cmpxchg_freelist(s->cpu_slab->freelist_tid.full,
6801be4f2653e5f Peter Zijlstra 2023-05-31 3574 &old.full, new.full);
6801be4f2653e5f Peter Zijlstra 2023-05-31 3575 }
6801be4f2653e5f Peter Zijlstra 2023-05-31 3576
:::::: The code at line 3573 was first introduced by commit
:::::: 6801be4f2653e5fdddca73b527cf0728284ba8a3 slub: Replace cmpxchg_double()
:::::: TO: Peter Zijlstra <peterz@infradead.org>
:::::: CC: Peter Zijlstra <peterz@infradead.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-02-28 13:50 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=202502282103.R6IWsNEA-lkp@intel.com \
--to=lkp@intel.com \
--cc=jpoimboe@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@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.