All of lore.kernel.org
 help / color / mirror / Atom feed
* [driver-core:debugfs_remove_return_value 19/20] arch/powerpc/kernel/traps.c:2293:4: error: void value not ignored as it ought to be
@ 2020-03-08 10:36 ` kbuild test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2020-03-08 10:36 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: devel, kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4039 bytes --]

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 <lkp@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 <ruscur@russell.cc>
:::::: CC: Michael Ellerman <mpe@ellerman.id.au>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 28468 bytes --]

[-- Attachment #3: Type: text/plain, Size: 169 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [driver-core:debugfs_remove_return_value 19/20] arch/powerpc/kernel/traps.c:2293:4: error: void value not ignored as it ought to be
@ 2020-03-08 10:36 ` kbuild test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2020-03-08 10:36 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4109 bytes --]

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 <lkp@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@line 2293 was first introduced by commit
:::::: 57ad583f2086d55ada284c54bfc440123cf73964 powerpc: Use octal numbers for file permissions

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

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 28468 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-08 10:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-08 10:36 [driver-core:debugfs_remove_return_value 19/20] arch/powerpc/kernel/traps.c:2293:4: error: void value not ignored as it ought to be kbuild test robot
2020-03-08 10:36 ` 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.