[josef-btrfs:kill-mmap-sem-v3 10/10] include/linux/compiler_types.h:258:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'inline'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-next.git kill-mmap-sem-v3
head:   2bdf3757643c03bcff975b2e3352f022e33e3d0a
commit: 2bdf3757643c03bcff975b2e3352f022e33e3d0a [10/10] btrfs: drop mmap_sem in mkwrite for btrfs
config: sh-allyesconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 2bdf3757643c03bcff975b2e3352f022e33e3d0a
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=sh 

All errors (new ones prefixed by >>):

   In file included from <command-line>:0:0:
>> include/linux/compiler_types.h:258:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'inline'
     inline __attribute__((always_inline, unused)) notrace __gnu_inline
     ^
   include/linux/mm.h:1475:8: note: in expansion of macro 'inline'
    stiatc inline struct file *maybe_unlock_mmap_for_io(struct vm_area_struct *vma,
           ^~~~~~
   make[2]: *** [arch/sh/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [sub-make] Error 2

vim +258 include/linux/compiler_types.h

815f0ddb Nick Desaulniers 2018-08-22  242  
815f0ddb Nick Desaulniers 2018-08-22  243  /*
815f0ddb Nick Desaulniers 2018-08-22  244   * Force always-inline if the user requests it so via the .config.
815f0ddb Nick Desaulniers 2018-08-22  245   * GCC does not warn about unused static inline functions for
815f0ddb Nick Desaulniers 2018-08-22  246   * -Wunused-function.  This turns out to avoid the need for complex #ifdef
815f0ddb Nick Desaulniers 2018-08-22  247   * directives.  Suppress the warning in clang as well by using "unused"
815f0ddb Nick Desaulniers 2018-08-22  248   * function attribute, which is redundant but not harmful for gcc.
815f0ddb Nick Desaulniers 2018-08-22  249   * Prefer gnu_inline, so that extern inline functions do not emit an
815f0ddb Nick Desaulniers 2018-08-22  250   * externally visible function. This makes extern inline behave as per gnu89
815f0ddb Nick Desaulniers 2018-08-22  251   * semantics rather than c99. This prevents multiple symbol definition errors
815f0ddb Nick Desaulniers 2018-08-22  252   * of extern inline functions at link time.
815f0ddb Nick Desaulniers 2018-08-22  253   * A lot of inline functions can cause havoc with function tracing.
815f0ddb Nick Desaulniers 2018-08-22  254   */
815f0ddb Nick Desaulniers 2018-08-22  255  #if !defined(CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING) || \
815f0ddb Nick Desaulniers 2018-08-22  256  	!defined(CONFIG_OPTIMIZE_INLINING)
815f0ddb Nick Desaulniers 2018-08-22  257  #define inline \
815f0ddb Nick Desaulniers 2018-08-22 @258  	inline __attribute__((always_inline, unused)) notrace __gnu_inline
815f0ddb Nick Desaulniers 2018-08-22  259  #else
815f0ddb Nick Desaulniers 2018-08-22  260  #define inline inline	__attribute__((unused)) notrace __gnu_inline
815f0ddb Nick Desaulniers 2018-08-22  261  #endif
815f0ddb Nick Desaulniers 2018-08-22  262  

:::::: The code at line 258 was first introduced by commit
:::::: 815f0ddb346c196018d4d8f8f55c12b83da1de3f include/linux/compiler*.h: make compiler-*.h mutually exclusive

:::::: TO: Nick Desaulniers <ndesaulniers@xxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux