public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
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:objtool-diff 5/13] arch/x86/include/asm/cmpxchg_32.h:106:9: error: expected ')'
Date: Mon, 2 Sep 2024 19:15:29 +0800	[thread overview]
Message-ID: <202409021950.hMNvmXhD-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git objtool-diff
head:   d63894f7f2633e98788b1a74a983e9dbea49d1b7
commit: 919add2736f64cbcbf2a7ec537e95ee652c9f8c3 [5/13] x86/alternative: Create symbols for special section entries
config: um-randconfig-001-20240902 (https://download.01.org/0day-ci/archive/20240902/202409021950.hMNvmXhD-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 6f682c26b04f0b349c4c473756cb8625b4f37c6d)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240902/202409021950.hMNvmXhD-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/202409021950.hMNvmXhD-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from arch/um/kernel/asm-offsets.c:1:
   In file included from arch/x86/um/shared/sysdep/kernel-offsets.h:3:
   In file included from include/linux/sched.h:16:
   In file included from include/linux/cpumask.h:14:
   In file included from include/linux/atomic.h:7:
   In file included from arch/x86/include/asm/atomic.h:8:
   In file included from arch/x86/include/asm/cmpxchg.h:143:
>> arch/x86/include/asm/cmpxchg_32.h:106:9: error: expected ')'
     106 |         return __arch_cmpxchg64_emu(ptr, old, new, LOCK_PREFIX_HERE, "lock; ");
         |                ^
   arch/x86/include/asm/cmpxchg_32.h:94:15: note: expanded from macro '__arch_cmpxchg64_emu'
      94 |         asm volatile(ALTERNATIVE(_lock_loc                              \
         |                      ^
   arch/x86/include/asm/alternative.h:228:2: note: expanded from macro 'ALTERNATIVE'
     228 |         ALTINSTR_ENTRY(ft_flags, 1)                                     \
         |         ^
   arch/x86/include/asm/alternative.h:208:2: note: expanded from macro 'ALTINSTR_ENTRY'
     208 |         FAKE_SYMBOL(__alt_, 681f)                                             \
         |         ^
   In file included from arch/um/kernel/asm-offsets.c:1:
   In file included from arch/x86/um/shared/sysdep/kernel-offsets.h:3:
   In file included from include/linux/sched.h:16:
   In file included from include/linux/cpumask.h:14:
   In file included from include/linux/atomic.h:7:
   In file included from arch/x86/include/asm/atomic.h:8:
   In file included from arch/x86/include/asm/cmpxchg.h:143:
   arch/x86/include/asm/cmpxchg_32.h:112:9: error: expected ')'
     112 |         return __arch_cmpxchg64_emu(ptr, old, new, ,);
         |                ^
   arch/x86/include/asm/cmpxchg_32.h:94:15: note: expanded from macro '__arch_cmpxchg64_emu'
      94 |         asm volatile(ALTERNATIVE(_lock_loc                              \
         |                      ^
   arch/x86/include/asm/alternative.h:228:2: note: expanded from macro 'ALTERNATIVE'
     228 |         ALTINSTR_ENTRY(ft_flags, 1)                                     \
         |         ^
   arch/x86/include/asm/alternative.h:208:2: note: expanded from macro 'ALTINSTR_ENTRY'
     208 |         FAKE_SYMBOL(__alt_, 681f)                                             \
         |         ^
   In file included from arch/um/kernel/asm-offsets.c:1:
   In file included from arch/x86/um/shared/sysdep/kernel-offsets.h:3:
   In file included from include/linux/sched.h:16:
   In file included from include/linux/cpumask.h:14:
   In file included from include/linux/atomic.h:7:
   In file included from arch/x86/include/asm/atomic.h:8:
   In file included from arch/x86/include/asm/cmpxchg.h:143:
   arch/x86/include/asm/cmpxchg_32.h:139:9: error: expected ')'
     139 |         return __arch_try_cmpxchg64_emu(ptr, oldp, new, LOCK_PREFIX_HERE, "lock; ");
         |                ^
   arch/x86/include/asm/cmpxchg_32.h:122:15: note: expanded from macro '__arch_try_cmpxchg64_emu'
     122 |         asm volatile(ALTERNATIVE(_lock_loc                              \
         |                      ^
   arch/x86/include/asm/alternative.h:228:2: note: expanded from macro 'ALTERNATIVE'
     228 |         ALTINSTR_ENTRY(ft_flags, 1)                                     \
         |         ^
   arch/x86/include/asm/alternative.h:208:2: note: expanded from macro 'ALTINSTR_ENTRY'
     208 |         FAKE_SYMBOL(__alt_, 681f)                                             \
         |         ^
   In file included from arch/um/kernel/asm-offsets.c:1:
   In file included from arch/x86/um/shared/sysdep/kernel-offsets.h:3:
   In file included from include/linux/sched.h:16:
   In file included from include/linux/cpumask.h:14:
   In file included from include/linux/atomic.h:7:
   In file included from arch/x86/include/asm/atomic.h:8:
   In file included from arch/x86/include/asm/cmpxchg.h:143:
   arch/x86/include/asm/cmpxchg_32.h:145:9: error: expected ')'
     145 |         return __arch_try_cmpxchg64_emu(ptr, oldp, new, ,);
         |                ^
   arch/x86/include/asm/cmpxchg_32.h:122:15: note: expanded from macro '__arch_try_cmpxchg64_emu'
     122 |         asm volatile(ALTERNATIVE(_lock_loc                              \
         |                      ^
   arch/x86/include/asm/alternative.h:228:2: note: expanded from macro 'ALTERNATIVE'
     228 |         ALTINSTR_ENTRY(ft_flags, 1)                                     \
         |         ^
   arch/x86/include/asm/alternative.h:208:2: note: expanded from macro 'ALTINSTR_ENTRY'
     208 |         FAKE_SYMBOL(__alt_, 681f)                                             \
         |         ^
   In file included from arch/um/kernel/asm-offsets.c:1:
   In file included from arch/x86/um/shared/sysdep/kernel-offsets.h:3:
   In file included from include/linux/sched.h:16:
   In file included from include/linux/cpumask.h:14:
   In file included from include/linux/atomic.h:7:
   In file included from arch/x86/include/asm/atomic.h:172:
   arch/x86/include/asm/atomic64_32.h:107:2: error: expected ')'
     107 |         alternative_atomic64(xchg, "=&A" (o),
         |         ^
   arch/x86/include/asm/atomic64_32.h:72:2: note: expanded from macro 'alternative_atomic64'
      72 |         __alternative_atomic64(f, f, ASM_OUTPUT2(out), ## in)
         |         ^
   arch/x86/include/asm/atomic64_32.h:59:2: note: expanded from macro '__alternative_atomic64'
      59 |         alternative_call(atomic64_##f##_386, atomic64_##g##_cx8, \
         |         ^
   arch/x86/include/asm/alternative.h:304:23: note: expanded from macro 'alternative_call'
     304 |         asm_inline volatile (ALTERNATIVE("call %c[old]", "call %c[new]", ft_flags) \
         |                              ^
   arch/x86/include/asm/alternative.h:228:2: note: expanded from macro 'ALTERNATIVE'
     228 |         ALTINSTR_ENTRY(ft_flags, 1)                                     \
         |         ^
   arch/x86/include/asm/alternative.h:208:2: note: expanded from macro 'ALTINSTR_ENTRY'
     208 |         FAKE_SYMBOL(__alt_, 681f)                                             \
         |         ^
   In file included from arch/um/kernel/asm-offsets.c:1:
   In file included from arch/x86/um/shared/sysdep/kernel-offsets.h:3:
   In file included from include/linux/sched.h:16:
   In file included from include/linux/cpumask.h:14:
   In file included from include/linux/atomic.h:7:
   In file included from arch/x86/include/asm/atomic.h:172:
   arch/x86/include/asm/atomic64_32.h:118:2: error: expected ')'
     118 |         alternative_atomic64(set, /* no output */,


vim +106 arch/x86/include/asm/cmpxchg_32.h

79e1dd05d1a22e Arjan van de Ven 2009-09-30  103  
7016cc5def44b9 Uros Bizjak      2024-04-08  104  static __always_inline u64 arch_cmpxchg64(volatile u64 *ptr, u64 old, u64 new)
7016cc5def44b9 Uros Bizjak      2024-04-08  105  {
33eb8ab4ec83cf Uros Bizjak      2024-04-17 @106  	return __arch_cmpxchg64_emu(ptr, old, new, LOCK_PREFIX_HERE, "lock; ");
7016cc5def44b9 Uros Bizjak      2024-04-08  107  }
7016cc5def44b9 Uros Bizjak      2024-04-08  108  #define arch_cmpxchg64 arch_cmpxchg64
79e1dd05d1a22e Arjan van de Ven 2009-09-30  109  

:::::: The code at line 106 was first introduced by commit
:::::: 33eb8ab4ec83cf0975d0113966c7e71cd6be60b2 locking/atomic/x86: Merge __arch{,_try}_cmpxchg64_emu_local() with __arch{,_try}_cmpxchg64_emu()

:::::: TO: Uros Bizjak <ubizjak@gmail.com>
:::::: CC: Ingo Molnar <mingo@kernel.org>

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

                 reply	other threads:[~2024-09-02 11:15 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=202409021950.hMNvmXhD-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox