[driver-core:debugfs_cleanup 9/68] drivers/net/ethernet/broadcom/bnxt/bnxt_debugfs.c:64:42: warning: 'struct net_dim' declared inside parameter list will not be visible outside of this definition or declaration

kbuild test robot lkp at intel.com
Sat Jul 13 19:24:49 UTC 2019


tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/gregkh/driver-core.git debugfs_cleanup
head:   98866fd07da3f475e442fa6362a8256d04672221
commit: dcbf3bd7af5468bace39cf3b57c94e5f15fbe95a [9/68] WIP: ethernet: break up...
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-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 dcbf3bd7af5468bace39cf3b57c94e5f15fbe95a
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=arm 

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

All warnings (new ones prefixed by >>):

>> drivers/net/ethernet/broadcom/bnxt/bnxt_debugfs.c:64:42: warning: 'struct net_dim' declared inside parameter list will not be visible outside of this definition or declaration
    static void debugfs_dim_ring_init(struct net_dim *dim, int ring_idx,
                                             ^~~~~~~
   drivers/net/ethernet/broadcom/bnxt/bnxt_debugfs.c: In function 'bnxt_debug_dev_init':
   drivers/net/ethernet/broadcom/bnxt/bnxt_debugfs.c:86:26: error: passing argument 1 of 'debugfs_dim_ring_init' from incompatible pointer type [-Werror=incompatible-pointer-types]
       debugfs_dim_ring_init(&cpr->dim, i,
                             ^
   drivers/net/ethernet/broadcom/bnxt/bnxt_debugfs.c:64:13: note: expected 'struct net_dim *' but argument is of type 'struct dim *'
    static void debugfs_dim_ring_init(struct net_dim *dim, int ring_idx,
                ^~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +64 drivers/net/ethernet/broadcom/bnxt/bnxt_debugfs.c

    63	
  > 64	static void debugfs_dim_ring_init(struct net_dim *dim, int ring_idx,
    65					  struct dentry *dd)
    66	{
    67		static char qname[16];
    68	
    69		snprintf(qname, 10, "%d", ring_idx);
    70		debugfs_create_file(qname, 0600, dd, dim, &debugfs_dim_fops);
    71	}
    72	

---
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: 71139 bytes
Desc: not available
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20190714/443d4dfa/attachment-0001.bin>


More information about the devel mailing list