* [dhowells-fs:fscache-iter 21/27] fs/afs/file.c:453:7: error: implicit declaration of function 'try_cmpxchg'; did you mean 'xa_cmpxchg'?
@ 2019-11-05 23:38 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-11-05 23:38 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2423 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git fscache-iter
head: d72ed03ddefa7348c1a563c7e4d49c8ba594ab2d
commit: 8abd21c233f87626def5c24547ce5029d1ee3680 [21/27] afs: Use new fscache I/O API
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 7.4.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 8abd21c233f87626def5c24547ce5029d1ee3680
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
fs/afs/file.c: In function 'afs_open_cache':
>> fs/afs/file.c:453:7: error: implicit declaration of function 'try_cmpxchg'; did you mean 'xa_cmpxchg'? [-Werror=implicit-function-declaration]
if (!try_cmpxchg(&af->cache_io, &old, handle)) {
^~~~~~~~~~~
xa_cmpxchg
In file included from fs/afs/file.c:17:0:
fs/afs/file.c: In function 'afs_readpages_one':
>> fs/afs/internal.h:1443:2: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
printk("[%-6.6s] "FMT"\n", current->comm ,##__VA_ARGS__)
^~~~~~
fs/afs/file.c:536:6: note: 'ret' was declared here
int ret;
^~~
cc1: some warnings being treated as errors
vim +453 fs/afs/file.c
434
435 /*
436 * Open the cache I/O handle.
437 */
438 static struct fscache_io_handle *afs_open_cache(struct file *file,
439 struct afs_vnode *vnode)
440 {
441 struct fscache_io_handle *handle, *old;
442 struct afs_file *af = file->private_data;
443
444 handle = af->cache_io;
445 if (handle)
446 return handle;
447
448 handle = fscache_open_io_handle(vnode->cache);
449 if (!handle)
450 return handle;
451
452 old = NULL;
> 453 if (!try_cmpxchg(&af->cache_io, &old, handle)) {
454 ASSERTCMP(old, ==, handle);
455 fscache_put_io_handle(handle);
456 }
457
458 return handle;
459 }
460
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 59580 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-11-05 23:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-05 23:38 [dhowells-fs:fscache-iter 21/27] fs/afs/file.c:453:7: error: implicit declaration of function 'try_cmpxchg'; did you mean 'xa_cmpxchg'? kbuild test robot
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.