[driver-core:debugfs_cleanup 133/139] drivers/crypto/nx/nx_debugfs.c:51:19: error: void value not ignored as it ought to be

kbuild test robot lkp at intel.com
Fri Jun 14 12:18:57 UTC 2019


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git debugfs_cleanup
head:   27d0b4c0cd182361a817b61e9329ffcfea4edca7
commit: 1bb8a20835fa47c2d4507b092e0f8b9423e16d18 [133/139] debugfs: remove return value of debugfs_create_u32()
config: powerpc-defconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 7.4.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 1bb8a20835fa47c2d4507b092e0f8b9423e16d18
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=powerpc 

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

All errors (new ones prefixed by >>):

   drivers/crypto/nx/nx_debugfs.c: In function 'nx_debugfs_init':
>> drivers/crypto/nx/nx_debugfs.c:51:19: error: void value not ignored as it ought to be
     dfs->dfs_aes_ops =
                      ^
   drivers/crypto/nx/nx_debugfs.c:55:22: error: void value not ignored as it ought to be
     dfs->dfs_sha256_ops =
                         ^
   drivers/crypto/nx/nx_debugfs.c:60:22: error: void value not ignored as it ought to be
     dfs->dfs_sha512_ops =
                         ^
   drivers/crypto/nx/nx_debugfs.c:80:18: error: void value not ignored as it ought to be
     dfs->dfs_errors =
                     ^
   drivers/crypto/nx/nx_debugfs.c:84:22: error: void value not ignored as it ought to be
     dfs->dfs_last_error =
                         ^
   drivers/crypto/nx/nx_debugfs.c:89:26: error: void value not ignored as it ought to be
     dfs->dfs_last_error_pid =
                             ^

vim +51 drivers/crypto/nx/nx_debugfs.c

