Subject: Re: [PATCH net-next v2 5/6] net: microchip: sparx5: add support for offloading dscp table

From: kernel test robot <[email-masked]>
Date: Sat, 1 Oct 2022 07:23:30 +0800

Hi Daniel,

I love your patch! Yet something to improve:

[auto build test ERROR on net-next/master]

url:    https://github.com/intel-lab-lkp/linux/commits/Daniel-Machon/Add-new-PCP-and-APPTRUST-attributes-to-dcbnl/20220930-024511
base:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 510bbf82f8dc36804114873d30ed1d0c8533af81
config: sh-randconfig-r024-20220926
compiler: sh4-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/intel-lab-lkp/linux/commit/443c23e1ddfd38eba2240f4de118876c58f2439e
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Daniel-Machon/Add-new-PCP-and-APPTRUST-attributes-to-dcbnl/20220930-024511
        git checkout 443c23e1ddfd38eba2240f4de118876c58f2439e
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh SHELL=/bin/bash drivers/net/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email-masked]>

All errors (new ones prefixed by >>):

   cc1: warning: arch/sh/include/mach-rsk: No such file or directory [-Wmissing-include-dirs]
   cc1: warning: arch/sh/include/mach-rsk: No such file or directory [-Wmissing-include-dirs]
   In file included from drivers/net/ethernet/microchip/sparx5/sparx5_main.c:29:
>> drivers/net/ethernet/microchip/sparx5/sparx5_port.h:105:38: error: field 'map' has incomplete type
     105 |         struct dcb_ieee_app_dscp_map map;
         |                                      ^~~
--
   cc1: warning: arch/sh/include/mach-rsk: No such file or directory [-Wmissing-include-dirs]
   cc1: warning: arch/sh/include/mach-rsk: No such file or directory [-Wmissing-include-dirs]
   In file included from drivers/net/ethernet/microchip/sparx5/sparx5_netdev.c:9:
>> drivers/net/ethernet/microchip/sparx5/sparx5_port.h:105:38: error: field 'map' has incomplete type
     105 |         struct dcb_ieee_app_dscp_map map;
         |                                      ^~~
   drivers/net/ethernet/microchip/sparx5/sparx5_netdev.c: In function 'sparx5_create_netdev':
   drivers/net/ethernet/microchip/sparx5/sparx5_netdev.c:261:13: error: 'struct net_device' has no member named 'dcbnl_ops'
     261 |         ndev->dcbnl_ops = &sparx5_dcbnl_ops;
         |             ^~

vim +/map +105 drivers/net/ethernet/microchip/sparx5/sparx5_port.h

   103	
   104	struct sparx5_port_qos_dscp {
 > 105		struct dcb_ieee_app_dscp_map map;
   106		bool qos_enable;
   107		bool dp_enable;
   108	};
   109	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp