Re: [PATCH net-next 1/2] net: dsa: Use conduit and user terms

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

 



Hi Florian,

kernel test robot noticed the following build warnings:

[auto build test WARNING on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Florian-Fainelli/net-dsa-Use-conduit-and-user-terms/20231011-054044
base:   net-next/main
patch link:    https://lore.kernel.org/r/20231010213942.3633407-2-florian.fainelli%40broadcom.com
patch subject: [PATCH net-next 1/2] net: dsa: Use conduit and user terms
config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20231011/202310111600.FwR1laqR-lkp@xxxxxxxxx/config)
compiler: sparc64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231011/202310111600.FwR1laqR-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202310111600.FwR1laqR-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

   drivers/net/ethernet/mediatek/mtk_ppe_offload.c: In function 'mtk_flow_get_dsa_port':
   drivers/net/ethernet/mediatek/mtk_ppe_offload.c:178:16: error: implicit declaration of function 'dsa_port_to_master'; did you mean 'dsa_port_is_user'? [-Werror=implicit-function-declaration]
     178 |         *dev = dsa_port_to_master(dp);
         |                ^~~~~~~~~~~~~~~~~~
         |                dsa_port_is_user
>> drivers/net/ethernet/mediatek/mtk_ppe_offload.c:178:14: warning: assignment to 'struct net_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     178 |         *dev = dsa_port_to_master(dp);
         |              ^
   cc1: some warnings being treated as errors


vim +178 drivers/net/ethernet/mediatek/mtk_ppe_offload.c

502e84e2382d92 Felix Fietkau   2021-03-24  164  
502e84e2382d92 Felix Fietkau   2021-03-24  165  static int
502e84e2382d92 Felix Fietkau   2021-03-24  166  mtk_flow_get_dsa_port(struct net_device **dev)
502e84e2382d92 Felix Fietkau   2021-03-24  167  {
502e84e2382d92 Felix Fietkau   2021-03-24  168  #if IS_ENABLED(CONFIG_NET_DSA)
502e84e2382d92 Felix Fietkau   2021-03-24  169  	struct dsa_port *dp;
502e84e2382d92 Felix Fietkau   2021-03-24  170  
502e84e2382d92 Felix Fietkau   2021-03-24  171  	dp = dsa_port_from_netdev(*dev);
502e84e2382d92 Felix Fietkau   2021-03-24  172  	if (IS_ERR(dp))
502e84e2382d92 Felix Fietkau   2021-03-24  173  		return -ENODEV;
502e84e2382d92 Felix Fietkau   2021-03-24  174  
502e84e2382d92 Felix Fietkau   2021-03-24  175  	if (dp->cpu_dp->tag_ops->proto != DSA_TAG_PROTO_MTK)
502e84e2382d92 Felix Fietkau   2021-03-24  176  		return -ENODEV;
502e84e2382d92 Felix Fietkau   2021-03-24  177  
8f6a19c0316deb Vladimir Oltean 2022-09-11 @178  	*dev = dsa_port_to_master(dp);
502e84e2382d92 Felix Fietkau   2021-03-24  179  
502e84e2382d92 Felix Fietkau   2021-03-24  180  	return dp->index;
502e84e2382d92 Felix Fietkau   2021-03-24  181  #else
502e84e2382d92 Felix Fietkau   2021-03-24  182  	return -ENODEV;
502e84e2382d92 Felix Fietkau   2021-03-24  183  #endif
502e84e2382d92 Felix Fietkau   2021-03-24  184  }
502e84e2382d92 Felix Fietkau   2021-03-24  185  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux