tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git 
usermode_ro
head:   00ed986b7a8fbb11b0c154e8dda5ee7c5ea48a43
commit: 00ed986b7a8fbb11b0c154e8dda5ee7c5ea48a43 [4/4] Introduce 
CONFIG_READONLY_USERMODEHELPER
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 00ed986b7a8fbb11b0c154e8dda5ee7c5ea48a43
        # save the attached .config to linux build tree
        make ARCH=i386 

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

   drivers/block/drbd/drbd_nl.c: In function 'drbd_khelper':
>> drivers/block/drbd/drbd_nl.c:347:18: warning: initialization discards 
>> 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     char *argv[] = {drbd_usermode_helper, cmd, mb, NULL };
                     ^~~~~~~~~~~~~~~~~~~~
   drivers/block/drbd/drbd_nl.c: In function 'conn_khelper':
   drivers/block/drbd/drbd_nl.c:399:18: warning: initialization discards 
'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     char *argv[] = {drbd_usermode_helper, cmd, resource_name, NULL };
                     ^~~~~~~~~~~~~~~~~~~~
--
   fs/nfs/cache_lib.c: In function 'nfs_cache_upcall':
>> fs/nfs/cache_lib.c:67:28: error: assignment of read-only location 
>> 'nfs_cache_getent_prog[0]'
      nfs_cache_getent_prog[0] = '\0';
                               ^
--
>> lib/kobject_uevent.c:35:6: error: conflicting types for 'uevent_helper'
    char uevent_helper[UEVENT_HELPER_PATH_LEN] = CONFIG_UEVENT_HELPER_PATH;
         ^~~~~~~~~~~~~
   In file included from lib/kobject_uevent.c:19:0:
   include/linux/kobject.h:37:13: note: previous declaration of 'uevent_helper' 
was here
    extern char uevent_helper[];
                ^~~~~~~~~~~~~
   lib/kobject_uevent.c: In function 'init_uevent_argv':
>> lib/kobject_uevent.c:143:15: warning: assignment discards 'const' qualifier 
>> from pointer target type [-Wdiscarded-qualifiers]
     env->argv[0] = uevent_helper;
                  ^

vim +67 fs/nfs/cache_lib.c

e571cbf1 Trond Myklebust 2009-08-19  61          * Disable the upcall mechanism 
if we're getting an ENOENT or
e571cbf1 Trond Myklebust 2009-08-19  62          * EACCES error. The admin can 
re-enable it on the fly by using
e571cbf1 Trond Myklebust 2009-08-19  63          * sysfs to set the 
'cache_getent' parameter once the problem
e571cbf1 Trond Myklebust 2009-08-19  64          * has been fixed.
e571cbf1 Trond Myklebust 2009-08-19  65          */
e571cbf1 Trond Myklebust 2009-08-19  66         if (ret == -ENOENT || ret == 
-EACCES)
e571cbf1 Trond Myklebust 2009-08-19 @67                 
nfs_cache_getent_prog[0] = '\0';
e571cbf1 Trond Myklebust 2009-08-19  68  out:
e571cbf1 Trond Myklebust 2009-08-19  69         return ret > 0 ? 0 : ret;
e571cbf1 Trond Myklebust 2009-08-19  70  }

:::::: The code at line 67 was first introduced by commit
:::::: e571cbf1a4f8d8b6cfd4898df718dae84c75a8e1 NFS: Add a dns resolver for use 
with NFSv4 referrals and migration

:::::: TO: Trond Myklebust <trond.mykleb...@netapp.com>
:::::: CC: Trond Myklebust <trond.mykleb...@netapp.com>

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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to