All of lore.kernel.org
 help / color / mirror / Atom feed
* [jpirko-mlxsw:jiri_devel_xmrouter 27/39] drivers/net/ethernet/mellanox/mlxsw/spectrum_router_xm.c:33:47: sparse: sparse: mixing different enum types:
@ 2020-08-29 12:06 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-08-29 12:06 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2177 bytes --]

tree:   https://github.com/jpirko/linux_mlxsw jiri_devel_xmrouter
head:   f3b1d83668ed678c8d1b3d228441a002df7d8edc
commit: 2447119d73daa390fd5b555008f1b1e5c7dda9f2 [27/39] mlxsw: spectrum_router: Introduce XM implementation of router low-level ops
config: xtensa-randconfig-s032-20200829 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.2-191-g10164920-dirty
        git checkout 2447119d73daa390fd5b555008f1b1e5c7dda9f2
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=xtensa 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)

>> drivers/net/ethernet/mellanox/mlxsw/spectrum_router_xm.c:33:47: sparse: sparse: mixing different enum types:
>> drivers/net/ethernet/mellanox/mlxsw/spectrum_router_xm.c:33:47: sparse:    unsigned int enum mlxsw_sp_l3proto
>> drivers/net/ethernet/mellanox/mlxsw/spectrum_router_xm.c:33:47: sparse:    unsigned int enum mlxsw_reg_rxlte_protocol

# https://github.com/jpirko/linux_mlxsw/commit/2447119d73daa390fd5b555008f1b1e5c7dda9f2
git remote add jpirko-mlxsw https://github.com/jpirko/linux_mlxsw
git fetch --no-tags jpirko-mlxsw jiri_devel_xmrouter
git checkout 2447119d73daa390fd5b555008f1b1e5c7dda9f2
vim +33 drivers/net/ethernet/mellanox/mlxsw/spectrum_router_xm.c

    27	
    28	static int mlxsw_sp_router_ll_xm_init(struct mlxsw_sp *mlxsw_sp, u16 vr_id,
    29					      enum mlxsw_sp_l3proto proto)
    30	{
    31		char rxlte_pl[MLXSW_REG_RXLTE_LEN];
    32	
  > 33		mlxsw_reg_rxlte_pack(rxlte_pl, vr_id, proto, true);
    34		return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(rxlte), rxlte_pl);
    35	}
    36	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 27216 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-29 12:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-29 12:06 [jpirko-mlxsw:jiri_devel_xmrouter 27/39] drivers/net/ethernet/mellanox/mlxsw/spectrum_router_xm.c:33:47: sparse: sparse: mixing different enum types: kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.