All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: include/linux/atomic/atomic-arch-fallback.h:1261:16: sparse: sparse: Trying to use reserved word 'typeof' as identifier
Date: Sun, 21 Nov 2021 03:49:35 +0800	[thread overview]
Message-ID: <202111210331.2e2EBwjw-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 13001 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Mark Rutland <mark.rutland@arm.com>
CC: Peter Zijlstra <peterz@infradead.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a90af8f15bdc9449ee2d24e1d73fa3f7e8633f81
commit: e3d18cee258b898017b298b5b93f8134dd62aee3 locking/atomic: centralize generated headers
date:   4 months ago
:::::: branch date: 22 hours ago
:::::: commit date: 4 months ago
config: sparc64-randconfig-s031-20211116 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 11.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e3d18cee258b898017b298b5b93f8134dd62aee3
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout e3d18cee258b898017b298b5b93f8134dd62aee3
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 SHELL=/bin/bash arch/sparc/ drivers/usb/ fs/ lib//

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)
   arch/sparc/vdso/vdso32/vclock_gettime.c: note: in included file (through arch/sparc/include/asm/atomic.h, include/linux/atomic.h, include/asm-generic/bitops/lock.h, ...):
   arch/sparc/include/asm/atomic_64.h:37:1: sparse: sparse: Expected ) in function declarator
   arch/sparc/include/asm/atomic_64.h:37:1: sparse: sparse: got *
   arch/sparc/include/asm/atomic_64.h:37:1: sparse: sparse: Expected ) in function declarator
   arch/sparc/include/asm/atomic_64.h:37:1: sparse: sparse: got *
   arch/sparc/include/asm/atomic_64.h:37:1: sparse: sparse: Expected ) in function declarator
   arch/sparc/include/asm/atomic_64.h:37:1: sparse: sparse: got *
   arch/sparc/include/asm/atomic_64.h:38:1: sparse: sparse: Expected ) in function declarator
   arch/sparc/include/asm/atomic_64.h:38:1: sparse: sparse: got *
   arch/sparc/include/asm/atomic_64.h:38:1: sparse: sparse: Expected ) in function declarator
   arch/sparc/include/asm/atomic_64.h:38:1: sparse: sparse: got *
   arch/sparc/include/asm/atomic_64.h:38:1: sparse: sparse: Expected ) in function declarator
   arch/sparc/include/asm/atomic_64.h:38:1: sparse: sparse: got *
   arch/sparc/include/asm/atomic_64.h:43:1: sparse: sparse: Expected ) in function declarator
   arch/sparc/include/asm/atomic_64.h:43:1: sparse: sparse: got *
   arch/sparc/include/asm/atomic_64.h:43:1: sparse: sparse: Expected ) in function declarator
   arch/sparc/include/asm/atomic_64.h:43:1: sparse: sparse: got *
   arch/sparc/include/asm/atomic_64.h:44:1: sparse: sparse: Expected ) in function declarator
   arch/sparc/include/asm/atomic_64.h:44:1: sparse: sparse: got *
   arch/sparc/include/asm/atomic_64.h:44:1: sparse: sparse: Expected ) in function declarator
   arch/sparc/include/asm/atomic_64.h:44:1: sparse: sparse: got *
   arch/sparc/include/asm/atomic_64.h:45:1: sparse: sparse: Expected ) in function declarator
   arch/sparc/include/asm/atomic_64.h:45:1: sparse: sparse: got *
   arch/sparc/include/asm/atomic_64.h:45:1: sparse: sparse: Expected ) in function declarator
   arch/sparc/include/asm/atomic_64.h:45:1: sparse: sparse: got *
   arch/sparc/include/asm/atomic_64.h:63:46: sparse: sparse: Expected ) in function declarator
   arch/sparc/include/asm/atomic_64.h:63:46: sparse: sparse: got *
   arch/sparc/vdso/vdso32/vclock_gettime.c: note: in included file (through include/linux/atomic.h, include/asm-generic/bitops/lock.h, arch/sparc/include/asm/bitops_64.h, ...):
   include/linux/atomic/atomic-arch-fallback.h:1259:45: sparse: sparse: Expected ) in function declarator
   include/linux/atomic/atomic-arch-fallback.h:1259:45: sparse: sparse: got *
   include/linux/atomic/atomic-arch-fallback.h:1261:16: sparse: sparse: Expected ) in function declarator
   include/linux/atomic/atomic-arch-fallback.h:1261:16: sparse: sparse: got !
   include/linux/atomic/atomic-arch-fallback.h:1261:16: sparse: sparse: Trying to use reserved word 'if' as identifier
   include/linux/atomic/atomic-arch-fallback.h:1261:16: sparse: sparse: Expected ; at the end of type declaration
   include/linux/atomic/atomic-arch-fallback.h:1261:16: sparse: sparse: got }
   include/linux/atomic/atomic-arch-fallback.h:1261:16: sparse: sparse: Expected ) in nested declarator
   include/linux/atomic/atomic-arch-fallback.h:1261:16: sparse: sparse: got volatile
   include/linux/atomic/atomic-arch-fallback.h:1261:16: sparse: sparse: Trying to use reserved word 'const' as identifier
   include/linux/atomic/atomic-arch-fallback.h:1261:16: sparse: sparse: Expected ; at the end of type declaration
   include/linux/atomic/atomic-arch-fallback.h:1261:16: sparse: sparse: got }
   include/linux/atomic/atomic-arch-fallback.h:1261:16: sparse: sparse: Trying to use reserved word 'do' as identifier
   include/linux/atomic/atomic-arch-fallback.h:1261:16: sparse: sparse: Expected ; at end of declaration
   include/linux/atomic/atomic-arch-fallback.h:1261:16: sparse: sparse: got {
   include/linux/atomic/atomic-arch-fallback.h:1261:16: sparse: sparse: Expected ) in function declarator
   include/linux/atomic/atomic-arch-fallback.h:1261:16: sparse: sparse: got !
   include/linux/atomic/atomic-arch-fallback.h:1261:16: sparse: sparse: Trying to use reserved word 'if' as identifier
   include/linux/atomic/atomic-arch-fallback.h:1261:16: sparse: sparse: Expected ; at the end of type declaration
   include/linux/atomic/atomic-arch-fallback.h:1261:16: sparse: sparse: got }
   include/linux/atomic/atomic-arch-fallback.h:1261:16: sparse: sparse: Expected ) in function declarator
   include/linux/atomic/atomic-arch-fallback.h:1261:16: sparse: sparse: got *
>> include/linux/atomic/atomic-arch-fallback.h:1261:16: sparse: sparse: Trying to use reserved word 'typeof' as identifier
   include/linux/atomic/atomic-arch-fallback.h:1261:16: sparse: sparse: Expected ; at the end of type declaration
   include/linux/atomic/atomic-arch-fallback.h:1261:16: sparse: sparse: got }
   include/linux/atomic/atomic-arch-fallback.h:1262:1: sparse: sparse: Expected ; at the end of type declaration
   include/linux/atomic/atomic-arch-fallback.h:1262:1: sparse: sparse: got }
   include/linux/atomic/atomic-arch-fallback.h:1270:9: sparse: sparse: Expected ) in function declarator
   include/linux/atomic/atomic-arch-fallback.h:1270:9: sparse: sparse: got !
   include/linux/atomic/atomic-arch-fallback.h:1270:9: sparse: sparse: Trying to use reserved word 'if' as identifier
   include/linux/atomic/atomic-arch-fallback.h:1270:9: sparse: sparse: Expected ; at the end of type declaration
   include/linux/atomic/atomic-arch-fallback.h:1270:9: sparse: sparse: got }
   include/linux/atomic/atomic-arch-fallback.h:1270:9: sparse: sparse: Trying to use reserved word 'do' as identifier
   include/linux/atomic/atomic-arch-fallback.h:1270:9: sparse: sparse: Expected ; at end of declaration
   include/linux/atomic/atomic-arch-fallback.h:1270:9: sparse: sparse: got {
   include/linux/atomic/atomic-arch-fallback.h:1270:9: sparse: sparse: Expected ) in function declarator
   include/linux/atomic/atomic-arch-fallback.h:1270:9: sparse: sparse: got !
   include/linux/atomic/atomic-arch-fallback.h:1270:9: sparse: sparse: Trying to use reserved word 'if' as identifier
   include/linux/atomic/atomic-arch-fallback.h:1270:9: sparse: sparse: Expected ; at the end of type declaration
   include/linux/atomic/atomic-arch-fallback.h:1270:9: sparse: sparse: got }
   include/linux/atomic/atomic-arch-fallback.h:1270:9: sparse: sparse: Trying to use reserved word 'do' as identifier
   include/linux/atomic/atomic-arch-fallback.h:1270:9: sparse: sparse: Expected ; at end of declaration
   include/linux/atomic/atomic-arch-fallback.h:1270:9: sparse: sparse: got {
   include/linux/atomic/atomic-arch-fallback.h:1270:9: sparse: sparse: Expected ; at the end of type declaration
   include/linux/atomic/atomic-arch-fallback.h:1270:9: sparse: sparse: got }
   include/linux/atomic/atomic-arch-fallback.h:1270:9: sparse: sparse: Expected ; at the end of type declaration
   include/linux/atomic/atomic-arch-fallback.h:1270:9: sparse: sparse: got }
   include/linux/atomic/atomic-arch-fallback.h:1270:9: sparse: sparse: Expected ; at the end of type declaration
   include/linux/atomic/atomic-arch-fallback.h:1270:9: sparse: sparse: got }
   include/linux/atomic/atomic-arch-fallback.h:1271:1: sparse: sparse: Expected ; at the end of type declaration
   include/linux/atomic/atomic-arch-fallback.h:1271:1: sparse: sparse: got }
   include/linux/atomic/atomic-arch-fallback.h:1448:1: sparse: sparse: Expected ; at the end of type declaration
   include/linux/atomic/atomic-arch-fallback.h:1448:1: sparse: sparse: got }
   include/linux/atomic/atomic-arch-fallback.h:1464:1: sparse: sparse: Expected ; at the end of type declaration
   include/linux/atomic/atomic-arch-fallback.h:1464:1: sparse: sparse: got }
   include/linux/atomic/atomic-arch-fallback.h:1473:1: sparse: sparse: Expected ; at the end of type declaration
   include/linux/atomic/atomic-arch-fallback.h:1473:1: sparse: sparse: got }
   include/linux/atomic/atomic-arch-fallback.h:1482:1: sparse: sparse: Expected ; at the end of type declaration
   include/linux/atomic/atomic-arch-fallback.h:1482:1: sparse: sparse: got }
   include/linux/atomic/atomic-arch-fallback.h:1491:1: sparse: sparse: Expected ; at the end of type declaration
   include/linux/atomic/atomic-arch-fallback.h:1491:1: sparse: sparse: got }
   include/linux/atomic/atomic-arch-fallback.h:1545:1: sparse: sparse: Expected ; at the end of type declaration
   include/linux/atomic/atomic-arch-fallback.h:1545:1: sparse: sparse: got }
   include/linux/atomic/atomic-arch-fallback.h:1554:1: sparse: sparse: Expected ; at the end of type declaration
   include/linux/atomic/atomic-arch-fallback.h:1554:1: sparse: sparse: got }
   include/linux/atomic/atomic-arch-fallback.h:1563:1: sparse: sparse: Expected ; at the end of type declaration
   include/linux/atomic/atomic-arch-fallback.h:1563:1: sparse: sparse: got }
   include/linux/atomic/atomic-arch-fallback.h:1572:1: sparse: sparse: Expected ; at the end of type declaration
   include/linux/atomic/atomic-arch-fallback.h:1572:1: sparse: sparse: got }
   include/linux/atomic/atomic-arch-fallback.h:1619:1: sparse: sparse: Expected ; at the end of type declaration
   include/linux/atomic/atomic-arch-fallback.h:1619:1: sparse: sparse: got }
   include/linux/atomic/atomic-arch-fallback.h:1635:1: sparse: sparse: Expected ; at the end of type declaration
   include/linux/atomic/atomic-arch-fallback.h:1635:1: sparse: sparse: got }
   include/linux/atomic/atomic-arch-fallback.h:1644:1: sparse: sparse: Expected ; at the end of type declaration
   include/linux/atomic/atomic-arch-fallback.h:1644:1: sparse: sparse: got }
   include/linux/atomic/atomic-arch-fallback.h:1653:1: sparse: sparse: too many errors

