tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git 
debugfs_remove_return_value
head:   a9982873fa1b922bd9001be2720dc624970f47d8
commit: b5ecb947d7ee5c3510544593d3932cd6f6515afc [19/20] debugfs: remove return 
value of debugfs_create_u32()
config: powerpc-randconfig-a001-20200308 (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 7.5.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 b5ecb947d7ee5c3510544593d3932cd6f6515afc
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=powerpc 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <l...@intel.com>

All errors (new ones prefixed by >>):

   arch/powerpc/kernel/traps.c: In function 'ppc_warn_emulated_init':
>> arch/powerpc/kernel/traps.c:2293:4: error: void value not ignored as it 
>> ought to be
     d = debugfs_create_u32("do_warn", 0644, dir,
       ^
   arch/powerpc/kernel/traps.c:2299:5: error: void value not ignored as it 
ought to be
      d = debugfs_create_u32(entries[i].name, 0644, dir,
        ^

vim +2293 arch/powerpc/kernel/traps.c

80947e7c99c29c Geert Uytterhoeven 2009-05-18  2278  
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2279  static int __init 
ppc_warn_emulated_init(void)
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2280  {
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2281      struct dentry *dir, *d;
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2282      unsigned int i;
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2283      struct 
ppc_emulated_entry *entries = (void *)&ppc_emulated;
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2284  
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2285      if 
(!powerpc_debugfs_root)
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2286              return -ENODEV;
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2287  
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2288      dir = 
debugfs_create_dir("emulated_instructions",
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2289                              
 powerpc_debugfs_root);
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2290      if (!dir)
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2291              return -ENOMEM;
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2292  
57ad583f2086d5 Russell Currey     2017-01-12 @2293      d = 
debugfs_create_u32("do_warn", 0644, dir,
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2294                             
&ppc_warn_emulated);
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2295      if (!d)
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2296              goto fail;
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2297  
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2298      for (i = 0; i < 
sizeof(ppc_emulated)/sizeof(*entries); i++) {
57ad583f2086d5 Russell Currey     2017-01-12  2299              d = 
debugfs_create_u32(entries[i].name, 0644, dir,
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2300                              
       (u32 *)&entries[i].val.counter);
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2301              if (!d)
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2302                      goto 
fail;
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2303      }
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2304  
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2305      return 0;
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2306  
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2307  fail:
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2308      
debugfs_remove_recursive(dir);
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2309      return -ENOMEM;
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2310  }
80947e7c99c29c Geert Uytterhoeven 2009-05-18  2311  

:::::: The code at line 2293 was first introduced by commit
:::::: 57ad583f2086d55ada284c54bfc440123cf73964 powerpc: Use octal numbers for 
file permissions

:::::: TO: Russell Currey <rus...@russell.cc>
:::::: CC: Michael Ellerman <m...@ellerman.id.au>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org

Attachment: .config.gz
Description: application/gzip

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

Reply via email to