tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 
WIP.sched/core
head:   a69a38e26e87ddbe993e33b55f693405cd62c76f
commit: bcdc18d4a46bc321d73fa769cfe294cf3cdae07d [117/122] sched/headers: 
Remove <linux/cred.h> inclusion from <linux/sched.h>
config: x86_64-randconfig-s4-02030507 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout bcdc18d4a46bc321d73fa769cfe294cf3cdae07d
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   drivers/misc/vmw_vmci/vmci_host.c: In function 'vmci_host_do_init_context':
>> drivers/misc/vmw_vmci/vmci_host.c:321:9: error: implicit declaration of 
>> function 'get_current_cred' [-Werror=implicit-function-declaration]
     cred = get_current_cred();
            ^~~~~~~~~~~~~~~~
>> drivers/misc/vmw_vmci/vmci_host.c:321:7: warning: assignment makes pointer 
>> from integer without a cast [-Wint-conversion]
     cred = get_current_cred();
          ^
>> drivers/misc/vmw_vmci/vmci_host.c:326:2: error: implicit declaration of 
>> function 'put_cred' [-Werror=implicit-function-declaration]
     put_cred(cred);
     ^~~~~~~~
   cc1: some warnings being treated as errors

vim +/get_current_cred +321 drivers/misc/vmw_vmci/vmci_host.c

8bf50399 George Zhang 2013-01-08  315   if (init_block.flags & 
~VMCI_PRIVILEGE_FLAG_RESTRICTED) {
8bf50399 George Zhang 2013-01-08  316           vmci_ioctl_err("unsupported 
VMCI restriction flag\n");
8bf50399 George Zhang 2013-01-08  317           retval = -EINVAL;
8bf50399 George Zhang 2013-01-08  318           goto out;
8bf50399 George Zhang 2013-01-08  319   }
8bf50399 George Zhang 2013-01-08  320  
8bf50399 George Zhang 2013-01-08 @321   cred = get_current_cred();
8bf50399 George Zhang 2013-01-08  322   vmci_host_dev->context = 
vmci_ctx_create(init_block.cid,
8bf50399 George Zhang 2013-01-08  323                                           
 init_block.flags, 0,
8bf50399 George Zhang 2013-01-08  324                                           
 vmci_host_dev->user_version,
8bf50399 George Zhang 2013-01-08  325                                           
 cred);
8bf50399 George Zhang 2013-01-08 @326   put_cred(cred);
8bf50399 George Zhang 2013-01-08  327   if (IS_ERR(vmci_host_dev->context)) {
8bf50399 George Zhang 2013-01-08  328           retval = 
PTR_ERR(vmci_host_dev->context);
8bf50399 George Zhang 2013-01-08  329           vmci_ioctl_err("error 
initializing context\n");

:::::: The code at line 321 was first introduced by commit
:::::: 8bf503991f87e32ea42a7bd69b79ba084fddc5d7 VMCI: host side driver 
implementation.

:::::: TO: George Zhang <[email protected]>
:::::: CC: Greg Kroah-Hartman <[email protected]>

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

Attachment: .config.gz
Description: application/gzip

Reply via email to