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 28/31] include/asm-generic/io.h:195:2: error: expected ')'
Date: Wed, 4 Sep 2024 11:49:25 +0800	[thread overview]
Message-ID: <202409041100.Y71WlJ1S-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git objtool-diff
head:   b99f69f0fc6671bbc510435aadcf25aacf016c38
commit: 7bc1bcb1cd875350948f43c77c9895173bd22012 [28/31] x86/alternative: Create symbols for special section entries
config: um-allnoconfig (https://download.01.org/0day-ci/archive/20240904/202409041100.Y71WlJ1S-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240904/202409041100.Y71WlJ1S-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/202409041100.Y71WlJ1S-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from kernel/fork.c:34:
   In file included from include/linux/mempolicy.h:15:
   In file included from include/linux/pagemap.h:11:
   In file included from include/linux/highmem.h:12:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/um/include/asm/hardirq.h:5:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:14:
   In file included from arch/um/include/asm/io.h:24:
>> include/asm-generic/io.h:195:2: error: expected ')'
     195 |         __io_ar(val);
         |         ^
   include/asm-generic/io.h:30:25: note: expanded from macro '__io_ar'
      30 | #define __io_ar(v)      rmb()
         |                         ^
   arch/x86/um/asm/barrier.h:16:15: note: expanded from macro 'rmb'
      16 | #define rmb()   alternative("lock; addl $0,0(%%esp)", "lfence", X86_FEATURE_XMM2)
         |                 ^
   arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
     277 |         asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
         |                              ^
   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 kernel/fork.c:34:
   In file included from include/linux/mempolicy.h:15:
   In file included from include/linux/pagemap.h:11:
   In file included from include/linux/highmem.h:12:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/um/include/asm/hardirq.h:5:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:14:
   In file included from arch/um/include/asm/io.h:24:
   include/asm-generic/io.h:210:2: error: expected ')'
     210 |         __io_ar(val);
         |         ^
   include/asm-generic/io.h:30:25: note: expanded from macro '__io_ar'
      30 | #define __io_ar(v)      rmb()
         |                         ^
   arch/x86/um/asm/barrier.h:16:15: note: expanded from macro 'rmb'
      16 | #define rmb()   alternative("lock; addl $0,0(%%esp)", "lfence", X86_FEATURE_XMM2)
         |                 ^
   arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
     277 |         asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
         |                              ^
   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 kernel/fork.c:34:
   In file included from include/linux/mempolicy.h:15:
   In file included from include/linux/pagemap.h:11:
   In file included from include/linux/highmem.h:12:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/um/include/asm/hardirq.h:5:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:14:
   In file included from arch/um/include/asm/io.h:24:
   include/asm-generic/io.h:225:2: error: expected ')'
     225 |         __io_ar(val);
         |         ^
   include/asm-generic/io.h:30:25: note: expanded from macro '__io_ar'
      30 | #define __io_ar(v)      rmb()
         |                         ^
   arch/x86/um/asm/barrier.h:16:15: note: expanded from macro 'rmb'
      16 | #define rmb()   alternative("lock; addl $0,0(%%esp)", "lfence", X86_FEATURE_XMM2)
         |                 ^
   arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
     277 |         asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
         |                              ^
   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 kernel/fork.c:34:
   In file included from include/linux/mempolicy.h:15:
   In file included from include/linux/pagemap.h:11:
   In file included from include/linux/highmem.h:12:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/um/include/asm/hardirq.h:5:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:14:
   In file included from arch/um/include/asm/io.h:24:
   include/asm-generic/io.h:253:2: error: expected ')'
     253 |         __io_bw();
         |         ^
   include/asm-generic/io.h:39:24: note: expanded from macro '__io_bw'
      39 | #define __io_bw()      wmb()
         |                        ^
   arch/x86/um/asm/barrier.h:17:15: note: expanded from macro 'wmb'
      17 | #define wmb()   alternative("lock; addl $0,0(%%esp)", "sfence", X86_FEATURE_XMM)
         |                 ^
   arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
     277 |         asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
         |                              ^
   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 kernel/exec_domain.c:19:
   In file included from include/linux/syscalls.h:93:
   In file included from include/trace/syscall.h:7:
   In file included from include/linux/trace_events.h:9:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/um/include/asm/hardirq.h:5:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:14:
   In file included from arch/um/include/asm/io.h:24:
>> include/asm-generic/io.h:195:2: error: expected ')'
     195 |         __io_ar(val);
         |         ^
   include/asm-generic/io.h:30:25: note: expanded from macro '__io_ar'
      30 | #define __io_ar(v)      rmb()
         |                         ^
   arch/x86/um/asm/barrier.h:16:15: note: expanded from macro 'rmb'
      16 | #define rmb()   alternative("lock; addl $0,0(%%esp)", "lfence", X86_FEATURE_XMM2)
         |                 ^
   arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
     277 |         asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
         |                              ^
   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 kernel/exec_domain.c:19:
   In file included from include/linux/syscalls.h:93:
   In file included from include/trace/syscall.h:7:
   In file included from include/linux/trace_events.h:9:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/um/include/asm/hardirq.h:5:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:14:
   In file included from arch/um/include/asm/io.h:24:
   include/asm-generic/io.h:210:2: error: expected ')'
     210 |         __io_ar(val);
         |         ^
   include/asm-generic/io.h:30:25: note: expanded from macro '__io_ar'
      30 | #define __io_ar(v)      rmb()
         |                         ^
   arch/x86/um/asm/barrier.h:16:15: note: expanded from macro 'rmb'
      16 | #define rmb()   alternative("lock; addl $0,0(%%esp)", "lfence", X86_FEATURE_XMM2)
         |                 ^
   arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
     277 |         asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
         |                              ^
   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 kernel/exec_domain.c:19:
   In file included from include/linux/syscalls.h:93:
   In file included from include/trace/syscall.h:7:
   In file included from include/linux/trace_events.h:9:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/um/include/asm/hardirq.h:5:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:14:
   In file included from arch/um/include/asm/io.h:24:
   include/asm-generic/io.h:225:2: error: expected ')'
     225 |         __io_ar(val);
         |         ^
   include/asm-generic/io.h:30:25: note: expanded from macro '__io_ar'
      30 | #define __io_ar(v)      rmb()
         |                         ^
   arch/x86/um/asm/barrier.h:16:15: note: expanded from macro 'rmb'
      16 | #define rmb()   alternative("lock; addl $0,0(%%esp)", "lfence", X86_FEATURE_XMM2)
         |                 ^
   arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
     277 |         asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
         |                              ^
   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 kernel/exec_domain.c:19:
   In file included from include/linux/syscalls.h:93:
   In file included from include/trace/syscall.h:7:
   In file included from include/linux/trace_events.h:9:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/um/include/asm/hardirq.h:5:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:14:
   In file included from arch/um/include/asm/io.h:24:
   include/asm-generic/io.h:253:2: error: expected ')'
     253 |         __io_bw();
         |         ^
   include/asm-generic/io.h:39:24: note: expanded from macro '__io_bw'
      39 | #define __io_bw()      wmb()
         |                        ^
   arch/x86/um/asm/barrier.h:17:15: note: expanded from macro 'wmb'
      17 | #define wmb()   alternative("lock; addl $0,0(%%esp)", "sfence", X86_FEATURE_XMM)
         |                 ^
   arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
     277 |         asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
         |                              ^
   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 kernel/panic.c:14:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/um/include/asm/hardirq.h:5:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:14:
   In file included from arch/um/include/asm/io.h:24:
>> include/asm-generic/io.h:195:2: error: expected ')'
     195 |         __io_ar(val);
         |         ^
   include/asm-generic/io.h:30:25: note: expanded from macro '__io_ar'
      30 | #define __io_ar(v)      rmb()
         |                         ^
   arch/x86/um/asm/barrier.h:16:15: note: expanded from macro 'rmb'
      16 | #define rmb()   alternative("lock; addl $0,0(%%esp)", "lfence", X86_FEATURE_XMM2)
         |                 ^
   arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
     277 |         asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
         |                              ^
   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 kernel/panic.c:14:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/um/include/asm/hardirq.h:5:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:14:
   In file included from arch/um/include/asm/io.h:24:
   include/asm-generic/io.h:210:2: error: expected ')'
     210 |         __io_ar(val);
         |         ^
   include/asm-generic/io.h:30:25: note: expanded from macro '__io_ar'
      30 | #define __io_ar(v)      rmb()
         |                         ^
   arch/x86/um/asm/barrier.h:16:15: note: expanded from macro 'rmb'
      16 | #define rmb()   alternative("lock; addl $0,0(%%esp)", "lfence", X86_FEATURE_XMM2)
         |                 ^
   arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
     277 |         asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
         |                              ^
   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 kernel/panic.c:14:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/um/include/asm/hardirq.h:5:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:14:
   In file included from arch/um/include/asm/io.h:24:
   include/asm-generic/io.h:225:2: error: expected ')'
     225 |         __io_ar(val);
         |         ^
   include/asm-generic/io.h:30:25: note: expanded from macro '__io_ar'
      30 | #define __io_ar(v)      rmb()
         |                         ^
   arch/x86/um/asm/barrier.h:16:15: note: expanded from macro 'rmb'
      16 | #define rmb()   alternative("lock; addl $0,0(%%esp)", "lfence", X86_FEATURE_XMM2)
         |                 ^
   arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
     277 |         asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
         |                              ^
   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 kernel/panic.c:14:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/um/include/asm/hardirq.h:5:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:14:
   In file included from arch/um/include/asm/io.h:24:
   include/asm-generic/io.h:253:2: error: expected ')'
     253 |         __io_bw();
         |         ^
   include/asm-generic/io.h:39:24: note: expanded from macro '__io_bw'
      39 | #define __io_bw()      wmb()
         |                        ^
   arch/x86/um/asm/barrier.h:17:15: note: expanded from macro 'wmb'
      17 | #define wmb()   alternative("lock; addl $0,0(%%esp)", "sfence", X86_FEATURE_XMM)
         |                 ^
   arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
     277 |         asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
         |                              ^
   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 kernel/panic.c:14:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/um/include/asm/hardirq.h:5:
   In file included from include/asm-generic/hardirq.h:17:
..


vim +195 include/asm-generic/io.h

cd24834130ac65 Jan Glauber        2012-11-29  180  
9216efafc52ff9 Thierry Reding     2014-10-01  181  /*
9216efafc52ff9 Thierry Reding     2014-10-01  182   * {read,write}{b,w,l,q}() access little endian memory and return result in
9216efafc52ff9 Thierry Reding     2014-10-01  183   * native endianness.
9216efafc52ff9 Thierry Reding     2014-10-01  184   */
3f7e212df82ca0 Arnd Bergmann      2009-05-13  185  
9216efafc52ff9 Thierry Reding     2014-10-01  186  #ifndef readb
9216efafc52ff9 Thierry Reding     2014-10-01  187  #define readb readb
9216efafc52ff9 Thierry Reding     2014-10-01  188  static inline u8 readb(const volatile void __iomem *addr)
3f7e212df82ca0 Arnd Bergmann      2009-05-13  189  {
032d59e1cde9dd Sinan Kaya         2018-04-05  190  	u8 val;
032d59e1cde9dd Sinan Kaya         2018-04-05  191  
5e5ff73c2e5863 Sai Prakash Ranjan 2022-10-17  192  	log_read_mmio(8, addr, _THIS_IP_, _RET_IP_);
032d59e1cde9dd Sinan Kaya         2018-04-05  193  	__io_br();
032d59e1cde9dd Sinan Kaya         2018-04-05  194  	val = __raw_readb(addr);
abbbbc83a210e9 Will Deacon        2019-02-22 @195  	__io_ar(val);
5e5ff73c2e5863 Sai Prakash Ranjan 2022-10-17  196  	log_post_read_mmio(val, 8, addr, _THIS_IP_, _RET_IP_);
032d59e1cde9dd Sinan Kaya         2018-04-05  197  	return val;
3f7e212df82ca0 Arnd Bergmann      2009-05-13  198  }
3f7e212df82ca0 Arnd Bergmann      2009-05-13  199  #endif
3f7e212df82ca0 Arnd Bergmann      2009-05-13  200  

:::::: The code at line 195 was first introduced by commit
:::::: abbbbc83a210e95e2ae4ee71e50930a8cec6f081 asm-generic/io: Pass result of I/O accessor to __io_[p]ar()

:::::: TO: Will Deacon <will.deacon@arm.com>
:::::: CC: Catalin Marinas <catalin.marinas@arm.com>

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

                 reply	other threads:[~2024-09-04  3:51 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=202409041100.Y71WlJ1S-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