[openeuler:OLK-6.6 3508/3508] drivers/ub/urma/ubcore/ubcm/ubcm_genl.c:98:20: sparse: sparse: symbol 'g_ubcm_genl_family' was not declared. Should it be static?
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: d281438782e3c28a3df71a64513a3312d43dcf01 commit: e34a52d4eed8912f6dfdc7d68152c45f7a071ca8 [3508/3508] ubcore: implement ubcore connection management and messaging feature. config: arm64-randconfig-r112-20251210 (https://download.01.org/0day-ci/archive/20251211/202512110717.yxbCknCT-lkp@i...) compiler: aarch64-linux-gcc (GCC) 13.4.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251211/202512110717.yxbCknCT-lkp@i...) 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@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202512110717.yxbCknCT-lkp@intel.com/ sparse warnings: (new ones prefixed by >>)
drivers/ub/urma/ubcore/ubcm/ubcm_genl.c:98:20: sparse: sparse: symbol 'g_ubcm_genl_family' was not declared. Should it be static?
vim +/g_ubcm_genl_family +98 drivers/ub/urma/ubcore/ubcm/ubcm_genl.c 97
98 struct genl_family g_ubcm_genl_family __ro_after_init = { 99 .hdrsize = 0, 100 .name = UBCM_GENL_FAMILY_NAME, 101 .version = UBCM_GENL_FAMILY_VERSION, 102 .maxattr = UBCM_ATTR_MAX, 103 .policy = g_ubcm_policy, 104 105 .resv_start_op = UBCM_CMD_NUM, 106 107 .netnsok = true, 108 .module = THIS_MODULE, 109 .ops = g_ubcm_genl_ops, 110 .n_ops = ARRAY_SIZE(g_ubcm_genl_ops) 111 }; 112
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot