[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201809011505.Z78SglIa%fengguang.wu@intel.com>
Date: Sat, 1 Sep 2018 17:51:50 +0800
From: kbuild test robot <lkp@...el.com>
To: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
Cc: kbuild-all@...org, Linus Torvalds <torvalds@...ux-foundation.org>,
linux-kernel@...r.kernel.org,
Miguel Ojeda <miguel.ojeda.sandonis@...il.com>,
Eli Friedman <efriedma@...eaurora.org>,
Christopher Li <sparse@...isli.org>,
Kees Cook <keescook@...omium.org>,
Ingo Molnar <mingo@...nel.org>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Arnd Bergmann <arnd@...db.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Masahiro Yamada <yamada.masahiro@...ionext.com>,
Joe Perches <joe@...ches.com>,
Dominique Martinet <asmadeus@...ewreck.org>,
Nick Desaulniers <ndesaulniers@...gle.com>
Subject: Re: [PATCH 7/7] Compiler Attributes: use feature checks instead of
version checks
Hi Miguel,
I love your patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v4.19-rc1 next-20180831]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Miguel-Ojeda/Compiler-Attributes-remove-unused-attributes/20180901-125644
config: parisc-default_defconfig (attached as .config)
compiler: hppa-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
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=parisc
All warnings (new ones prefixed by >>):
from include/linux/bitops.h:19,
from include/linux/kernel.h:11,
from arch/parisc/include/asm/bug.h:5,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/uapi/linux/byteorder/big_endian.h:84:1: warning: 'gnu_inline' attribute ignored [-Wattributes]
static __always_inline __be16 __cpu_to_be16p(const __u16 *p)
^~~~~~
In file included from <command-line>:0:0:
include/linux/compiler_types.h:187:16: error: 'no_instrument_function' attribute applies only to functions
#define inline __always_inline __gnu_inline __maybe_unused notrace
^
include/linux/compiler_attributes.h:48:33: note: in expansion of macro 'inline'
#define __always_inline inline __attribute__((always_inline))
^~~~~~
include/uapi/linux/byteorder/big_endian.h:84:8: note: in expansion of macro '__always_inline'
static __always_inline __be16 __cpu_to_be16p(const __u16 *p)
^~~~~~~~~~~~~~~
In file included from include/linux/byteorder/big_endian.h:5:0,
from arch/parisc/include/uapi/asm/byteorder.h:5,
from arch/parisc/include/asm/bitops.h:11,
from include/linux/bitops.h:19,
from include/linux/kernel.h:11,
from arch/parisc/include/asm/bug.h:5,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/uapi/linux/byteorder/big_endian.h:84:1: warning: 'always_inline' attribute ignored [-Wattributes]
static __always_inline __be16 __cpu_to_be16p(const __u16 *p)
^~~~~~
include/uapi/linux/byteorder/big_endian.h:84:24: error: expected ',' or ';' before '__be16'
static __always_inline __be16 __cpu_to_be16p(const __u16 *p)
^~~~~~
In file included from <command-line>:0:0:
include/linux/compiler_types.h:187:16: error: type defaults to 'int' in declaration of '__always_inline' [-Werror=implicit-int]
#define inline __always_inline __gnu_inline __maybe_unused notrace
^
include/linux/compiler_attributes.h:48:33: note: in expansion of macro 'inline'
#define __always_inline inline __attribute__((always_inline))
^~~~~~
include/uapi/linux/byteorder/big_endian.h:88:8: note: in expansion of macro '__always_inline'
static __always_inline __u16 __be16_to_cpup(const __be16 *p)
^~~~~~~~~~~~~~~
In file included from include/linux/byteorder/big_endian.h:5:0,
from arch/parisc/include/uapi/asm/byteorder.h:5,
from arch/parisc/include/asm/bitops.h:11,
from include/linux/bitops.h:19,
from include/linux/kernel.h:11,
from arch/parisc/include/asm/bug.h:5,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/uapi/linux/byteorder/big_endian.h:88:1: warning: 'gnu_inline' attribute ignored [-Wattributes]
static __always_inline __u16 __be16_to_cpup(const __be16 *p)
^~~~~~
In file included from <command-line>:0:0:
include/linux/compiler_types.h:187:16: error: 'no_instrument_function' attribute applies only to functions
#define inline __always_inline __gnu_inline __maybe_unused notrace
^
include/linux/compiler_attributes.h:48:33: note: in expansion of macro 'inline'
#define __always_inline inline __attribute__((always_inline))
^~~~~~
include/uapi/linux/byteorder/big_endian.h:88:8: note: in expansion of macro '__always_inline'
static __always_inline __u16 __be16_to_cpup(const __be16 *p)
^~~~~~~~~~~~~~~
In file included from include/linux/byteorder/big_endian.h:5:0,
from arch/parisc/include/uapi/asm/byteorder.h:5,
from arch/parisc/include/asm/bitops.h:11,
from include/linux/bitops.h:19,
from include/linux/kernel.h:11,
from arch/parisc/include/asm/bug.h:5,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/uapi/linux/byteorder/big_endian.h:88:1: warning: 'always_inline' attribute ignored [-Wattributes]
static __always_inline __u16 __be16_to_cpup(const __be16 *p)
^~~~~~
include/uapi/linux/byteorder/big_endian.h:88:24: error: expected ',' or ';' before '__u16'
static __always_inline __u16 __be16_to_cpup(const __be16 *p)
^~~~~
include/linux/byteorder/generic.h: In function 'le32_to_cpu_array':
include/uapi/linux/byteorder/big_endian.h:95:27: error: implicit declaration of function '__swab32s'; did you mean '__swahb32s'? [-Werror=implicit-function-declaration]
#define __le32_to_cpus(x) __swab32s((x))
^
include/linux/byteorder/generic.h:163:3: note: in expansion of macro '__le32_to_cpus'
__le32_to_cpus(buf);
^~~~~~~~~~~~~~
In file included from include/linux/kernel.h:10:0,
from arch/parisc/include/asm/bug.h:5,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
arch/parisc/include/asm/atomic.h: In function 'atomic_read':
include/linux/compiler.h:252:3: error: implicit declaration of function '__read_once_size' [-Werror=implicit-function-declaration]
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
include/linux/compiler.h:258:22: note: in expansion of macro '__READ_ONCE'
#define READ_ONCE(x) __READ_ONCE(x, 1)
^~~~~~~~~~~
>> arch/parisc/include/asm/atomic.h:73:9: note: in expansion of macro 'READ_ONCE'
return READ_ONCE((v)->counter);
^~~~~~~~~
include/linux/compiler.h:254:3: error: implicit declaration of function '__read_once_size_nocheck' [-Werror=implicit-function-declaration]
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
include/linux/compiler.h:258:22: note: in expansion of macro '__READ_ONCE'
#define READ_ONCE(x) __READ_ONCE(x, 1)
^~~~~~~~~~~
>> arch/parisc/include/asm/atomic.h:73:9: note: in expansion of macro 'READ_ONCE'
return READ_ONCE((v)->counter);
^~~~~~~~~
In file included from <command-line>:0:0:
include/asm-generic/atomic-long.h: At top level:
include/linux/compiler_types.h:187:16: error: type defaults to 'int' in declaration of '__always_inline' [-Werror=implicit-int]
#define inline __always_inline __gnu_inline __maybe_unused notrace
^
include/linux/compiler_attributes.h:48:33: note: in expansion of macro 'inline'
#define __always_inline inline __attribute__((always_inline))
^~~~~~
include/asm-generic/atomic-long.h:119:8: note: in expansion of macro '__always_inline'
static __always_inline void atomic_long_inc(atomic_long_t *l)
^~~~~~~~~~~~~~~
In file included from include/linux/atomic.h:1315:0,
from arch/parisc/include/asm/bitops.h:13,
from include/linux/bitops.h:19,
from include/linux/kernel.h:11,
from arch/parisc/include/asm/bug.h:5,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/atomic-long.h:119:1: warning: 'gnu_inline' attribute ignored [-Wattributes]
static __always_inline void atomic_long_inc(atomic_long_t *l)
^~~~~~
In file included from <command-line>:0:0:
include/linux/compiler_types.h:187:16: error: 'no_instrument_function' attribute applies only to functions
#define inline __always_inline __gnu_inline __maybe_unused notrace
^
include/linux/compiler_attributes.h:48:33: note: in expansion of macro 'inline'
#define __always_inline inline __attribute__((always_inline))
^~~~~~
include/asm-generic/atomic-long.h:119:8: note: in expansion of macro '__always_inline'
static __always_inline void atomic_long_inc(atomic_long_t *l)
^~~~~~~~~~~~~~~
In file included from include/linux/atomic.h:1315:0,
from arch/parisc/include/asm/bitops.h:13,
from include/linux/bitops.h:19,
from include/linux/kernel.h:11,
from arch/parisc/include/asm/bug.h:5,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/atomic-long.h:119:1: warning: 'always_inline' attribute ignored [-Wattributes]
static __always_inline void atomic_long_inc(atomic_long_t *l)
^~~~~~
include/asm-generic/atomic-long.h:119:24: error: expected ',' or ';' before 'void'
static __always_inline void atomic_long_inc(atomic_long_t *l)
^~~~
In file included from <command-line>:0:0:
include/linux/compiler_types.h:187:16: error: type defaults to 'int' in declaration of '__always_inline' [-Werror=implicit-int]
#define inline __always_inline __gnu_inline __maybe_unused notrace
^
include/linux/compiler_attributes.h:48:33: note: in expansion of macro 'inline'
#define __always_inline inline __attribute__((always_inline))
^~~~~~
include/asm-generic/atomic-long.h:126:8: note: in expansion of macro '__always_inline'
static __always_inline void atomic_long_dec(atomic_long_t *l)
^~~~~~~~~~~~~~~
In file included from include/linux/atomic.h:1315:0,
from arch/parisc/include/asm/bitops.h:13,
from include/linux/bitops.h:19,
from include/linux/kernel.h:11,
from arch/parisc/include/asm/bug.h:5,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/atomic-long.h:126:1: warning: 'gnu_inline' attribute ignored [-Wattributes]
static __always_inline void atomic_long_dec(atomic_long_t *l)
^~~~~~
In file included from <command-line>:0:0:
include/linux/compiler_types.h:187:16: error: 'no_instrument_function' attribute applies only to functions
#define inline __always_inline __gnu_inline __maybe_unused notrace
^
include/linux/compiler_attributes.h:48:33: note: in expansion of macro 'inline'
#define __always_inline inline __attribute__((always_inline))
^~~~~~
include/asm-generic/atomic-long.h:126:8: note: in expansion of macro '__always_inline'
static __always_inline void atomic_long_dec(atomic_long_t *l)
^~~~~~~~~~~~~~~
In file included from include/linux/atomic.h:1315:0,
from arch/parisc/include/asm/bitops.h:13,
from include/linux/bitops.h:19,
from include/linux/kernel.h:11,
from arch/parisc/include/asm/bug.h:5,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/atomic-long.h:126:1: warning: 'always_inline' attribute ignored [-Wattributes]
static __always_inline void atomic_long_dec(atomic_long_t *l)
^~~~~~
include/asm-generic/atomic-long.h:126:24: error: expected ',' or ';' before 'void'
static __always_inline void atomic_long_dec(atomic_long_t *l)
^~~~
In file included from <command-line>:0:0:
include/linux/compiler_types.h:187:16: error: type defaults to 'int' in declaration of '__always_inline' [-Werror=implicit-int]
#define inline __always_inline __gnu_inline __maybe_unused notrace
^
include/linux/compiler_attributes.h:48:33: note: in expansion of macro 'inline'
#define __always_inline inline __attribute__((always_inline))
^~~~~~
vim +/READ_ONCE +73 arch/parisc/include/asm/atomic.h
9d664c0ae arch/parisc/include/asm/atomic.h Peter Zijlstra 2017-06-09 70
^1da177e4 include/asm-parisc/atomic.h Linus Torvalds 2005-04-16 71 static __inline__ int atomic_read(const atomic_t *v)
^1da177e4 include/asm-parisc/atomic.h Linus Torvalds 2005-04-16 72 {
62e8a3258 arch/parisc/include/asm/atomic.h Peter Zijlstra 2015-09-18 @73 return READ_ONCE((v)->counter);
^1da177e4 include/asm-parisc/atomic.h Linus Torvalds 2005-04-16 74 }
^1da177e4 include/asm-parisc/atomic.h Linus Torvalds 2005-04-16 75
:::::: The code at line 73 was first introduced by commit
:::::: 62e8a3258bda118f24ff462fe04cfbe75b8189b5 atomic, arch: Audit atomic_{read,set}()
:::::: TO: Peter Zijlstra <peterz@...radead.org>
:::::: CC: Ingo Molnar <mingo@...nel.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (15263 bytes)
Powered by blists - more mailing lists