175e0e23 Kent Yoder 2012-04-12  36  
175e0e23 Kent Yoder 2012-04-12  37  /*
175e0e23 Kent Yoder 2012-04-12  38   * debugfs
175e0e23 Kent Yoder 2012-04-12  39   *
175e0e23 Kent Yoder 2012-04-12  40   * For documentation on these attributes, please see:
175e0e23 Kent Yoder 2012-04-12  41   *
175e0e23 Kent Yoder 2012-04-12  42   * Documentation/ABI/testing/debugfs-pfo-nx-crypto
175e0e23 Kent Yoder 2012-04-12  43   */
175e0e23 Kent Yoder 2012-04-12  44  
175e0e23 Kent Yoder 2012-04-12  45  int nx_debugfs_init(struct nx_crypto_driver *drv)
175e0e23 Kent Yoder 2012-04-12  46  {
175e0e23 Kent Yoder 2012-04-12  47  	struct nx_debugfs *dfs = &drv->dfs;
175e0e23 Kent Yoder 2012-04-12  48  
175e0e23 Kent Yoder 2012-04-12  49  	dfs->dfs_root = debugfs_create_dir(NX_NAME, NULL);
175e0e23 Kent Yoder 2012-04-12  50  
175e0e23 Kent Yoder 2012-04-12 @51  	dfs->dfs_aes_ops =
175e0e23 Kent Yoder 2012-04-12  52  		debugfs_create_u32("aes_ops",
175e0e23 Kent Yoder 2012-04-12  53  				   S_IRUSR | S_IRGRP | S_IROTH,
175e0e23 Kent Yoder 2012-04-12  54  				   dfs->dfs_root, (u32 *)&drv->stats.aes_ops);
175e0e23 Kent Yoder 2012-04-12  55  	dfs->dfs_sha256_ops =
175e0e23 Kent Yoder 2012-04-12  56  		debugfs_create_u32("sha256_ops",
175e0e23 Kent Yoder 2012-04-12  57  				   S_IRUSR | S_IRGRP | S_IROTH,
175e0e23 Kent Yoder 2012-04-12  58  				   dfs->dfs_root,
175e0e23 Kent Yoder 2012-04-12  59  				   (u32 *)&drv->stats.sha256_ops);
175e0e23 Kent Yoder 2012-04-12  60  	dfs->dfs_sha512_ops =
175e0e23 Kent Yoder 2012-04-12  61  		debugfs_create_u32("sha512_ops",
175e0e23 Kent Yoder 2012-04-12  62  				   S_IRUSR | S_IRGRP | S_IROTH,
175e0e23 Kent Yoder 2012-04-12  63  				   dfs->dfs_root,
175e0e23 Kent Yoder 2012-04-12  64  				   (u32 *)&drv->stats.sha512_ops);
175e0e23 Kent Yoder 2012-04-12  65  	dfs->dfs_aes_bytes =
175e0e23 Kent Yoder 2012-04-12  66  		debugfs_create_u64("aes_bytes",
175e0e23 Kent Yoder 2012-04-12  67  				   S_IRUSR | S_IRGRP | S_IROTH,
175e0e23 Kent Yoder 2012-04-12  68  				   dfs->dfs_root,
175e0e23 Kent Yoder 2012-04-12  69  				   (u64 *)&drv->stats.aes_bytes);
175e0e23 Kent Yoder 2012-04-12  70  	dfs->dfs_sha256_bytes =
175e0e23 Kent Yoder 2012-04-12  71  		debugfs_create_u64("sha256_bytes",
175e0e23 Kent Yoder 2012-04-12  72  				   S_IRUSR | S_IRGRP | S_IROTH,
175e0e23 Kent Yoder 2012-04-12  73  				   dfs->dfs_root,
175e0e23 Kent Yoder 2012-04-12  74  				   (u64 *)&drv->stats.sha256_bytes);
175e0e23 Kent Yoder 2012-04-12  75  	dfs->dfs_sha512_bytes =
175e0e23 Kent Yoder 2012-04-12  76  		debugfs_create_u64("sha512_bytes",
175e0e23 Kent Yoder 2012-04-12  77  				   S_IRUSR | S_IRGRP | S_IROTH,
175e0e23 Kent Yoder 2012-04-12  78  				   dfs->dfs_root,
175e0e23 Kent Yoder 2012-04-12  79  				   (u64 *)&drv->stats.sha512_bytes);
175e0e23 Kent Yoder 2012-04-12  80  	dfs->dfs_errors =
175e0e23 Kent Yoder 2012-04-12  81  		debugfs_create_u32("errors",
175e0e23 Kent Yoder 2012-04-12  82  				   S_IRUSR | S_IRGRP | S_IROTH,
175e0e23 Kent Yoder 2012-04-12  83  				   dfs->dfs_root, (u32 *)&drv->stats.errors);
175e0e23 Kent Yoder 2012-04-12  84  	dfs->dfs_last_error =
175e0e23 Kent Yoder 2012-04-12  85  		debugfs_create_u32("last_error",
175e0e23 Kent Yoder 2012-04-12  86  				   S_IRUSR | S_IRGRP | S_IROTH,
175e0e23 Kent Yoder 2012-04-12  87  				   dfs->dfs_root,
175e0e23 Kent Yoder 2012-04-12  88  				   (u32 *)&drv->stats.last_error);
175e0e23 Kent Yoder 2012-04-12  89  	dfs->dfs_last_error_pid =
175e0e23 Kent Yoder 2012-04-12  90  		debugfs_create_u32("last_error_pid",
175e0e23 Kent Yoder 2012-04-12  91  				   S_IRUSR | S_IRGRP | S_IROTH,
175e0e23 Kent Yoder 2012-04-12  92  				   dfs->dfs_root,
175e0e23 Kent Yoder 2012-04-12  93  				   (u32 *)&drv->stats.last_error_pid);
175e0e23 Kent Yoder 2012-04-12  94  	return 0;
175e0e23 Kent Yoder 2012-04-12  95  }
175e0e23 Kent Yoder 2012-04-12  96  

:::::: The code at line 51 was first introduced by commit
:::::: 175e0e23466185a861339796efc5b51958a48dc1 powerpc/crypto: debugfs routines and docs for the nx device driver

:::::: TO: Kent Yoder <key at linux.vnet.ibm.com>
:::::: CC: Benjamin Herrenschmidt <benh at kernel.crashing.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 24959 bytes
Desc: not available
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20190614/4b189069/attachment-0001.bin>


More information about the devel mailing list