vim +/typeof +1261 include/linux/atomic/atomic-arch-fallback.h

37f8173dd84936 include/linux/atomic-arch-fallback.h Peter Zijlstra 2020-01-24  1256  
37f8173dd84936 include/linux/atomic-arch-fallback.h Peter Zijlstra 2020-01-24  1257  #ifndef arch_atomic64_read_acquire
37f8173dd84936 include/linux/atomic-arch-fallback.h Peter Zijlstra 2020-01-24  1258  static __always_inline s64
37f8173dd84936 include/linux/atomic-arch-fallback.h Peter Zijlstra 2020-01-24  1259  arch_atomic64_read_acquire(const atomic64_t *v)
37f8173dd84936 include/linux/atomic-arch-fallback.h Peter Zijlstra 2020-01-24  1260  {
37f8173dd84936 include/linux/atomic-arch-fallback.h Peter Zijlstra 2020-01-24 @1261  	return smp_load_acquire(&(v)->counter);
37f8173dd84936 include/linux/atomic-arch-fallback.h Peter Zijlstra 2020-01-24  1262  }
37f8173dd84936 include/linux/atomic-arch-fallback.h Peter Zijlstra 2020-01-24  1263  #define arch_atomic64_read_acquire arch_atomic64_read_acquire
37f8173dd84936 include/linux/atomic-arch-fallback.h Peter Zijlstra 2020-01-24  1264  #endif
37f8173dd84936 include/linux/atomic-arch-fallback.h Peter Zijlstra 2020-01-24  1265  

:::::: The code at line 1261 was first introduced by commit
:::::: 37f8173dd84936ea78000ed1cad24f8b18d48ebb locking/atomics: Flip fallbacks and instrumentation

:::::: TO: Peter Zijlstra <peterz@infradead.org>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 36568 bytes --]

                 reply	other threads:[~2021-11-20 19:49 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=202111210331.2e2EBwjw-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild@lists.01.org \
    /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.