Re: [PATCH] ipc, shm: make shmem attach/detach wait for mmap_sem killable

From: kbuild test robot
Date: Wed Mar 09 2016 - 05:47:51 EST


Hi Michal,

[auto build test ERROR on v4.5-rc7]
[also build test ERROR on next-20160309]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url: https://github.com/0day-ci/linux/commits/Michal-Hocko/ipc-shm-make-shmem-attach-detach-wait-for-mmap_sem-killable/20160309-182238
config: xtensa-allyesconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=xtensa

All errors (new ones prefixed by >>):

ipc/shm.c: In function 'do_shmat':
>> ipc/shm.c:1203:2: error: implicit declaration of function 'down_write_killable' [-Werror=implicit-function-declaration]
if (down_write_killable(&current->mm->mmap_sem)) {
^
cc1: some warnings being treated as errors

vim +/down_write_killable +1203 ipc/shm.c

1197 sfd->vm_ops = NULL;
1198
1199 err = security_mmap_file(file, prot, flags);
1200 if (err)
1201 goto out_fput;
1202
> 1203 if (down_write_killable(&current->mm->mmap_sem)) {
1204 err = -EINTR;
1205 goto out_fput;
1206 }

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

Attachment: .config.gz
Description: Binary data