tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 773f731853f1368508a0b112047bd9b5a4bb9a5e
commit: e9f0b33ca1fa178f87823d17762a4d2f9296efd1 [1336/1336] net: txgbe: Add support for Netswift 10G NIC
config: x86_64-buildonly-randconfig-003-20241219 (https://download.01.org/0day-ci/archive/20241229/202412290049.f0BfxWby-lkp@…)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241229/202412290049.f0BfxWby-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412290049.f0BfxWby-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from drivers/net/ethernet/netswift/txgbe/txgbe_mtd.c:19:
drivers/net/ethernet/netswift/txgbe/txgbe.h:871:6: warning: variable 'cur_diff' set but not used [-Wunused-but-set-variable]
871 | u32 cur_diff = 0;
| ^
drivers/net/ethernet/netswift/txgbe/txgbe_mtd.c:178:12: warning: no previous prototype for function 'mtdCheckDeviceCapabilities' [-Wmissing-prototypes]
178 | MTD_STATUS mtdCheckDeviceCapabilities(
| ^
drivers/net/ethernet/netswift/txgbe/txgbe_mtd.c:178:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
178 | MTD_STATUS mtdCheckDeviceCapabilities(
| ^
| static
drivers/net/ethernet/netswift/txgbe/txgbe_mtd.c:290:12: warning: no previous prototype for function 'mtdIsPhyReadyAfterReset' [-Wmissing-prototypes]
290 | MTD_STATUS mtdIsPhyReadyAfterReset(
| ^
drivers/net/ethernet/netswift/txgbe/txgbe_mtd.c:290:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
290 | MTD_STATUS mtdIsPhyReadyAfterReset(
| ^
| static
drivers/net/ethernet/netswift/txgbe/txgbe_mtd.c:342:12: warning: no previous prototype for function 'mtdIsPhyReadyAfterHardwareReset' [-Wmissing-prototypes]
342 | MTD_STATUS mtdIsPhyReadyAfterHardwareReset(
| ^
drivers/net/ethernet/netswift/txgbe/txgbe_mtd.c:342:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
342 | MTD_STATUS mtdIsPhyReadyAfterHardwareReset(
| ^
| static
drivers/net/ethernet/netswift/txgbe/txgbe_mtd.c:829:12: warning: no previous prototype for function 'mtdAutonegIsCompleted' [-Wmissing-prototypes]
829 | MTD_STATUS mtdAutonegIsCompleted(
| ^
drivers/net/ethernet/netswift/txgbe/txgbe_mtd.c:829:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
829 | MTD_STATUS mtdAutonegIsCompleted(
| ^
| static
drivers/net/ethernet/netswift/txgbe/txgbe_mtd.c:1119:12: warning: no previous prototype for function 'mtdCunitSwReset' [-Wmissing-prototypes]
1119 | MTD_STATUS mtdCunitSwReset(
| ^
drivers/net/ethernet/netswift/txgbe/txgbe_mtd.c:1119:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1119 | MTD_STATUS mtdCunitSwReset(
| ^
| static
drivers/net/ethernet/netswift/txgbe/txgbe_mtd.c:1127:12: warning: no previous prototype for function 'mtdRerunSerdesAutoInitializationUseAutoMode' [-Wmissing-prototypes]
1127 | MTD_STATUS mtdRerunSerdesAutoInitializationUseAutoMode(
| ^
drivers/net/ethernet/netswift/txgbe/txgbe_mtd.c:1127:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1127 | MTD_STATUS mtdRerunSerdesAutoInitializationUseAutoMode(
| ^
| static
drivers/net/ethernet/netswift/txgbe/txgbe_mtd.c:1275:9: warning: no previous prototype for function 'mtdSemCreate' [-Wmissing-prototypes]
1275 | MTD_SEM mtdSemCreate(
| ^
drivers/net/ethernet/netswift/txgbe/txgbe_mtd.c:1275:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1275 | MTD_SEM mtdSemCreate(
| ^
| static
8 warnings generated.
>> drivers/net/ethernet/netswift/txgbe/txgbe_mtd.o: warning: objtool: missing symbol for section .text
--
In file included from drivers/net/ethernet/netswift/txgbe/txgbe_bp.c:19:
In file included from drivers/net/ethernet/netswift/txgbe/txgbe_bp.h:22:
drivers/net/ethernet/netswift/txgbe/txgbe.h:871:6: warning: variable 'cur_diff' set but not used [-Wunused-but-set-variable]
871 | u32 cur_diff = 0;
| ^
drivers/net/ethernet/netswift/txgbe/txgbe_bp.c:582:5: warning: no previous prototype for function 'ReadPhyLaneTxEq' [-Wmissing-prototypes]
582 | int ReadPhyLaneTxEq(unsigned short lane, struct txgbe_adapter *adapter, int post_t, int mode)
| ^
drivers/net/ethernet/netswift/txgbe/txgbe_bp.c:582:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
582 | int ReadPhyLaneTxEq(unsigned short lane, struct txgbe_adapter *adapter, int post_t, int mode)
| ^
| static
drivers/net/ethernet/netswift/txgbe/txgbe_bp.c:645:5: warning: no previous prototype for function 'EnableCl72KrTr' [-Wmissing-prototypes]
645 | int EnableCl72KrTr(unsigned int enable, struct txgbe_adapter *adapter)
| ^
drivers/net/ethernet/netswift/txgbe/txgbe_bp.c:645:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
645 | int EnableCl72KrTr(unsigned int enable, struct txgbe_adapter *adapter)
| ^
| static
drivers/net/ethernet/netswift/txgbe/txgbe_bp.c:699:5: warning: no previous prototype for function 'CheckCl72KrTrStatus' [-Wmissing-prototypes]
699 | int CheckCl72KrTrStatus(struct txgbe_adapter *adapter)
| ^
drivers/net/ethernet/netswift/txgbe/txgbe_bp.c:699:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
699 | int CheckCl72KrTrStatus(struct txgbe_adapter *adapter)
| ^
| static
4 warnings generated.
>> drivers/net/ethernet/netswift/txgbe/txgbe_bp.o: warning: objtool: missing symbol for section .text
--
In file included from drivers/net/ethernet/netswift/txgbe/txgbe_phy.c:24:
In file included from drivers/net/ethernet/netswift/txgbe/txgbe_phy.h:28:
drivers/net/ethernet/netswift/txgbe/txgbe.h:871:6: warning: variable 'cur_diff' set but not used [-Wunused-but-set-variable]
871 | u32 cur_diff = 0;
| ^
1 warning generated.
drivers/net/ethernet/netswift/txgbe/txgbe_phy.c:95: warning: Function parameter or member 'hw' not described in 'txgbe_get_phy_type_from_id'
drivers/net/ethernet/netswift/txgbe/txgbe_phy.c:95: warning: Excess function parameter 'phy_id' description in 'txgbe_get_phy_type_from_id'
drivers/net/ethernet/netswift/txgbe/txgbe_phy.c:169: warning: Function parameter or member 'device_type' not described in 'txgbe_read_phy_reg_mdi'
drivers/net/ethernet/netswift/txgbe/txgbe_phy.c:207: warning: Function parameter or member 'device_type' not described in 'txgbe_read_phy_reg'
drivers/net/ethernet/netswift/txgbe/txgbe_phy.c:324: warning: Function parameter or member 'speed_set' not described in 'txgbe_setup_phy_link'
drivers/net/ethernet/netswift/txgbe/txgbe_phy.c:324: warning: Function parameter or member 'autoneg_wait_to_complete' not described in 'txgbe_setup_phy_link'
drivers/net/ethernet/netswift/txgbe/txgbe_phy.c:376: warning: Function parameter or member 'autoneg_wait_to_complete' not described in 'txgbe_setup_phy_link_speed'
drivers/net/ethernet/netswift/txgbe/txgbe_phy.c:774: warning: Function parameter or member 'sff8472_data' not described in 'txgbe_read_i2c_sff8472'
drivers/net/ethernet/netswift/txgbe/txgbe_phy.c:774: warning: Excess function parameter 'eeprom_data' description in 'txgbe_read_i2c_sff8472'
drivers/net/ethernet/netswift/txgbe/txgbe_phy.c:810: warning: Function parameter or member 'dev_addr' not described in 'txgbe_read_i2c_byte_int'
drivers/net/ethernet/netswift/txgbe/txgbe_phy.c:872: warning: Function parameter or member 'dev_addr' not described in 'txgbe_read_i2c_byte'
drivers/net/ethernet/netswift/txgbe/txgbe_phy.c:891: warning: Function parameter or member 'dev_addr' not described in 'txgbe_write_i2c_byte_int'
drivers/net/ethernet/netswift/txgbe/txgbe_phy.c:935: warning: Function parameter or member 'dev_addr' not described in 'txgbe_write_i2c_byte'
>> drivers/net/ethernet/netswift/txgbe/txgbe_phy.o: warning: objtool: missing symbol for section .text
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Hi Peter,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 773f731853f1368508a0b112047bd9b5a4bb9a5e
commit: 1f7b24152a85bec4ea4f5a6219b4702853ffd3e6 [1345/1345] mm/memory: Move mmu_gather and TLB invalidation code into its own file
config: x86_64-buildonly-randconfig-001-20241224 (https://download.01.org/0day-ci/archive/20241229/202412290049.0DgodFXr-lkp@…)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241229/202412290049.0DgodFXr-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412290049.0DgodFXr-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from mm/mmu_gather.c:6:
include/linux/pagemap.h:401:21: warning: cast from 'int (*)(struct file *, struct page *)' to 'filler_t *' (aka 'int (*)(void *, struct page *)') converts to incompatible function type [-Wcast-function-type-strict]
401 | filler_t *filler = (filler_t *)mapping->a_ops->readpage;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
>> mm/.tmp_mmu_gather.o: warning: objtool: missing symbol for section .text
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 773f731853f1368508a0b112047bd9b5a4bb9a5e
commit: 0f0c3021514f52310056c32406b4b760fc9a7e6e [1355/1355] share_pool: Apply sp_group_id_by_pid() to multi-group-mode
config: arm64-randconfig-r133-20241227 (https://download.01.org/0day-ci/archive/20241228/202412282007.9AwBcoM1-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241228/202412282007.9AwBcoM1-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412282007.9AwBcoM1-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> mm/share_pool.c:837:29: sparse: sparse: incompatible types for operation (<=):
mm/share_pool.c:837:29: sparse: int *num
mm/share_pool.c:837:29: sparse: int
mm/share_pool.c: In function 'sp_group_id_by_pid':
mm/share_pool.c:837:29: warning: ordered comparison of pointer with integer zero [-Wextra]
837 | if (!spg_ids || num <= 0)
| ^~
In function 'vmalloc_area_clr_flag',
inlined from 'sp_make_share_k2u' at mm/share_pool.c:2550:8:
mm/share_pool.c:2396:18: warning: 'spa' may be used uninitialized [-Wmaybe-uninitialized]
2396 | spa->kva = 0;
| ~~~~~~~~~^~~
mm/share_pool.c: In function 'sp_make_share_k2u':
mm/share_pool.c:2429:25: note: 'spa' was declared here
2429 | struct sp_area *spa;
| ^~~
mm/share_pool.c:2562:16: warning: 'uva' may be used uninitialized [-Wmaybe-uninitialized]
2562 | return uva;
| ^~~
mm/share_pool.c:2427:15: note: 'uva' was declared here
2427 | void *uva;
| ^~~
mm/share_pool.c:829: warning: Function parameter or member 'spg_ids' not described in 'sp_group_id_by_pid'
mm/share_pool.c:829: warning: Function parameter or member 'num' not described in 'sp_group_id_by_pid'
mm/share_pool.c:2423: warning: duplicate section name 'Return'
vim +837 mm/share_pool.c
815
816 /**
817 * sp_group_id_by_pid() - Get the sp_group ID array of a process.
818 * @pid: pid of target process.
819 * @spg_ids point to an array to save the group ids the process belongs to
820 * @num input the spg_ids array size; output the spg number of the process
821 *
822 * Return:
823 * >0 - the sp_group ID.
824 * -ENODEV - target process doesn't belong to any sp_group.
825 * -EINVAL - spg_ids or num is NULL.
826 * -E2BIG - the num of groups process belongs to is larger than *num
827 */
828 int sp_group_id_by_pid(int pid, int *spg_ids, int *num)
829 {
830 int ret = 0;
831 struct sp_group_node *node;
832 struct sp_group_master *master = NULL;
833 struct task_struct *tsk;
834
835 check_interrupt_context();
836
> 837 if (!spg_ids || num <= 0)
838 return -EINVAL;
839
840 ret = get_task(pid, &tsk);
841 if (ret)
842 return ret;
843
844 down_read(&sp_group_sem);
845 task_lock(tsk);
846 if (tsk->mm)
847 master = tsk->mm->sp_group_master;
848 task_unlock(tsk);
849
850 if (!master) {
851 ret = -ENODEV;
852 goto out_up_read;
853 }
854
855 if (!master->count) {
856 ret = -ENODEV;
857 goto out_up_read;
858 }
859 if ((unsigned int)*num < master->count) {
860 ret = -E2BIG;
861 goto out_up_read;
862 }
863 *num = master->count;
864
865 list_for_each_entry(node, &master->node_list, group_node)
866 *(spg_ids++) = node->spg->id;
867
868 out_up_read:
869 up_read(&sp_group_sem);
870 put_task_struct(tsk);
871 return ret;
872 }
873 EXPORT_SYMBOL_GPL(sp_group_id_by_pid);
874
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 773f731853f1368508a0b112047bd9b5a4bb9a5e
commit: 4a280fac30d27ae2aff096f9f99aa12d50f83426 [1355/1355] ascend: share_pool: support share pool features for ascend platform
config: arm64-randconfig-r133-20241227 (https://download.01.org/0day-ci/archive/20241228/202412281933.AtwopaHj-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241228/202412281933.AtwopaHj-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412281933.AtwopaHj-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
mm/gup.c: note: in included file:
>> include/linux/share_pool.h:150:26: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct task_struct * @@ got struct task_struct [noderef] __rcu *owner @@
include/linux/share_pool.h:150:26: sparse: expected struct task_struct *
include/linux/share_pool.h:150:26: sparse: got struct task_struct [noderef] __rcu *owner
mm/gup.c:1769:47: sparse: sparse: self-comparison always evaluates to false
mm/gup.c:1794:47: sparse: sparse: self-comparison always evaluates to false
mm/gup.c:1830:6: warning: no previous prototype for 'gup_fast_permitted' [-Wmissing-prototypes]
1830 | bool gup_fast_permitted(unsigned long start, int nr_pages, int write)
| ^~~~~~~~~~~~~~~~~~
vim +150 include/linux/share_pool.h
2facb5901ceebe Ding Tianhong 2021-10-30 146
2facb5901ceebe Ding Tianhong 2021-10-30 147 static inline struct task_struct *sp_get_task(struct mm_struct *mm)
2facb5901ceebe Ding Tianhong 2021-10-30 148 {
2facb5901ceebe Ding Tianhong 2021-10-30 149 if (enable_ascend_share_pool)
2facb5901ceebe Ding Tianhong 2021-10-30 @150 return mm->owner;
2facb5901ceebe Ding Tianhong 2021-10-30 151 else
2facb5901ceebe Ding Tianhong 2021-10-30 152 return current;
2facb5901ceebe Ding Tianhong 2021-10-30 153 }
2facb5901ceebe Ding Tianhong 2021-10-30 154
:::::: The code at line 150 was first introduced by commit
:::::: 2facb5901ceebe6736c0d192ca50be5d26c70ad9 ascend: vmalloc: export new function for share pool
:::::: TO: Ding Tianhong <dingtianhong(a)huawei.com>
:::::: CC: Yang Yingliang <yangyingliang(a)huawei.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: 053a6b6f8e4c86200cdb20bc80c063c3bb119859
commit: 7dad816cb1f8841fda526c0978c10a94793f1178 [2601/2601] anolis: net/smc: Resolve the race between SMC-R link access and clear
config: x86_64-randconfig-121-20241228 (https://download.01.org/0day-ci/archive/20241228/202412281741.d8yDMbp6-lkp@…)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241228/202412281741.d8yDMbp6-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412281741.d8yDMbp6-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> net/smc/smc_core.c:770:6: sparse: sparse: symbol '__smcr_link_clear' was not declared. Should it be static?
vim +/__smcr_link_clear +770 net/smc/smc_core.c
769
> 770 void __smcr_link_clear(struct smc_link *lnk)
771 {
772 smc_wr_free_link_mem(lnk);
773 smc_lgr_put(lnk->lgr); /* lgr_hold in smcr_link_init() */
774 memset(lnk, 0, sizeof(struct smc_link));
775 lnk->state = SMC_LNK_UNUSED;
776 }
777
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki