[peterz-queue:x86/static_call 10/17] check.c:459:22: error: 'struct section' has no member named 'rela_hash'; did you mean 'rela_list'?
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/static_call
head: d3f214fee97b689450df44bde6ccd4a5a8ec1a90
commit: 6498501d1b17d21ca0a903a3b8c7ec57457b7dbc [10/17] x86/static_call: Add inline static call implementation for x86-64
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout 6498501d1b17d21ca0a903a3b8c7ec57457b7dbc
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from elf.h:12:0,
from check.h:10,
from check.c:10:
check.c: In function 'create_static_call_sections':
>> check.c:459:22: error: 'struct section' has no member named 'rela_hash'; did you mean 'rela_list'?
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^
tools/include/linux/hashtable.h:58:24: note: in definition of macro 'hash_add'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
>> check.c:459:22: error: 'struct section' has no member named 'rela_hash'; did you mean 'rela_list'?
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
>> check.c:459:22: error: 'struct section' has no member named 'rela_hash'; did you mean 'rela_list'?
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
>> check.c:459:22: error: 'struct section' has no member named 'rela_hash'; did you mean 'rela_list'?
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/compiler-gcc.h:24:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~~~~~~~
tools/include/linux/compiler-gcc.h:24:46: note: in expansion of macro '__same_type'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~
tools/include/linux/kernel.h:107:59: note: in expansion of macro '__must_be_array'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^~~~~~~~~~~~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
>> check.c:459:22: error: 'struct section' has no member named 'rela_hash'; did you mean 'rela_list'?
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/compiler-gcc.h:24:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~~~~~~~
tools/include/linux/compiler-gcc.h:24:46: note: in expansion of macro '__same_type'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~
tools/include/linux/kernel.h:107:59: note: in expansion of macro '__must_be_array'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^~~~~~~~~~~~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
tools/include/linux/kernel.h:39:45: error: bit-field '<anonymous>' width not an integer constant
#define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/compiler-gcc.h:24:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~~~~~~~
tools/include/linux/kernel.h:107:59: note: in expansion of macro '__must_be_array'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^~~~~~~~~~~~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
>> check.c:459:22: error: 'struct section' has no member named 'rela_hash'; did you mean 'rela_list'?
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
>> check.c:459:22: error: 'struct section' has no member named 'rela_hash'; did you mean 'rela_list'?
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
>> check.c:459:22: error: 'struct section' has no member named 'rela_hash'; did you mean 'rela_list'?
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/compiler-gcc.h:24:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~~~~~~~
tools/include/linux/compiler-gcc.h:24:46: note: in expansion of macro '__same_type'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~
tools/include/linux/kernel.h:107:59: note: in expansion of macro '__must_be_array'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^~~~~~~~~~~~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
>> check.c:459:22: error: 'struct section' has no member named 'rela_hash'; did you mean 'rela_list'?
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/compiler-gcc.h:24:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~~~~~~~
tools/include/linux/compiler-gcc.h:24:46: note: in expansion of macro '__same_type'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~
tools/include/linux/kernel.h:107:59: note: in expansion of macro '__must_be_array'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^~~~~~~~~~~~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
tools/include/linux/kernel.h:39:45: error: bit-field '<anonymous>' width not an integer constant
#define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/compiler-gcc.h:24:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~~~~~~~
tools/include/linux/kernel.h:107:59: note: in expansion of macro '__must_be_array'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^~~~~~~~~~~~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
>> check.c:459:22: error: 'struct section' has no member named 'rela_hash'; did you mean 'rela_list'?
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
>> check.c:459:22: error: 'struct section' has no member named 'rela_hash'; did you mean 'rela_list'?
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
>> check.c:459:22: error: 'struct section' has no member named 'rela_hash'; did you mean 'rela_list'?
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/compiler-gcc.h:24:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~~~~~~~
tools/include/linux/compiler-gcc.h:24:46: note: in expansion of macro '__same_type'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~
tools/include/linux/kernel.h:107:59: note: in expansion of macro '__must_be_array'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^~~~~~~~~~~~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
>> check.c:459:22: error: 'struct section' has no member named 'rela_hash'; did you mean 'rela_list'?
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/compiler-gcc.h:24:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~~~~~~~
tools/include/linux/compiler-gcc.h:24:46: note: in expansion of macro '__same_type'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~
tools/include/linux/kernel.h:107:59: note: in expansion of macro '__must_be_array'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^~~~~~~~~~~~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
tools/include/linux/kernel.h:39:45: error: bit-field '<anonymous>' width not an integer constant
#define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/compiler-gcc.h:24:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~~~~~~~
tools/include/linux/kernel.h:107:59: note: in expansion of macro '__must_be_array'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^~~~~~~~~~~~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
>> check.c:459:22: error: 'struct section' has no member named 'rela_hash'; did you mean 'rela_list'?
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
>> check.c:459:22: error: 'struct section' has no member named 'rela_hash'; did you mean 'rela_list'?
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
>> check.c:459:22: error: 'struct section' has no member named 'rela_hash'; did you mean 'rela_list'?
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/compiler-gcc.h:24:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~~~~~~~
tools/include/linux/compiler-gcc.h:24:46: note: in expansion of macro '__same_type'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~
tools/include/linux/kernel.h:107:59: note: in expansion of macro '__must_be_array'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^~~~~~~~~~~~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
>> check.c:459:22: error: 'struct section' has no member named 'rela_hash'; did you mean 'rela_list'?
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/compiler-gcc.h:24:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~~~~~~~
tools/include/linux/compiler-gcc.h:24:46: note: in expansion of macro '__same_type'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~
tools/include/linux/kernel.h:107:59: note: in expansion of macro '__must_be_array'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^~~~~~~~~~~~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
tools/include/linux/kernel.h:39:45: error: bit-field '<anonymous>' width not an integer constant
#define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/compiler-gcc.h:24:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~~~~~~~
tools/include/linux/kernel.h:107:59: note: in expansion of macro '__must_be_array'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^~~~~~~~~~~~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
>> check.c:459:22: error: 'struct section' has no member named 'rela_hash'; did you mean 'rela_list'?
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
>> check.c:459:22: error: 'struct section' has no member named 'rela_hash'; did you mean 'rela_list'?
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
>> check.c:459:22: error: 'struct section' has no member named 'rela_hash'; did you mean 'rela_list'?
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/compiler-gcc.h:24:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~~~~~~~
tools/include/linux/compiler-gcc.h:24:46: note: in expansion of macro '__same_type'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~
tools/include/linux/kernel.h:107:59: note: in expansion of macro '__must_be_array'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^~~~~~~~~~~~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
check.c:459:22: error: 'struct section' has no member named 'rela_hash'; did you mean 'rela_list'?
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/compiler-gcc.h:24:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~~~~~~~
tools/include/linux/compiler-gcc.h:24:46: note: in expansion of macro '__same_type'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~
tools/include/linux/kernel.h:107:59: note: in expansion of macro '__must_be_array'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^~~~~~~~~~~~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
tools/include/linux/kernel.h:39:45: error: bit-field '<anonymous>' width not an integer constant
#define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/compiler-gcc.h:24:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^~~~~~~~~~~~~~~~~
tools/include/linux/kernel.h:107:59: note: in expansion of macro '__must_be_array'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^~~~~~~~~~~~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~~~~~
tools/include/linux/hashtable.h:58:48: note: in expansion of macro 'HASH_BITS'
hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
^~~~~~~~~
check.c:459:3: note: in expansion of macro 'hash_add'
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^~~~~~~~
check.c:459:22: error: 'struct section' has no member named 'rela_hash'; did you mean 'rela_list'?
hash_add(rela_sec->rela_hash, &rela->hash, rela->offset);
^
tools/include/linux/hashtable.h:29:35: note: in definition of macro 'hash_min'
(sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
^~~~
tools/include/linux/hashtable.h:25:25: note: in expansion of macro 'ilog2'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
^~~~~
tools/include/linux/hashtable.h:24:26: note: in expansion of macro 'ARRAY_SIZE'
#define HASH_SIZE(name) (ARRAY_SIZE(name))
^~~~~~~~~~
tools/include/linux/hashtable.h:25:31: note: in expansion of macro 'HASH_SIZE'
#define HASH_BITS(name) ilog2(HASH_SIZE(name))
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[hch-block:blkpg-partition-cleanup 7/12] drivers/s390/block/dasd_genhd.c:156:27: error: expected ';' before 'mutex_unlock'
by kbuild test robot
tree: git://git.infradead.org/users/hch/block.git blkpg-partition-cleanup
head: 01672c8132693a6767aa9004a257e961d719da53
commit: 487d2d7669a5915e75d814eb8d83f616f64fd943 [7/12] dasd: use blk_drop_partitions instead of badly reimplementing it
config: s390-debug_defconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.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 487d2d7669a5915e75d814eb8d83f616f64fd943
# save the attached .config to linux build tree
GCC_VERSION=9.3.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/s390/block/dasd_genhd.c: In function 'dasd_destroy_partitions':
>> drivers/s390/block/dasd_genhd.c:156:27: error: expected ';' before 'mutex_unlock'
156 | blk_drop_partitions(bdev)
| ^
| ;
157 | mutex_unlock(&bdev->bd_mutex);
| ~~~~~~~~~~~~
vim +156 drivers/s390/block/dasd_genhd.c
139
140 /*
141 * Remove all inodes in the system for a device, delete the
142 * partitions and make device unusable by setting its size to zero.
143 */
144 void dasd_destroy_partitions(struct dasd_block *block)
145 {
146 struct block_device *bdev;
147
148 /*
149 * Get the bdev pointer from the device structure and clear
150 * device->bdev to lower the offline open_count limit again.
151 */
152 bdev = block->bdev;
153 block->bdev = NULL;
154
155 mutex_lock(&bdev->bd_mutex);
> 156 blk_drop_partitions(bdev)
157 mutex_unlock(&bdev->bd_mutex);
158
159 /* Matching blkdev_put to the blkdev_get in dasd_scan_partitions. */
160 blkdev_put(bdev, FMODE_READ);
161 set_capacity(block->gdp, 0);
162 }
163
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[linux-next:master 9490/13693] drivers/soundwire/qcom.c:641:3: error: 'const struct snd_soc_dai_ops' has no member named 'get_sdw_stream'; did you mean 'set_sdw_stream'?
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 606b5dac8e15e82e5866fa59e675ca6a6b7276c0
commit: 39ec6f992131f0e88910700286d83f5f48f4ee8f [9490/13693] soundwire: qcom: add support for get_sdw_stream()
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout 39ec6f992131f0e88910700286d83f5f48f4ee8f
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
Note: the linux-next/master HEAD 606b5dac8e15e82e5866fa59e675ca6a6b7276c0 builds fine.
It may have been fixed somewhere.
All errors (new ones prefixed by >>):
>> drivers/soundwire/qcom.c:641:3: error: 'const struct snd_soc_dai_ops' has no member named 'get_sdw_stream'; did you mean 'set_sdw_stream'?
.get_sdw_stream = qcom_swrm_get_sdw_stream,
^~~~~~~~~~~~~~
set_sdw_stream
drivers/soundwire/qcom.c:641:20: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
.get_sdw_stream = qcom_swrm_get_sdw_stream,
^~~~~~~~~~~~~~~~~~~~~~~~
drivers/soundwire/qcom.c:641:20: note: (near initialization for 'qcom_swrm_pdm_dai_ops')
drivers/soundwire/qcom.c:641:20: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
drivers/soundwire/qcom.c:641:20: note: (near initialization for 'qcom_swrm_pdm_dai_ops.startup')
cc1: some warnings being treated as errors
vim +641 drivers/soundwire/qcom.c
634
635 static const struct snd_soc_dai_ops qcom_swrm_pdm_dai_ops = {
636 .hw_params = qcom_swrm_hw_params,
637 .hw_free = qcom_swrm_hw_free,
638 .startup = qcom_swrm_startup,
639 .shutdown = qcom_swrm_shutdown,
640 .set_sdw_stream = qcom_swrm_set_sdw_stream,
> 641 .get_sdw_stream = qcom_swrm_get_sdw_stream,
642 };
643
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[hch-block:cdrom-ioctl 1/4] drivers/cdrom/cdrom.c:605:6: error: 'struct gendisk' has no member named 'cdi'
by kbuild test robot
tree: git://git.infradead.org/users/hch/block.git cdrom-ioctl
head: d92a395a2879e4d28a0df8b364d6a9420aa6718e
commit: b53754b0a60252074ae989d4d8514dc2bb469806 [1/4] block: add a cdrom_device_info pointer to struct gendisk
config: openrisc-randconfig-a001-20200403 (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.3.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 b53754b0a60252074ae989d4d8514dc2bb469806
# save the attached .config to linux build tree
GCC_VERSION=9.3.0 make.cross ARCH=openrisc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/blkdev.h:11,
from drivers/cdrom/cdrom.c:283:
include/linux/genhd.h:223:2: error: expected ':', ',', ';', '}' or '__attribute__' before 'int'
223 | int node_id;
| ^~~
drivers/cdrom/cdrom.c: In function 'register_cdrom':
>> drivers/cdrom/cdrom.c:605:6: error: 'struct gendisk' has no member named 'cdi'
605 | disk->cdi = cdi;
| ^~
--
In file included from block//partitions/core.c:9:
include/linux/genhd.h:223:2: error: expected ':', ',', ';', '}' or '__attribute__' before 'int'
223 | int node_id;
| ^~~
block//partitions/core.c: In function 'add_partition':
>> block//partitions/core.c:400:56: error: 'struct gendisk' has no member named 'node_id'
400 | pinfo = kzalloc_node(sizeof(*pinfo), GFP_KERNEL, disk->node_id);
| ^~
vim +605 drivers/cdrom/cdrom.c
588
589 int register_cdrom(struct gendisk *disk, struct cdrom_device_info *cdi)
590 {
591 static char banner_printed;
592 const struct cdrom_device_ops *cdo = cdi->ops;
593
594 cd_dbg(CD_OPEN, "entering register_cdrom\n");
595
596 if (cdo->open == NULL || cdo->release == NULL)
597 return -EINVAL;
598 if (!banner_printed) {
599 pr_info("Uniform CD-ROM driver " REVISION "\n");
600 banner_printed = 1;
601 cdrom_sysctl_register();
602 }
603
604 cdi->disk = disk;
> 605 disk->cdi = cdi;
606
607 ENSURE(cdo, drive_status, CDC_DRIVE_STATUS);
608 if (cdo->check_events == NULL && cdo->media_changed == NULL)
609 WARN_ON_ONCE(cdo->capability & (CDC_MEDIA_CHANGED | CDC_SELECT_DISC));
610 ENSURE(cdo, tray_move, CDC_CLOSE_TRAY | CDC_OPEN_TRAY);
611 ENSURE(cdo, lock_door, CDC_LOCK);
612 ENSURE(cdo, select_speed, CDC_SELECT_SPEED);
613 ENSURE(cdo, get_last_session, CDC_MULTI_SESSION);
614 ENSURE(cdo, get_mcn, CDC_MCN);
615 ENSURE(cdo, reset, CDC_RESET);
616 ENSURE(cdo, generic_packet, CDC_GENERIC_PACKET);
617 cdi->mc_flags = 0;
618 cdi->options = CDO_USE_FFLAGS;
619
620 if (autoclose == 1 && CDROM_CAN(CDC_CLOSE_TRAY))
621 cdi->options |= (int) CDO_AUTO_CLOSE;
622 if (autoeject == 1 && CDROM_CAN(CDC_OPEN_TRAY))
623 cdi->options |= (int) CDO_AUTO_EJECT;
624 if (lockdoor == 1)
625 cdi->options |= (int) CDO_LOCK;
626 if (check_media_type == 1)
627 cdi->options |= (int) CDO_CHECK_TYPE;
628
629 if (CDROM_CAN(CDC_MRW_W))
630 cdi->exit = cdrom_mrw_exit;
631
632 if (cdi->disk)
633 cdi->cdda_method = CDDA_BPC_FULL;
634 else
635 cdi->cdda_method = CDDA_OLD;
636
637 WARN_ON(!cdo->generic_packet);
638
639 cd_dbg(CD_REG_UNREG, "drive \"/dev/%s\" registered\n", cdi->name);
640 mutex_lock(&cdrom_mutex);
641 list_add(&cdi->list, &cdrom_list);
642 mutex_unlock(&cdrom_mutex);
643 return 0;
644 }
645 #undef ENSURE
646
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[peterz-queue:master 7/10] net/sunrpc/svc_xprt.o: warning: objtool: static_call: can't find static_call_key symbol: ___SC__tp_func_svc_drop_deferred
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git master
head: 3b378ac8d8e95f132ed7c528c5d5afd4725880bd
commit: d6f5682f13bb08a3c33dd03621ebfbb4612962b9 [7/10] Merge branch 'x86/static_call'
config: x86_64-randconfig-g003-20200403 (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout d6f5682f13bb08a3c33dd03621ebfbb4612962b9
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> net/sunrpc/svc_xprt.o: warning: objtool: static_call: can't find static_call_key symbol: ___SC__tp_func_svc_drop_deferred
--
>> fs/xfs/libxfs/xfs_alloc.o: warning: objtool: static_call: can't find static_call_key symbol: ___SC__tp_func_xfs_alloc_cur
--
>> drivers/android/binder_alloc.o: warning: objtool: static_call: can't find static_call_key symbol: ___SC__tp_func_binder_free_lru_end
--
>> drivers/usb/musb/musb_core.o: warning: objtool: static_call: can't find static_call_key symbol: ___SC__tp_func_musb_readl
--
>> drivers/usb/musb/musb_host.o: warning: objtool: static_call: can't find static_call_key symbol: ___SC__tp_func_musb_urb_gb
--
>> drivers/greybus/interface.o: warning: objtool: static_call: can't find static_call_key symbol: ___SC__tp_func_gb_interface_release
--
>> drivers/greybus/connection.o: warning: objtool: static_call: can't find static_call_key symbol: ___SC__tp_func_gb_connection_create
--
>> drivers/greybus/operation.o: warning: objtool: static_call: can't find static_call_key symbol: ___SC__tp_func_gb_operation_get_active
--
>> drivers/lightnvm/pblk-init.o: warning: objtool: static_call: can't find static_call_key symbol: ___SC__tp_func_pblk_line_state
--
>> drivers/lightnvm/pblk-gc.o: warning: objtool: static_call: can't find static_call_key symbol: ___SC__tp_func_pblk_line_state
--
>> drivers/lightnvm/pblk-recovery.o: warning: objtool: static_call: can't find static_call_key symbol: ___SC__tp_func_pblk_line_state
..
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
Re: [PATCH] vhost: drop vring dependency on iotlb
by kbuild test robot
Hi "Michael,
I love your patch! Yet something to improve:
[auto build test ERROR on vhost/linux-next]
[also build test ERROR on next-20200403]
[cannot apply to linus/master linux/master v5.6]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Michael-S-Tsirkin/vhost-drop-vri...
base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
config: s390-randconfig-a001-20200403 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.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=9.3.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
s390-linux-ld: drivers/vhost/vringh.o: in function `iotlb_translate':
>> drivers/vhost/vringh.c:1079: undefined reference to `vhost_iotlb_itree_first'
vim +1079 drivers/vhost/vringh.c
f558a845c3a043d Dave Jones 2013-05-03 1061
9ad9c49cfe970b0 Jason Wang 2020-03-26 1062 static int iotlb_translate(const struct vringh *vrh,
9ad9c49cfe970b0 Jason Wang 2020-03-26 1063 u64 addr, u64 len, struct bio_vec iov[],
9ad9c49cfe970b0 Jason Wang 2020-03-26 1064 int iov_size, u32 perm)
9ad9c49cfe970b0 Jason Wang 2020-03-26 1065 {
9ad9c49cfe970b0 Jason Wang 2020-03-26 1066 struct vhost_iotlb_map *map;
9ad9c49cfe970b0 Jason Wang 2020-03-26 1067 struct vhost_iotlb *iotlb = vrh->iotlb;
9ad9c49cfe970b0 Jason Wang 2020-03-26 1068 int ret = 0;
9ad9c49cfe970b0 Jason Wang 2020-03-26 1069 u64 s = 0;
9ad9c49cfe970b0 Jason Wang 2020-03-26 1070
9ad9c49cfe970b0 Jason Wang 2020-03-26 1071 while (len > s) {
9ad9c49cfe970b0 Jason Wang 2020-03-26 1072 u64 size, pa, pfn;
9ad9c49cfe970b0 Jason Wang 2020-03-26 1073
9ad9c49cfe970b0 Jason Wang 2020-03-26 1074 if (unlikely(ret >= iov_size)) {
9ad9c49cfe970b0 Jason Wang 2020-03-26 1075 ret = -ENOBUFS;
9ad9c49cfe970b0 Jason Wang 2020-03-26 1076 break;
9ad9c49cfe970b0 Jason Wang 2020-03-26 1077 }
9ad9c49cfe970b0 Jason Wang 2020-03-26 1078
9ad9c49cfe970b0 Jason Wang 2020-03-26 @1079 map = vhost_iotlb_itree_first(iotlb, addr,
9ad9c49cfe970b0 Jason Wang 2020-03-26 1080 addr + len - 1);
9ad9c49cfe970b0 Jason Wang 2020-03-26 1081 if (!map || map->start > addr) {
9ad9c49cfe970b0 Jason Wang 2020-03-26 1082 ret = -EINVAL;
9ad9c49cfe970b0 Jason Wang 2020-03-26 1083 break;
9ad9c49cfe970b0 Jason Wang 2020-03-26 1084 } else if (!(map->perm & perm)) {
9ad9c49cfe970b0 Jason Wang 2020-03-26 1085 ret = -EPERM;
9ad9c49cfe970b0 Jason Wang 2020-03-26 1086 break;
9ad9c49cfe970b0 Jason Wang 2020-03-26 1087 }
9ad9c49cfe970b0 Jason Wang 2020-03-26 1088
9ad9c49cfe970b0 Jason Wang 2020-03-26 1089 size = map->size - addr + map->start;
9ad9c49cfe970b0 Jason Wang 2020-03-26 1090 pa = map->addr + addr - map->start;
9ad9c49cfe970b0 Jason Wang 2020-03-26 1091 pfn = pa >> PAGE_SHIFT;
9ad9c49cfe970b0 Jason Wang 2020-03-26 1092 iov[ret].bv_page = pfn_to_page(pfn);
9ad9c49cfe970b0 Jason Wang 2020-03-26 1093 iov[ret].bv_len = min(len - s, size);
9ad9c49cfe970b0 Jason Wang 2020-03-26 1094 iov[ret].bv_offset = pa & (PAGE_SIZE - 1);
9ad9c49cfe970b0 Jason Wang 2020-03-26 1095 s += size;
9ad9c49cfe970b0 Jason Wang 2020-03-26 1096 addr += size;
9ad9c49cfe970b0 Jason Wang 2020-03-26 1097 ++ret;
9ad9c49cfe970b0 Jason Wang 2020-03-26 1098 }
9ad9c49cfe970b0 Jason Wang 2020-03-26 1099
9ad9c49cfe970b0 Jason Wang 2020-03-26 1100 return ret;
9ad9c49cfe970b0 Jason Wang 2020-03-26 1101 }
9ad9c49cfe970b0 Jason Wang 2020-03-26 1102
:::::: The code at line 1079 was first introduced by commit
:::::: 9ad9c49cfe970b053bb0ef323b682dd1b4d4f8a0 vringh: IOTLB support
:::::: TO: Jason Wang <jasowang(a)redhat.com>
:::::: CC: Michael S. Tsirkin <mst(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
Re: [patch 1/2] x86,module: Detect VMX modules and disable Split-Lock-Detect
by kbuild test robot
Hi Thomas,
I love your patch! Yet something to improve:
[auto build test ERROR on tip/auto-latest]
[also build test ERROR on next-20200403]
[cannot apply to jeyu/modules-next tip/x86/core v5.6]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Thomas-Gleixner/x86-Prevent-Spli...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git ee8bac724cc7767dcf9480afb656318994f22c3d
config: x86_64-randconfig-s1-20200403 (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/x86/kernel/module.c: In function 'module_finalize':
>> arch/x86/kernel/module.c:257:17: error: 'struct module' has no member named 'sld_safe'
if (text && !me->sld_safe) {
^~
vim +257 arch/x86/kernel/module.c
220
221 int module_finalize(const Elf_Ehdr *hdr,
222 const Elf_Shdr *sechdrs,
223 struct module *me)
224 {
225 const Elf_Shdr *s, *text = NULL, *alt = NULL, *locks = NULL,
226 *para = NULL, *orc = NULL, *orc_ip = NULL;
227 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
228
229 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) {
230 if (!strcmp(".text", secstrings + s->sh_name))
231 text = s;
232 if (!strcmp(".altinstructions", secstrings + s->sh_name))
233 alt = s;
234 if (!strcmp(".smp_locks", secstrings + s->sh_name))
235 locks = s;
236 if (!strcmp(".parainstructions", secstrings + s->sh_name))
237 para = s;
238 if (!strcmp(".orc_unwind", secstrings + s->sh_name))
239 orc = s;
240 if (!strcmp(".orc_unwind_ip", secstrings + s->sh_name))
241 orc_ip = s;
242 }
243
244 if (alt) {
245 /* patch .altinstructions */
246 void *aseg = (void *)alt->sh_addr;
247 apply_alternatives(aseg, aseg + alt->sh_size);
248 }
249 if (locks && text) {
250 void *lseg = (void *)locks->sh_addr;
251 void *tseg = (void *)text->sh_addr;
252 alternatives_smp_module_add(me, me->name,
253 lseg, lseg + locks->sh_size,
254 tseg, tseg + text->sh_size);
255 }
256
> 257 if (text && !me->sld_safe) {
258 void *tseg = (void *)text->sh_addr;
259 split_lock_validate_module_text(me, tseg, tseg + text->sh_size);
260 }
261
262 if (para) {
263 void *pseg = (void *)para->sh_addr;
264 apply_paravirt(pseg, pseg + para->sh_size);
265 }
266
267 /* make jump label nops */
268 jump_label_apply_nops(me);
269
270 if (orc && orc_ip)
271 unwind_module_init(me, (void *)orc_ip->sh_addr, orc_ip->sh_size,
272 (void *)orc->sh_addr, orc->sh_size);
273
274 return 0;
275 }
276
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
Re: [RFC 2/3] blktrace: fix debugfs use after free
by kbuild test robot
Hi Luis,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on block/for-next]
[also build test ERROR on linus/master next-20200403]
[cannot apply to linux/master v5.6]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Luis-Chamberlain/block-address-b...
base: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next
config: x86_64-randconfig-d003-20200403 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project f68cc2a7ed766965028b8b0f0d9300a0460c3cf1)
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
COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> kernel/trace/blktrace.c:486:10: error: no member named 'debugfs_dir' in 'struct request_queue'
if (!q->debugfs_dir)
~ ^
kernel/trace/blktrace.c:519:16: error: no member named 'debugfs_dir' in 'struct request_queue'
q->debugfs_dir, bt,
~ ^
kernel/trace/blktrace.c:522:53: error: no member named 'debugfs_dir' in 'struct request_queue'
bt->msg_file = debugfs_create_file("msg", 0222, q->debugfs_dir,
~ ^
kernel/trace/blktrace.c:525:37: error: no member named 'debugfs_dir' in 'struct request_queue'
bt->rchan = relay_open("trace", q->debugfs_dir, buts->buf_size,
~ ^
4 errors generated.
vim +486 kernel/trace/blktrace.c
469
470 /*
471 * Setup everything required to start tracing
472 */
473 static int do_blk_trace_setup(struct request_queue *q, char *name, dev_t dev,
474 struct block_device *bdev,
475 struct blk_user_trace_setup *buts)
476 {
477 struct blk_trace *bt = NULL;
478 int ret;
479
480 if (!buts->buf_size || !buts->buf_nr)
481 return -EINVAL;
482
483 if (!blk_debugfs_root)
484 return -ENOENT;
485
> 486 if (!q->debugfs_dir)
487 return -ENOENT;
488
489 strncpy(buts->name, name, BLKTRACE_BDEV_SIZE);
490 buts->name[BLKTRACE_BDEV_SIZE - 1] = '\0';
491
492 /*
493 * some device names have larger paths - convert the slashes
494 * to underscores for this to work as expected
495 */
496 strreplace(buts->name, '/', '_');
497
498 bt = kzalloc(sizeof(*bt), GFP_KERNEL);
499 if (!bt)
500 return -ENOMEM;
501
502 ret = -ENOMEM;
503 bt->sequence = alloc_percpu(unsigned long);
504 if (!bt->sequence)
505 goto err;
506
507 bt->msg_data = __alloc_percpu(BLK_TN_MAX_MSG, __alignof__(char));
508 if (!bt->msg_data)
509 goto err;
510
511 ret = -ENOENT;
512
513 bt->dev = dev;
514 atomic_set(&bt->dropped, 0);
515 INIT_LIST_HEAD(&bt->running_list);
516
517 ret = -EIO;
518 bt->dropped_file = debugfs_create_file("dropped", 0444,
519 q->debugfs_dir, bt,
520 &blk_dropped_fops);
521
522 bt->msg_file = debugfs_create_file("msg", 0222, q->debugfs_dir,
523 bt, &blk_msg_fops);
524
525 bt->rchan = relay_open("trace", q->debugfs_dir, buts->buf_size,
526 buts->buf_nr, &blk_relay_callbacks, bt);
527 if (!bt->rchan)
528 goto err;
529
530 bt->act_mask = buts->act_mask;
531 if (!bt->act_mask)
532 bt->act_mask = (u16) -1;
533
534 blk_trace_setup_lba(bt, bdev);
535
536 /* overwrite with user settings */
537 if (buts->start_lba)
538 bt->start_lba = buts->start_lba;
539 if (buts->end_lba)
540 bt->end_lba = buts->end_lba;
541
542 bt->pid = buts->pid;
543 bt->trace_state = Blktrace_setup;
544
545 ret = -EBUSY;
546 if (cmpxchg(&q->blk_trace, NULL, bt))
547 goto err;
548
549 get_probe_ref();
550
551 ret = 0;
552 err:
553 if (ret)
554 blk_trace_free(bt);
555 return ret;
556 }
557
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
Re: [PATCH] raid5: use memalloc_noio_save()/restore in resize_chunks()
by kbuild test robot
Hi Coly,
I love your patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.6 next-20200403]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Coly-Li/raid5-use-memalloc_noio_...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 919dce24701f7b34681a6a1d3ef95c9f6c4fb1cc
config: x86_64-rhel (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/md/raid5.c: In function 'scribble_alloc':
drivers/md/raid5.c:2237:15: warning: unused variable 'noio_flag' [-Wunused-variable]
unsigned int noio_flag;
^~~~~~~~~
drivers/md/raid5.c: In function 'resize_chunks':
>> drivers/md/raid5.c:2275:14: error: implicit declaration of function 'memalloc_noio_save'; did you mean 'vmalloc_to_page'? [-Werror=implicit-function-declaration]
noio_flag = memalloc_noio_save();
^~~~~~~~~~~~~~~~~~
vmalloc_to_page
>> drivers/md/raid5.c:2285:2: error: implicit declaration of function 'memalloc_noio_restore'; did you mean '__vmalloc_node_range'? [-Werror=implicit-function-declaration]
memalloc_noio_restore(noio_flag);
^~~~~~~~~~~~~~~~~~~~~
__vmalloc_node_range
cc1: some warnings being treated as errors
vim +2275 drivers/md/raid5.c
2249
2250 static int resize_chunks(struct r5conf *conf, int new_disks, int new_sectors)
2251 {
2252 unsigned long cpu;
2253 int err = 0;
2254 unsigned int noio_flag;
2255
2256 /*
2257 * Never shrink. And mddev_suspend() could deadlock if this is called
2258 * from raid5d. In that case, scribble_disks and scribble_sectors
2259 * should equal to new_disks and new_sectors
2260 */
2261 if (conf->scribble_disks >= new_disks &&
2262 conf->scribble_sectors >= new_sectors)
2263 return 0;
2264 mddev_suspend(conf->mddev);
2265 get_online_cpus();
2266
2267 /*
2268 * scribble_alloc() allocates memory by kvmalloc_array(), if
2269 * the memory allocation triggers memory reclaim I/Os onto
2270 * this raid array, there might be potential deadlock if this
2271 * raid array happens to be suspended during memory allocation.
2272 * Here the scope APIs are used to disable such recursive memory
2273 * reclaim I/Os.
2274 */
> 2275 noio_flag = memalloc_noio_save();
2276 for_each_present_cpu(cpu) {
2277 struct raid5_percpu *percpu;
2278
2279 percpu = per_cpu_ptr(conf->percpu, cpu);
2280 err = scribble_alloc(percpu, new_disks,
2281 new_sectors / STRIPE_SECTORS);
2282 if (err)
2283 break;
2284 }
> 2285 memalloc_noio_restore(noio_flag);
2286
2287 put_online_cpus();
2288 mddev_resume(conf->mddev);
2289 if (!err) {
2290 conf->scribble_disks = new_disks;
2291 conf->scribble_sectors = new_sectors;
2292 }
2293 return err;
2294 }
2295
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months