From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B9A433EFD09 for ; Tue, 30 Jun 2026 10:31:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782815501; cv=none; b=BRfbYLdvDONKSkT21F2hxh2lg3X6G1g3K6EeyZNUWTGCMHidtwlfCAgRfXallCOviAeZqzVekkQX9DBP3xJffvz4miLxDYSre++RFxI6LFMBK3YbI/CEx5V0COuZe5PYC+i6w4PolHlFHkV1Iv8UlT/4Am46QUOPR++EixBw9c8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782815501; c=relaxed/simple; bh=eHQ7/enu/vvddw63fMStuTatazsHEAcWUDhk87VBbpc=; h=Date:From:To:Cc:Subject:Message-ID; b=RrIVWYwhkFxoxUxB/3CkKes+SaCMJ/LJsf1KFbQPEEHLm1tunPs+OW4daya3z68IQvZOQZ2vvuwA38QHNycqZrIKIFz8njf2rkIHK1wBzw6OesSZfOgm/JTyNnrx1wawUjp5T64lhPPI0ehCpxk76eIIAE4skW/qSxnZs+Ai3fo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=kvTyvoVx; arc=none smtp.client-ip=198.175.65.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kvTyvoVx" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1782815496; x=1814351496; h=date:from:to:cc:subject:message-id; bh=eHQ7/enu/vvddw63fMStuTatazsHEAcWUDhk87VBbpc=; b=kvTyvoVxVTKXGFRpsvq8eXxRimFFWgl8/VvPf2c9oNKOmFoGxzegULiE bA7RDblQ5IVG9A9stzYVZHYKyAq9YalfT5RIxBZIALZiwBiO+XAoz7D+b z673NGWVBoNV93L7uRJcilOQR5FvCduQt+9rMV8fA6rodzmLEJvP1Vwue e2VTQgRt6kgEiZJJpSGd9S7QfmxjMk9d38/AA6mFsGEaiieeXlpmm35Y6 aFMpeqx9bCKiy9xZLXAWSuiAO4QAN1wylW9AjhOSsnp5dfxed0juHV+VY GGaIvVs969Pmi4UwZXJVwzJ+XrnfxGFIkP482FHOG3l4bCJ+iN2eR4MCB Q==; X-CSE-ConnectionGUID: d66w+VMHQ4i0Ixo8/nlm2A== X-CSE-MsgGUID: xtlPLU3USrmzPUlsSbxAkw== X-IronPort-AV: E=McAfee;i="6800,10657,11832"; a="83550970" X-IronPort-AV: E=Sophos;i="6.24,233,1774335600"; d="scan'208";a="83550970" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2026 03:31:35 -0700 X-CSE-ConnectionGUID: VNf8wzMlRkqgPxzAFW5UnA== X-CSE-MsgGUID: njrVV8/5TSqcjUrQxEjnkA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,233,1774335600"; d="scan'208";a="251825923" Received: from lkp-server02.sh.intel.com (HELO ea128546eb3d) ([10.239.97.151]) by orviesa008.jf.intel.com with ESMTP; 30 Jun 2026 03:31:33 -0700 Received: from kbuild by ea128546eb3d with local (Exim 4.98.2) (envelope-from ) id 1weVkY-000000008Gb-2KXg; Tue, 30 Jun 2026 10:31:30 +0000 Date: Tue, 30 Jun 2026 18:31:16 +0800 From: kernel test robot To: Frank Wunderlich Cc: oe-kbuild-all@lists.linux.dev Subject: [frank-w-bpi-r2-4.14:7.2-rc 97/160] drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:135:28: sparse: sparse: incorrect type in initializer (different base types) Message-ID: <202606301818.f1XpkNEt-lkp@intel.com> User-Agent: s-nail v14.9.25 Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: Hi Daniel, First bad commit (maybe != root cause): tree: https://github.com/frank-w/BPI-R2-4.14 7.2-rc head: 39cd8d05e83250c6294b8e0da3ca69359eff8a3c commit: b38c51084f43bbd0577275476789fd2611e06ffc [97/160] net: dsa: add 802.1Q VLAN-based tag driver for MxL862xx config: alpha-randconfig-r131-20260630 (https://download.01.org/0day-ci/archive/20260630/202606301818.f1XpkNEt-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 14.3.0 sparse: v0.6.5-rc1 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260630/202606301818.f1XpkNEt-lkp@intel.com/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 | Closes: https://lore.kernel.org/oe-kbuild-all/202606301818.f1XpkNEt-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:135:28: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le16 [usertype] reg @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:135:28: sparse: expected restricted __le16 [usertype] reg drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:135:28: sparse: got int >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:143:21: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got restricted __le16 [addressable] [usertype] data @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:143:21: sparse: expected int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:143:21: sparse: got restricted __le16 [addressable] [usertype] data >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:152:24: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le16 [usertype] reg @@ got int reg @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:152:24: sparse: expected restricted __le16 [usertype] reg drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:152:24: sparse: got int reg >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:153:25: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le16 [usertype] data @@ got unsigned short [usertype] data @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:153:25: sparse: expected restricted __le16 [usertype] data drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:153:25: sparse: got unsigned short [usertype] data >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:244:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] bridge_port_id @@ got unsigned char [assigned] [usertype] i @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:244:44: sparse: expected restricted __le16 [usertype] bridge_port_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:244:44: sparse: got unsigned char [assigned] [usertype] i >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:259:46: sparse: sparse: restricted __le16 degrades to integer >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:269:48: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 @@ got unsigned long @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:269:48: sparse: expected restricted __le16 drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:269:48: sparse: got unsigned long >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:274:47: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] bridge_id @@ got int bridge_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:274:47: sparse: expected restricted __le16 [addressable] [assigned] [usertype] bridge_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:274:47: sparse: got int bridge_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:282:64: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 @@ got unsigned long @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:282:64: sparse: expected restricted __le16 drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:282:64: sparse: got unsigned long >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:301:42: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] bridge_port_id @@ got unsigned short [usertype] bridge_port_cpu @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:301:42: sparse: expected restricted __le16 [usertype] bridge_port_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:301:42: sparse: got unsigned short [usertype] bridge_port_cpu >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:318:47: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [assigned] [usertype] bridge_id @@ got int bridge_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:318:47: sparse: expected restricted __le16 [assigned] [usertype] bridge_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:318:47: sparse: got int bridge_id >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:319:52: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [assigned] [usertype] bridge_port_id @@ got unsigned short [usertype] bridge_port_cpu @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:319:52: sparse: expected restricted __le16 [assigned] [usertype] bridge_port_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:319:52: sparse: got unsigned short [usertype] bridge_port_cpu drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:320:56: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 @@ got unsigned long @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:320:56: sparse: expected restricted __le16 drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:320:56: sparse: got unsigned long >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:389:46: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le16 [usertype] number_of_ctp_port @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:389:46: sparse: expected restricted __le16 [usertype] number_of_ctp_port drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:389:46: sparse: got int >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:391:38: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le16 [usertype] first_ctp_port_id @@ got unsigned char [usertype] port @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:391:38: sparse: expected restricted __le16 [usertype] first_ctp_port_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:391:38: sparse: got unsigned char [usertype] port >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:413:25: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le16 [usertype] addr @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:413:25: sparse: expected restricted __le16 [usertype] addr drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:413:25: sparse: got int >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:414:32: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le16 [usertype] data @@ got unsigned long @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:414:32: sparse: expected restricted __le16 [usertype] data drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:414:32: sparse: got unsigned long >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:415:25: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le16 [usertype] mask @@ got unsigned long @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:415:25: sparse: expected restricted __le16 [usertype] mask drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:415:25: sparse: got unsigned long drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:418:25: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le16 [usertype] addr @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:418:25: sparse: expected restricted __le16 [usertype] addr drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:418:25: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:419:32: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le16 [usertype] data @@ got unsigned long @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:419:32: sparse: expected restricted __le16 [usertype] data drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:419:32: sparse: got unsigned long drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:420:25: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le16 [usertype] mask @@ got unsigned long @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:420:25: sparse: expected restricted __le16 [usertype] mask drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:420:25: sparse: got unsigned long >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:542:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:542:41: sparse: expected restricted __le16 [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:542:41: sparse: got unsigned short [usertype] block_id >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:543:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] entry_index @@ got unsigned short [usertype] entry_idx @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:543:30: sparse: expected restricted __le16 [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:543:30: sparse: got unsigned short [usertype] entry_idx >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:577:46: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] number_of_entries @@ got unsigned short [usertype] filters_max @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:577:46: sparse: expected restricted __le16 [usertype] number_of_entries drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:577:46: sparse: got unsigned short [usertype] filters_max >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:583:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] block_id @@ got restricted __le16 [addressable] [usertype] extended_vlan_block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:583:38: sparse: expected unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:583:38: sparse: got restricted __le16 [addressable] [usertype] extended_vlan_block_id >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:603:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:603:41: sparse: expected restricted __le16 [addressable] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:603:41: sparse: got unsigned short [usertype] block_id >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:605:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:605:30: sparse: expected restricted __le16 [addressable] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:605:30: sparse: got int >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:619:77: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:619:77: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:619:77: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:623:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:623:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:623:41: sparse: got unsigned short [usertype] block_id >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:625:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:625:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:625:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:640:77: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:640:77: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:640:77: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:671:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:671:41: sparse: expected restricted __le16 [addressable] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:671:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:674:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:674:30: sparse: expected restricted __le16 [addressable] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:674:30: sparse: got int >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:682:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short [usertype] vid @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:682:44: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:682:44: sparse: got unsigned short [usertype] vid >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:704:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected signed short @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:704:33: sparse: expected signed short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:704:33: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:712:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:712:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:712:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:714:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:714:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:714:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:729:77: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:729:77: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:729:77: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:733:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:733:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:733:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:735:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:735:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:735:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:750:77: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:750:77: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:750:77: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:754:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:754:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:754:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:756:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:756:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:756:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:771:77: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:771:77: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:771:77: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:805:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:805:41: sparse: expected restricted __le16 [addressable] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:805:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:808:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:808:30: sparse: expected restricted __le16 [addressable] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:808:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:816:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short [usertype] vid @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:816:44: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:816:44: sparse: got unsigned short [usertype] vid drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:831:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected signed short @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:831:33: sparse: expected signed short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:831:33: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:835:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:835:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:835:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:838:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:838:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:838:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:846:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short [usertype] vid @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:846:44: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:846:44: sparse: got unsigned short [usertype] vid drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:861:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected signed short @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:861:33: sparse: expected signed short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:861:33: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:887:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:887:41: sparse: expected restricted __le16 [addressable] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:887:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:890:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:890:30: sparse: expected restricted __le16 [addressable] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:890:30: sparse: got int >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:903:47: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:903:47: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:903:47: sparse: got unsigned short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:913:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:913:39: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:913:39: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:918:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:918:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:918:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:919:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:919:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:919:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:932:47: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:932:47: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:932:47: sparse: got unsigned short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:942:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:942:39: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:942:39: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:946:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:946:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:946:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:947:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:947:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:947:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:960:47: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:960:47: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:960:47: sparse: got unsigned short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:970:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:970:39: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:970:39: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:995:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:995:41: sparse: expected restricted __le16 [addressable] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:995:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1013:55: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1013:55: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1013:55: sparse: got unsigned short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1017:55: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short [usertype] pvid @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1017:55: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1017:55: sparse: got unsigned short [usertype] pvid drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1036:55: sparse: sparse: incorrect type in assignment (different base types) @@ expected signed short @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1036:55: sparse: expected signed short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1036:55: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1054:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1054:38: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1054:38: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1067:55: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1067:55: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1067:55: sparse: got unsigned short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1077:47: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1077:47: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1077:47: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1083:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1083:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1083:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1084:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1084:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1084:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1097:47: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1097:47: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1097:47: sparse: got unsigned short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1107:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1107:39: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1107:39: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1111:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1111:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1111:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1112:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1112:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1112:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1125:47: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1125:47: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1125:47: sparse: got unsigned short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1135:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1135:39: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1135:39: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1154:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1154:41: sparse: expected restricted __le16 [addressable] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1154:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1158:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1158:38: sparse: expected restricted __le16 [addressable] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1158:38: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1161:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1161:38: sparse: expected restricted __le16 [addressable] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1161:38: sparse: got int >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1162:86: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1162:86: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1162:86: sparse: got restricted __le16 [addressable] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1171:55: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short [usertype] pvid @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1171:55: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1171:55: sparse: got unsigned short [usertype] pvid drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1250:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1250:41: sparse: expected restricted __le16 [addressable] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1250:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1251:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1251:30: sparse: expected restricted __le16 [addressable] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1251:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1261:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1261:39: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1261:39: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1265:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1265:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1265:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1266:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1266:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1266:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1276:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1276:39: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1276:39: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1280:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1280:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1280:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1281:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1281:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1281:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1291:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1291:39: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1291:39: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1301:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1301:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1301:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1303:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1303:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1303:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1307:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short [usertype] vid @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1307:44: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1307:44: sparse: got unsigned short [usertype] vid drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1322:47: sparse: sparse: incorrect type in assignment (different base types) @@ expected signed short @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1322:47: sparse: expected signed short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1322:47: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1326:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1326:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1326:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1328:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1328:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1328:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1332:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short [usertype] vid @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1332:44: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1332:44: sparse: got unsigned short [usertype] vid drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1346:47: sparse: sparse: incorrect type in assignment (different base types) @@ expected signed short @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1346:47: sparse: expected signed short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1346:47: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1378:49: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1378:49: sparse: expected restricted __le16 [addressable] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1378:49: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1380:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1380:33: sparse: expected restricted __le16 [addressable] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1380:33: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1395:85: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1395:85: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1395:85: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1401:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1401:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1401:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1403:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1403:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1403:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1417:77: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1417:77: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1417:77: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1421:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1421:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1421:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1423:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1423:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1423:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1438:77: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1438:77: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1438:77: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1455:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1455:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1455:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1458:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1458:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1458:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1466:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short [usertype] vid @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1466:44: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1466:44: sparse: got unsigned short [usertype] vid drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1488:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected signed short @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1488:33: sparse: expected signed short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1488:33: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1518:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1518:41: sparse: expected restricted __le16 [addressable] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1518:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1520:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1520:30: sparse: expected restricted __le16 [addressable] [usertype] entry_index -- drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1586:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1589:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1589:30: sparse: expected restricted __le16 [addressable] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1589:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1598:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short [usertype] vid @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1598:44: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1598:44: sparse: got unsigned short [usertype] vid drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1624:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected signed short @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1624:33: sparse: expected signed short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1624:33: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1662:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1662:41: sparse: expected restricted __le16 [addressable] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1662:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1664:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1664:30: sparse: expected restricted __le16 [addressable] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1664:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1675:78: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1675:78: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1675:78: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1679:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1679:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1679:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1681:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1681:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1681:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1692:78: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1692:78: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1692:78: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1696:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1696:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1696:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1698:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1698:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1698:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1715:55: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1715:55: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1715:55: sparse: got unsigned short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1719:55: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short [usertype] pvid @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1719:55: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1719:55: sparse: got unsigned short [usertype] pvid drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1739:78: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1739:78: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1739:78: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1744:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1744:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1744:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1746:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1746:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1746:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1761:78: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1761:78: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1761:78: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1766:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1766:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1766:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1768:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1768:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1768:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1784:78: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1784:78: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1784:78: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1799:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1799:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1799:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1802:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1802:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1802:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1809:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short [usertype] vid @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1809:44: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1809:44: sparse: got unsigned short [usertype] vid drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1813:47: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1813:47: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1813:47: sparse: got unsigned short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1831:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected signed short @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1831:33: sparse: expected signed short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1831:33: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1835:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1835:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1835:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1838:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1838:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1838:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1845:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short [usertype] vid @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1845:44: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1845:44: sparse: got unsigned short [usertype] vid drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1849:47: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1849:47: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1849:47: sparse: got unsigned short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1867:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected signed short @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1867:33: sparse: expected signed short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1867:33: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1907:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1907:41: sparse: expected restricted __le16 [addressable] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1907:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1910:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1910:30: sparse: expected restricted __le16 [addressable] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1910:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1917:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short [usertype] vid @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1917:44: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1917:44: sparse: got unsigned short [usertype] vid >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1920:47: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] new_bridge_port_id @@ got unsigned short [usertype] bridge_port_cpu @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1920:47: sparse: expected restricted __le16 [addressable] [assigned] [usertype] new_bridge_port_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1920:47: sparse: got unsigned short [usertype] bridge_port_cpu drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1934:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected signed short @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1934:33: sparse: expected signed short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1934:33: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1938:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1938:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1938:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1941:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1941:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1941:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1948:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short [usertype] vid @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1948:44: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1948:44: sparse: got unsigned short [usertype] vid drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1951:47: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] new_bridge_port_id @@ got unsigned short [usertype] bridge_port_cpu @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1951:47: sparse: expected restricted __le16 [addressable] [assigned] [usertype] new_bridge_port_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1951:47: sparse: got unsigned short [usertype] bridge_port_cpu drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1965:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected signed short @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1965:33: sparse: expected signed short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1965:33: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1995:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1995:41: sparse: expected restricted __le16 [addressable] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1995:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1997:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1997:30: sparse: expected restricted __le16 [addressable] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:1997:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2013:78: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2013:78: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2013:78: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2017:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2017:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2017:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2019:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2019:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2019:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2035:78: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2035:78: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2035:78: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2039:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2039:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2039:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2041:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2041:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2041:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2058:55: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short [usertype] pvid @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2058:55: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2058:55: sparse: got unsigned short [usertype] pvid drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2066:78: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2066:78: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2066:78: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2070:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2070:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2070:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2072:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2072:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2072:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2082:78: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2082:78: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2082:78: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2086:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2086:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2086:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2088:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2088:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2088:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2098:78: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] final_filters_idx @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2098:78: sparse: expected unsigned short [usertype] final_filters_idx drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2098:78: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2109:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2109:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2109:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2112:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2112:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2112:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2119:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short [usertype] vid @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2119:44: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2119:44: sparse: got unsigned short [usertype] vid drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2131:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected signed short @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2131:33: sparse: expected signed short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2131:33: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2135:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2135:41: sparse: expected restricted __le16 [addressable] [assigned] [usertype] extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2135:41: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2138:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [assigned] [usertype] entry_index @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2138:30: sparse: expected restricted __le16 [addressable] [assigned] [usertype] entry_index drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2138:30: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2145:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] vid_val @@ got unsigned short [usertype] vid @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2145:44: sparse: expected restricted __le32 [addressable] [assigned] [usertype] vid_val drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2145:44: sparse: got unsigned short [usertype] vid drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2157:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected signed short @@ got restricted __le16 [addressable] [assigned] [usertype] entry_index @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2157:33: sparse: expected signed short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2157:33: sparse: got restricted __le16 [addressable] [assigned] [usertype] entry_index >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2333:65: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [assigned] [usertype] egress_extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2333:65: sparse: expected restricted __le16 [assigned] [usertype] egress_extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2333:65: sparse: got unsigned short [usertype] block_id >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2336:66: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [assigned] [usertype] ingress_extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2336:66: sparse: expected restricted __le16 [assigned] [usertype] ingress_extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2336:66: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2399:65: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [assigned] [usertype] egress_extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2399:65: sparse: expected restricted __le16 [assigned] [usertype] egress_extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2399:65: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2402:66: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [assigned] [usertype] ingress_extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2402:66: sparse: expected restricted __le16 [assigned] [usertype] ingress_extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2402:66: sparse: got unsigned short [usertype] block_id >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2419:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] bridge_port_id @@ got int port @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2419:36: sparse: expected restricted __le16 [usertype] bridge_port_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2419:36: sparse: got int port drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2424:51: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [assigned] [usertype] egress_extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2424:51: sparse: expected restricted __le16 [assigned] [usertype] egress_extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2424:51: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2427:52: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [assigned] [usertype] ingress_extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2427:52: sparse: expected restricted __le16 [assigned] [usertype] ingress_extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2427:52: sparse: got unsigned short [usertype] block_id >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2555:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] bridge_id @@ got restricted __le16 [addressable] [usertype] bridge_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2555:41: sparse: expected unsigned short [usertype] bridge_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2555:41: sparse: got restricted __le16 [addressable] [usertype] bridge_id >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2605:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] bridge_id @@ got unsigned short [usertype] bridge_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2605:32: sparse: expected restricted __le16 [usertype] bridge_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2605:32: sparse: got unsigned short [usertype] bridge_id >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2676:35: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le16 [usertype] bridge_port_id @@ got int port @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2676:35: sparse: expected restricted __le16 [usertype] bridge_port_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2676:35: sparse: got int port >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2784:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] age_timer @@ got unsigned int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2784:25: sparse: expected restricted __le32 [addressable] [assigned] [usertype] age_timer drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2784:25: sparse: got unsigned int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2814:49: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] bridge_id @@ got restricted __le16 [addressable] [usertype] bridge_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2814:49: sparse: expected unsigned short [usertype] bridge_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2814:49: sparse: got restricted __le16 [addressable] [usertype] bridge_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2851:57: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [assigned] [usertype] egress_extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2851:57: sparse: expected restricted __le16 [assigned] [usertype] egress_extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2851:57: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2854:58: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [assigned] [usertype] ingress_extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2854:58: sparse: expected restricted __le16 [assigned] [usertype] ingress_extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2854:58: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2867:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] bridge_port_id @@ got int port @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2867:44: sparse: expected restricted __le16 [usertype] bridge_port_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2867:44: sparse: got int port drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2871:59: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [assigned] [usertype] egress_extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2871:59: sparse: expected restricted __le16 [assigned] [usertype] egress_extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2871:59: sparse: got unsigned short [usertype] block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2874:60: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [assigned] [usertype] ingress_extended_vlan_block_id @@ got unsigned short [usertype] block_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2874:60: sparse: expected restricted __le16 [assigned] [usertype] ingress_extended_vlan_block_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2874:60: sparse: got unsigned short [usertype] block_id >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2894:51: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le16 [usertype] bridge_id @@ got unsigned short [usertype] bridge_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2894:51: sparse: expected restricted __le16 [usertype] bridge_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2894:51: sparse: got unsigned short [usertype] bridge_id >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2990:28: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le16 [usertype] port_id @@ got int port @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2990:28: sparse: expected restricted __le16 [usertype] port_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2990:28: sparse: got int port drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2993:28: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le16 [usertype] port_id @@ got int port @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2993:28: sparse: expected restricted __le16 [usertype] port_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:2993:28: sparse: got int port >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3178:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] bridge_port_id @@ got unsigned int [assigned] cpu_port @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3178:36: sparse: expected restricted __le16 [usertype] bridge_port_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3178:36: sparse: got unsigned int [assigned] cpu_port >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3179:40: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 @@ got unsigned short @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3179:40: sparse: expected restricted __le16 drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3179:40: sparse: got unsigned short drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3195:28: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le16 [usertype] port_id @@ got int port @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3195:28: sparse: expected restricted __le16 [usertype] port_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3195:28: sparse: got int port drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3368:28: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le16 [usertype] port_id @@ got int port @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3368:28: sparse: expected restricted __le16 [usertype] port_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3368:28: sparse: got int port >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3506:28: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le32 [usertype] port_id @@ got int port @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3506:28: sparse: expected restricted __le32 [usertype] port_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3506:28: sparse: got int port >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3525:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] fid @@ got unsigned short [usertype] bridge_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3525:27: sparse: expected restricted __le16 [addressable] [usertype] fid drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3525:27: sparse: got unsigned short [usertype] bridge_id >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3527:35: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] tci @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3527:35: sparse: expected restricted __le16 [addressable] [usertype] tci drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3527:35: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3551:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] tci @@ got int @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3551:27: sparse: expected restricted __le16 [addressable] [usertype] tci drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3551:27: sparse: got int drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3561:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [addressable] [usertype] fid @@ got unsigned short [usertype] bridge_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3561:27: sparse: expected restricted __le16 [addressable] [usertype] fid drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3561:27: sparse: got unsigned short [usertype] bridge_id >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3591:26: sparse: sparse: restricted __le32 degrades to integer drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3592:44: sparse: sparse: restricted __le16 degrades to integer >> drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3633:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [assigned] [usertype] bridge_id @@ got unsigned short [assigned] [usertype] bridge_id @@ drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3633:41: sparse: expected restricted __le16 [assigned] [usertype] bridge_id drivers/net/dsa/mxl862xx_downstream/mxl862xx.c:3633:41: sparse: got unsigned short [assigned] [usertype] bridge_id vim +135 drivers/net/dsa/mxl862xx_downstream/mxl862xx.c 96aefe538fdf60 Frank Wunderlich 2026-03-07 129 96aefe538fdf60 Frank Wunderlich 2026-03-07 130 static int mxl862xx_phy_read_mmd(struct mxl862xx_priv *priv, int port, int devadd, int reg) 96aefe538fdf60 Frank Wunderlich 2026-03-07 131 { 96aefe538fdf60 Frank Wunderlich 2026-03-07 132 struct mdio_relay_data param = { 96aefe538fdf60 Frank Wunderlich 2026-03-07 133 .phy = port, 96aefe538fdf60 Frank Wunderlich 2026-03-07 134 .mmd = devadd, 96aefe538fdf60 Frank Wunderlich 2026-03-07 @135 .reg = reg & 0xffff, 96aefe538fdf60 Frank Wunderlich 2026-03-07 136 }; 96aefe538fdf60 Frank Wunderlich 2026-03-07 137 int ret; 96aefe538fdf60 Frank Wunderlich 2026-03-07 138 96aefe538fdf60 Frank Wunderlich 2026-03-07 139 ret = MXL862XX_API_READ(priv, INT_GPHY_READ, param); 96aefe538fdf60 Frank Wunderlich 2026-03-07 140 if (ret) 96aefe538fdf60 Frank Wunderlich 2026-03-07 141 return ret; 96aefe538fdf60 Frank Wunderlich 2026-03-07 142 96aefe538fdf60 Frank Wunderlich 2026-03-07 @143 return param.data; 96aefe538fdf60 Frank Wunderlich 2026-03-07 144 } 96aefe538fdf60 Frank Wunderlich 2026-03-07 145 96aefe538fdf60 Frank Wunderlich 2026-03-07 146 static int mxl862xx_phy_write_mmd(struct mxl862xx_priv *priv, int port, 96aefe538fdf60 Frank Wunderlich 2026-03-07 147 int devadd, int reg, u16 data) 96aefe538fdf60 Frank Wunderlich 2026-03-07 148 { 96aefe538fdf60 Frank Wunderlich 2026-03-07 149 struct mdio_relay_data param = { 96aefe538fdf60 Frank Wunderlich 2026-03-07 150 .phy = port, 96aefe538fdf60 Frank Wunderlich 2026-03-07 151 .mmd = devadd, 96aefe538fdf60 Frank Wunderlich 2026-03-07 @152 .reg = reg, 96aefe538fdf60 Frank Wunderlich 2026-03-07 @153 .data = data, 96aefe538fdf60 Frank Wunderlich 2026-03-07 154 }; 96aefe538fdf60 Frank Wunderlich 2026-03-07 155 int ret; 96aefe538fdf60 Frank Wunderlich 2026-03-07 156 96aefe538fdf60 Frank Wunderlich 2026-03-07 157 ret = MXL862XX_API_WRITE(priv, INT_GPHY_WRITE, param); 96aefe538fdf60 Frank Wunderlich 2026-03-07 158 return ret; 96aefe538fdf60 Frank Wunderlich 2026-03-07 159 } 96aefe538fdf60 Frank Wunderlich 2026-03-07 160 96aefe538fdf60 Frank Wunderlich 2026-03-07 161 static int mxl862xx_phy_read(struct dsa_switch *ds, int port, int reg) 96aefe538fdf60 Frank Wunderlich 2026-03-07 162 { 96aefe538fdf60 Frank Wunderlich 2026-03-07 163 return mxl862xx_phy_read_mmd(ds->priv, port, 0, reg); 96aefe538fdf60 Frank Wunderlich 2026-03-07 164 } 96aefe538fdf60 Frank Wunderlich 2026-03-07 165 96aefe538fdf60 Frank Wunderlich 2026-03-07 166 static int mxl862xx_phy_write(struct dsa_switch *ds, int port, int reg, 96aefe538fdf60 Frank Wunderlich 2026-03-07 167 u16 data) 96aefe538fdf60 Frank Wunderlich 2026-03-07 168 { 96aefe538fdf60 Frank Wunderlich 2026-03-07 169 return mxl862xx_phy_write_mmd(ds->priv, port, 0, reg, data); 96aefe538fdf60 Frank Wunderlich 2026-03-07 170 } 96aefe538fdf60 Frank Wunderlich 2026-03-07 171 96aefe538fdf60 Frank Wunderlich 2026-03-07 172 static int mxl862xx_mmd_write(struct dsa_switch *ds, int reg, u16 data) 96aefe538fdf60 Frank Wunderlich 2026-03-07 173 { 96aefe538fdf60 Frank Wunderlich 2026-03-07 174 struct mxl862xx_priv *priv = ds->priv; 96aefe538fdf60 Frank Wunderlich 2026-03-07 175 int ret; 96aefe538fdf60 Frank Wunderlich 2026-03-07 176 96aefe538fdf60 Frank Wunderlich 2026-03-07 177 mutex_lock_nested(&priv->bus->mdio_lock, MDIO_MUTEX_NESTED); 96aefe538fdf60 Frank Wunderlich 2026-03-07 178 ret = mxl862xx_write(priv, reg, data); 96aefe538fdf60 Frank Wunderlich 2026-03-07 179 mutex_unlock(&priv->bus->mdio_lock); 96aefe538fdf60 Frank Wunderlich 2026-03-07 180 96aefe538fdf60 Frank Wunderlich 2026-03-07 181 return ret; 96aefe538fdf60 Frank Wunderlich 2026-03-07 182 } 96aefe538fdf60 Frank Wunderlich 2026-03-07 183 96aefe538fdf60 Frank Wunderlich 2026-03-07 184 static int mxl862xx_update_bridge_conf_port(struct dsa_switch *ds, u8 port, 96aefe538fdf60 Frank Wunderlich 2026-03-07 185 struct net_device *bridge, int action) 96aefe538fdf60 Frank Wunderlich 2026-03-07 186 { 96aefe538fdf60 Frank Wunderlich 2026-03-07 187 struct mxl862xx_priv *priv = ds->priv; 96aefe538fdf60 Frank Wunderlich 2026-03-07 188 u8 max_ports = priv->hw_info->max_ports; 96aefe538fdf60 Frank Wunderlich 2026-03-07 189 u8 cpu_port = priv->cpu_port; 96aefe538fdf60 Frank Wunderlich 2026-03-07 190 u8 i; 96aefe538fdf60 Frank Wunderlich 2026-03-07 191 bool vlan_sp_tag = (priv->port_info[cpu_port].tag_protocol == DSA_TAG_PROTO_MXL862_8021Q); 96aefe538fdf60 Frank Wunderlich 2026-03-07 192 96aefe538fdf60 Frank Wunderlich 2026-03-07 193 /*struct dsa_port *dp = dsa_to_port(priv->ds, port), *other_dp; 96aefe538fdf60 Frank Wunderlich 2026-03-07 194 * struct mxl862xx_port_info *other_p; 96aefe538fdf60 Frank Wunderlich 2026-03-07 195 *int other_port; 96aefe538fdf60 Frank Wunderlich 2026-03-07 196 */ 96aefe538fdf60 Frank Wunderlich 2026-03-07 197 int ret; 96aefe538fdf60 Frank Wunderlich 2026-03-07 198 96aefe538fdf60 Frank Wunderlich 2026-03-07 199 /* Update local bridge port map */ 96aefe538fdf60 Frank Wunderlich 2026-03-07 200 for (i = 0; i < max_ports; i++) { 96aefe538fdf60 Frank Wunderlich 2026-03-07 201 int bridge_id = priv->port_info[i].bridge_id; 96aefe538fdf60 Frank Wunderlich 2026-03-07 202 96aefe538fdf60 Frank Wunderlich 2026-03-07 203 if (dsa_is_unused_port(ds, i)) 96aefe538fdf60 Frank Wunderlich 2026-03-07 204 continue; 96aefe538fdf60 Frank Wunderlich 2026-03-07 205 96aefe538fdf60 Frank Wunderlich 2026-03-07 206 /* CPU port is assigned to all bridges and cannot be modified */ 96aefe538fdf60 Frank Wunderlich 2026-03-07 207 if ((dsa_is_cpu_port(ds, i))) 96aefe538fdf60 Frank Wunderlich 2026-03-07 208 continue; 96aefe538fdf60 Frank Wunderlich 2026-03-07 209 96aefe538fdf60 Frank Wunderlich 2026-03-07 210 /* Skip if bridge does not match, except the self port assignment */ 96aefe538fdf60 Frank Wunderlich 2026-03-07 211 if ((dsa_port_bridge_dev_get(dsa_to_port(ds, i)) != bridge) && (i != port)) 96aefe538fdf60 Frank Wunderlich 2026-03-07 212 continue; 96aefe538fdf60 Frank Wunderlich 2026-03-07 213 96aefe538fdf60 Frank Wunderlich 2026-03-07 214 /* Case for standalone bridges assigned only to single user and CPU ports. 96aefe538fdf60 Frank Wunderlich 2026-03-07 215 * Used only for initial ports isolation */ 96aefe538fdf60 Frank Wunderlich 2026-03-07 216 if ((bridge == NULL) && (i != port)) 96aefe538fdf60 Frank Wunderlich 2026-03-07 217 continue; 96aefe538fdf60 Frank Wunderlich 2026-03-07 218 96aefe538fdf60 Frank Wunderlich 2026-03-07 219 if (action) 96aefe538fdf60 Frank Wunderlich 2026-03-07 220 priv->bridge_portmap[bridge_id] |= BIT(DSA_MXL_PORT(port)); 96aefe538fdf60 Frank Wunderlich 2026-03-07 221 else 96aefe538fdf60 Frank Wunderlich 2026-03-07 222 priv->bridge_portmap[bridge_id] &= ~BIT(DSA_MXL_PORT(port)); 96aefe538fdf60 Frank Wunderlich 2026-03-07 223 } 96aefe538fdf60 Frank Wunderlich 2026-03-07 224 96aefe538fdf60 Frank Wunderlich 2026-03-07 225 /* Update switch according to local bridge port map */ 96aefe538fdf60 Frank Wunderlich 2026-03-07 226 /* Add this port to the port maps of other ports skiping it's own map */ 96aefe538fdf60 Frank Wunderlich 2026-03-07 227 for (i = 0; i < max_ports; i++) { 96aefe538fdf60 Frank Wunderlich 2026-03-07 228 struct mxl862xx_bridge_port_config br_port_cfg = { }; 96aefe538fdf60 Frank Wunderlich 2026-03-07 229 int bridge_id = priv->port_info[i].bridge_id; 96aefe538fdf60 Frank Wunderlich 2026-03-07 230 96aefe538fdf60 Frank Wunderlich 2026-03-07 231 if (!(dsa_is_user_port(ds, i))) 96aefe538fdf60 Frank Wunderlich 2026-03-07 232 continue; 96aefe538fdf60 Frank Wunderlich 2026-03-07 233 96aefe538fdf60 Frank Wunderlich 2026-03-07 234 /* Case for standalone bridges assigned only to single user and CPU ports. 96aefe538fdf60 Frank Wunderlich 2026-03-07 235 * Used only for initial ports isolation 96aefe538fdf60 Frank Wunderlich 2026-03-07 236 */ 96aefe538fdf60 Frank Wunderlich 2026-03-07 237 if (!bridge && i != port) 96aefe538fdf60 Frank Wunderlich 2026-03-07 238 continue; 96aefe538fdf60 Frank Wunderlich 2026-03-07 239 96aefe538fdf60 Frank Wunderlich 2026-03-07 240 /* Do not reconfigure any standalone bridge if this is bridge join scenario */ 96aefe538fdf60 Frank Wunderlich 2026-03-07 241 if (bridge && !priv->port_info[i].bridge) 96aefe538fdf60 Frank Wunderlich 2026-03-07 242 continue; 96aefe538fdf60 Frank Wunderlich 2026-03-07 243 96aefe538fdf60 Frank Wunderlich 2026-03-07 @244 br_port_cfg.bridge_port_id = DSA_MXL_PORT(i); 96aefe538fdf60 Frank Wunderlich 2026-03-07 245 br_port_cfg.mask |= 96aefe538fdf60 Frank Wunderlich 2026-03-07 246 MXL862XX_BRIDGE_PORT_CONFIG_MASK_BRIDGE_PORT_MAP | 96aefe538fdf60 Frank Wunderlich 2026-03-07 247 MXL862XX_BRIDGE_PORT_CONFIG_MASK_BRIDGE_ID; 96aefe538fdf60 Frank Wunderlich 2026-03-07 248 96aefe538fdf60 Frank Wunderlich 2026-03-07 249 ret = MXL862XX_API_READ(priv, MXL862XX_BRIDGEPORT_CONFIGGET, br_port_cfg); 96aefe538fdf60 Frank Wunderlich 2026-03-07 250 if (ret) { 96aefe538fdf60 Frank Wunderlich 2026-03-07 251 dev_err(ds->dev, "failed to set bridge port configuration on port %d\n", 96aefe538fdf60 Frank Wunderlich 2026-03-07 252 port); 96aefe538fdf60 Frank Wunderlich 2026-03-07 253 return ret; 96aefe538fdf60 Frank Wunderlich 2026-03-07 254 } 96aefe538fdf60 Frank Wunderlich 2026-03-07 255 96aefe538fdf60 Frank Wunderlich 2026-03-07 256 /* Skip port map update if for the existing bridge the port 96aefe538fdf60 Frank Wunderlich 2026-03-07 257 * is not assigned there. 96aefe538fdf60 Frank Wunderlich 2026-03-07 258 */ 96aefe538fdf60 Frank Wunderlich 2026-03-07 @259 if (i != port && (br_port_cfg.bridge_id != bridge_id || 96aefe538fdf60 Frank Wunderlich 2026-03-07 260 br_port_cfg.bridge_id == 0)) 96aefe538fdf60 Frank Wunderlich 2026-03-07 261 continue; 96aefe538fdf60 Frank Wunderlich 2026-03-07 262 96aefe538fdf60 Frank Wunderlich 2026-03-07 263 br_port_cfg.mask |= 96aefe538fdf60 Frank Wunderlich 2026-03-07 264 MXL862XX_BRIDGE_PORT_CONFIG_MASK_BRIDGE_PORT_MAP | 96aefe538fdf60 Frank Wunderlich 2026-03-07 265 MXL862XX_BRIDGE_PORT_CONFIG_MASK_BRIDGE_ID | 96aefe538fdf60 Frank Wunderlich 2026-03-07 266 MXL862XX_BRIDGE_PORT_CONFIG_MASK_MC_SRC_MAC_LEARNING; 96aefe538fdf60 Frank Wunderlich 2026-03-07 267 96aefe538fdf60 Frank Wunderlich 2026-03-07 268 /* Skip the port itself in it's own portmap */ 96aefe538fdf60 Frank Wunderlich 2026-03-07 @269 br_port_cfg.bridge_port_map[0] = 96aefe538fdf60 Frank Wunderlich 2026-03-07 270 priv->bridge_portmap[bridge_id] & ~(BIT(DSA_MXL_PORT(i))); 96aefe538fdf60 Frank Wunderlich 2026-03-07 271 96aefe538fdf60 Frank Wunderlich 2026-03-07 272 if (action) { 96aefe538fdf60 Frank Wunderlich 2026-03-07 273 br_port_cfg.src_mac_learning_disable = !bridge; 96aefe538fdf60 Frank Wunderlich 2026-03-07 @274 br_port_cfg.bridge_id = bridge_id; 96aefe538fdf60 Frank Wunderlich 2026-03-07 275 } else { 96aefe538fdf60 Frank Wunderlich 2026-03-07 276 /* When port is removed from the bridge, assign it back to the default 96aefe538fdf60 Frank Wunderlich 2026-03-07 277 * bridge 0 96aefe538fdf60 Frank Wunderlich 2026-03-07 278 */ 96aefe538fdf60 Frank Wunderlich 2026-03-07 279 br_port_cfg.src_mac_learning_disable = true; 96aefe538fdf60 Frank Wunderlich 2026-03-07 280 /* Cleanup the port own map leaving only the CPU port mapping. */ 96aefe538fdf60 Frank Wunderlich 2026-03-07 281 if (i == port) { 96aefe538fdf60 Frank Wunderlich 2026-03-07 282 br_port_cfg.bridge_port_map[0] = BIT(DSA_MXL_PORT(cpu_port)); 96aefe538fdf60 Frank Wunderlich 2026-03-07 283 br_port_cfg.bridge_id = 0; 96aefe538fdf60 Frank Wunderlich 2026-03-07 284 } 96aefe538fdf60 Frank Wunderlich 2026-03-07 285 } 96aefe538fdf60 Frank Wunderlich 2026-03-07 286 96aefe538fdf60 Frank Wunderlich 2026-03-07 287 ret = MXL862XX_API_WRITE(priv, MXL862XX_BRIDGEPORT_CONFIGSET, br_port_cfg); 96aefe538fdf60 Frank Wunderlich 2026-03-07 288 if (ret) { 96aefe538fdf60 Frank Wunderlich 2026-03-07 289 dev_err(ds->dev, "failed to set bridge port configuration on port %d\n", port); 96aefe538fdf60 Frank Wunderlich 2026-03-07 290 return ret; 96aefe538fdf60 Frank Wunderlich 2026-03-07 291 } 96aefe538fdf60 Frank Wunderlich 2026-03-07 292 } 96aefe538fdf60 Frank Wunderlich 2026-03-07 293 96aefe538fdf60 Frank Wunderlich 2026-03-07 294 /* Configure additional bridge port for VLAN based tagging */ 96aefe538fdf60 Frank Wunderlich 2026-03-07 295 if (vlan_sp_tag) { 96aefe538fdf60 Frank Wunderlich 2026-03-07 296 int bridge_id = priv->port_info[port].bridge_id; 96aefe538fdf60 Frank Wunderlich 2026-03-07 297 uint16_t bridge_port_cpu = DSA_MXL_PORT(port) + 16; 96aefe538fdf60 Frank Wunderlich 2026-03-07 298 struct mxl862xx_bridge_port_alloc bpa_param = { }; 96aefe538fdf60 Frank Wunderlich 2026-03-07 299 struct mxl862xx_bridge_port_config br_port_cfg = { }; 96aefe538fdf60 Frank Wunderlich 2026-03-07 300 96aefe538fdf60 Frank Wunderlich 2026-03-07 @301 bpa_param.bridge_port_id = bridge_port_cpu; 96aefe538fdf60 Frank Wunderlich 2026-03-07 302 96aefe538fdf60 Frank Wunderlich 2026-03-07 303 if (action) { 96aefe538fdf60 Frank Wunderlich 2026-03-07 304 /* add */ 96aefe538fdf60 Frank Wunderlich 2026-03-07 305 ret = MXL862XX_API_READ(priv, MXL862XX_BRIDGEPORT_ALLOC, bpa_param); 96aefe538fdf60 Frank Wunderlich 2026-03-07 306 if (ret) { 96aefe538fdf60 Frank Wunderlich 2026-03-07 307 dev_err(ds->dev, 96aefe538fdf60 Frank Wunderlich 2026-03-07 308 "%s: Port:%d failed to prepare associated bridge port\n", 96aefe538fdf60 Frank Wunderlich 2026-03-07 309 __func__, port); 96aefe538fdf60 Frank Wunderlich 2026-03-07 310 return ret; 96aefe538fdf60 Frank Wunderlich 2026-03-07 311 } 96aefe538fdf60 Frank Wunderlich 2026-03-07 312 96aefe538fdf60 Frank Wunderlich 2026-03-07 313 br_port_cfg.mask |= 96aefe538fdf60 Frank Wunderlich 2026-03-07 314 MXL862XX_BRIDGE_PORT_CONFIG_MASK_BRIDGE_PORT_MAP | 96aefe538fdf60 Frank Wunderlich 2026-03-07 315 MXL862XX_BRIDGE_PORT_CONFIG_MASK_BRIDGE_ID | 96aefe538fdf60 Frank Wunderlich 2026-03-07 316 MXL862XX_BRIDGE_PORT_CONFIG_MASK_EGRESS_CTP_MAPPING | 96aefe538fdf60 Frank Wunderlich 2026-03-07 317 MXL862XX_BRIDGE_PORT_CONFIG_MASK_MC_SRC_MAC_LEARNING; 96aefe538fdf60 Frank Wunderlich 2026-03-07 @318 br_port_cfg.bridge_id = bridge_id; 96aefe538fdf60 Frank Wunderlich 2026-03-07 @319 br_port_cfg.bridge_port_id = bridge_port_cpu; 96aefe538fdf60 Frank Wunderlich 2026-03-07 320 br_port_cfg.bridge_port_map[0] = BIT(DSA_MXL_PORT(port)); 96aefe538fdf60 Frank Wunderlich 2026-03-07 321 br_port_cfg.dest_logical_port_id = DSA_MXL_PORT(cpu_port); 96aefe538fdf60 Frank Wunderlich 2026-03-07 322 br_port_cfg.src_mac_learning_disable = true; 96aefe538fdf60 Frank Wunderlich 2026-03-07 323 96aefe538fdf60 Frank Wunderlich 2026-03-07 324 ret = MXL862XX_API_WRITE(priv, MXL862XX_BRIDGEPORT_CONFIGSET, br_port_cfg); 96aefe538fdf60 Frank Wunderlich 2026-03-07 325 if (ret) { 96aefe538fdf60 Frank Wunderlich 2026-03-07 326 dev_err(ds->dev, 96aefe538fdf60 Frank Wunderlich 2026-03-07 327 "%s: Configuration of cpu bridge port:%d for port:%d on bridge:%d failed with ret=%d\n", 96aefe538fdf60 Frank Wunderlich 2026-03-07 328 __func__, bridge_port_cpu, port, bridge_id, ret); 96aefe538fdf60 Frank Wunderlich 2026-03-07 329 return ret; 96aefe538fdf60 Frank Wunderlich 2026-03-07 330 } 96aefe538fdf60 Frank Wunderlich 2026-03-07 331 96aefe538fdf60 Frank Wunderlich 2026-03-07 332 /* Add bridge cpu port to portmap */ 96aefe538fdf60 Frank Wunderlich 2026-03-07 333 priv->bridge_portmap[bridge_id] |= BIT(bridge_port_cpu); 96aefe538fdf60 Frank Wunderlich 2026-03-07 334 priv->port_info[port].bridge_port_cpu = bridge_port_cpu; 96aefe538fdf60 Frank Wunderlich 2026-03-07 335 } else { 96aefe538fdf60 Frank Wunderlich 2026-03-07 336 /* remove */ 96aefe538fdf60 Frank Wunderlich 2026-03-07 337 ret = MXL862XX_API_WRITE(priv, MXL862XX_BRIDGEPORT_FREE, bpa_param); 96aefe538fdf60 Frank Wunderlich 2026-03-07 338 if (ret) { 96aefe538fdf60 Frank Wunderlich 2026-03-07 339 dev_err(ds->dev, 96aefe538fdf60 Frank Wunderlich 2026-03-07 340 "%s: Port:%d failed to free associated bridge port\n", 96aefe538fdf60 Frank Wunderlich 2026-03-07 341 __func__, port); 96aefe538fdf60 Frank Wunderlich 2026-03-07 342 return ret; 96aefe538fdf60 Frank Wunderlich 2026-03-07 343 } 96aefe538fdf60 Frank Wunderlich 2026-03-07 344 /* Remove bridge cpu port from portmap */ 96aefe538fdf60 Frank Wunderlich 2026-03-07 345 priv->bridge_portmap[bridge_id] &= ~BIT(bridge_port_cpu); 96aefe538fdf60 Frank Wunderlich 2026-03-07 346 priv->port_info[port].bridge_port_cpu = 0; 96aefe538fdf60 Frank Wunderlich 2026-03-07 347 } 96aefe538fdf60 Frank Wunderlich 2026-03-07 348 } 96aefe538fdf60 Frank Wunderlich 2026-03-07 349 96aefe538fdf60 Frank Wunderlich 2026-03-07 350 return 0; 96aefe538fdf60 Frank Wunderlich 2026-03-07 351 } 96aefe538fdf60 Frank Wunderlich 2026-03-07 352 :::::: The code at line 135 was first introduced by commit :::::: 96aefe538fdf60924d25ab9ee28d665648458ddc net: dsa: add mxl downstream driver from 6.19-main :::::: TO: Frank Wunderlich :::::: CC: Frank Wunderlich -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki