[staging:debugfs_cleanup 814/814] arch/powerpc/platforms/powernv/opal-lpc.c:379:37: error: 'root' undeclared; did you mean 'ror8'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git debugfs_cleanup
head:   cfe0305886b14a4f65cba2014f1963db2a534113
commit: cfe0305886b14a4f65cba2014f1963db2a534113 [814/814] arch/*: no need to check return value of debugfs_create functions
config: powerpc-defconfig (attached as .config)
compiler: powerpc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.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 cfe0305886b14a4f65cba2014f1963db2a534113
        # save the attached .config to linux build tree
        make.cross ARCH=powerpc 

All errors (new ones prefixed by >>):

   arch/powerpc/platforms/powernv/opal-lpc.c: In function 'opal_lpc_init_debugfs':
>> arch/powerpc/platforms/powernv/opal-lpc.c:379:37: error: 'root' undeclared (first use in this function); did you mean 'ror8'?
     rc |= opal_lpc_debugfs_create_type(root, "io", OPAL_LPC_IO);
                                        ^~~~
                                        ror8
   arch/powerpc/platforms/powernv/opal-lpc.c:379:37: note: each undeclared identifier is reported only once for each function it appears in
--
   arch/powerpc/platforms/powernv/vas-debug.c: In function 'vas_window_init_dbgdir':
>> arch/powerpc/platforms/powernv/vas-debug.c:142:17: error: unused variable 'f' [-Werror=unused-variable]
     struct dentry *f, *d;
                    ^
   cc1: all warnings being treated as errors

vim +379 arch/powerpc/platforms/powernv/opal-lpc.c

fa2dbe2e Benjamin Herrenschmidt 2014-06-03  369  
fa2dbe2e Benjamin Herrenschmidt 2014-06-03  370  static int opal_lpc_init_debugfs(void)
fa2dbe2e Benjamin Herrenschmidt 2014-06-03  371  {
fa2dbe2e Benjamin Herrenschmidt 2014-06-03  372  	int rc = 0;
fa2dbe2e Benjamin Herrenschmidt 2014-06-03  373  
fa2dbe2e Benjamin Herrenschmidt 2014-06-03  374  	if (opal_lpc_chip_id < 0)
fa2dbe2e Benjamin Herrenschmidt 2014-06-03  375  		return -ENODEV;
fa2dbe2e Benjamin Herrenschmidt 2014-06-03  376  
cfe03058 Greg Kroah-Hartman     2018-05-30  377  	debugfs_create_dir("lpc", powerpc_debugfs_root);
fa2dbe2e Benjamin Herrenschmidt 2014-06-03  378  
fa2dbe2e Benjamin Herrenschmidt 2014-06-03 @379  	rc |= opal_lpc_debugfs_create_type(root, "io", OPAL_LPC_IO);
fa2dbe2e Benjamin Herrenschmidt 2014-06-03  380  	rc |= opal_lpc_debugfs_create_type(root, "mem", OPAL_LPC_MEM);
fa2dbe2e Benjamin Herrenschmidt 2014-06-03  381  	rc |= opal_lpc_debugfs_create_type(root, "fw", OPAL_LPC_FW);
fa2dbe2e Benjamin Herrenschmidt 2014-06-03  382  	return rc;
fa2dbe2e Benjamin Herrenschmidt 2014-06-03  383  }
b14726c5 Michael Ellerman       2014-07-15  384  machine_device_initcall(powernv, opal_lpc_init_debugfs);
fa2dbe2e Benjamin Herrenschmidt 2014-06-03  385  #endif  /* CONFIG_DEBUG_FS */
fa2dbe2e Benjamin Herrenschmidt 2014-06-03  386  

:::::: The code at line 379 was first introduced by commit
:::::: fa2dbe2e0fcf2cda8fc56845e475b617385b1ec6 powerpc/powernv: Provide debugfs access to the LPC bus via OPAL

:::::: TO: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
:::::: CC: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>

---
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
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux