tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git 
debugfs_cleanup
head:   831c1cdf048a55a4b381603f384c5f4d6587413e
commit: 9fc144b89788ee59bec6570b7dcf40eaa472430b [128/140] crypto: nx: no need 
to check return value of debugfs_create functions
config: powerpc-allyesconfig (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 9fc144b89788ee59bec6570b7dcf40eaa472430b
        # 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 <l...@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:69:7: error: 'dfs_root' undeclared (first 
>> use in this function); did you mean 'rb_root'?
          dfs_root, (u32 *)&drv->stats.last_error_pid);
          ^~~~~~~~
          rb_root
   drivers/crypto//nx/nx_debugfs.c:69:7: note: each undeclared identifier is 
reported only once for each function it appears in

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

    36  
    37  /*
    38   * debugfs
    39   *
    40   * For documentation on these attributes, please see:
    41   *
    42   * Documentation/ABI/testing/debugfs-pfo-nx-crypto
    43   */
    44  
    45  void nx_debugfs_init(struct nx_crypto_driver *drv)
    46  {
    47          struct dentry *root;
    48  
    49          root = debugfs_create_dir(NX_NAME, NULL);
    50          drv->dfs_root = root;
    51  
    52          debugfs_create_u32("aes_ops", S_IRUSR | S_IRGRP | S_IROTH,
    53                             root, (u32 *)&drv->stats.aes_ops);
    54          debugfs_create_u32("sha256_ops", S_IRUSR | S_IRGRP | S_IROTH,
    55                             root, (u32 *)&drv->stats.sha256_ops);
    56          debugfs_create_u32("sha512_ops", S_IRUSR | S_IRGRP | S_IROTH,
    57                             root, (u32 *)&drv->stats.sha512_ops);
    58          debugfs_create_u64("aes_bytes", S_IRUSR | S_IRGRP | S_IROTH,
    59                             root, (u64 *)&drv->stats.aes_bytes);
    60          debugfs_create_u64("sha256_bytes", S_IRUSR | S_IRGRP | S_IROTH,
    61                             root, (u64 *)&drv->stats.sha256_bytes);
    62          debugfs_create_u64("sha512_bytes", S_IRUSR | S_IRGRP | S_IROTH,
    63                             root, (u64 *)&drv->stats.sha512_bytes);
    64          debugfs_create_u32("errors", S_IRUSR | S_IRGRP | S_IROTH,
    65                             root, (u32 *)&drv->stats.errors);
    66          debugfs_create_u32("last_error", S_IRUSR | S_IRGRP | S_IROTH,
    67                             root, (u32 *)&drv->stats.last_error);
    68          debugfs_create_u32("last_error_pid", S_IRUSR | S_IRGRP | 
S_IROTH,
  > 69                             dfs_root, (u32 *)&drv->stats.last_error_pid);
    70  }
    71  

---
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