[openeuler:OLK-6.6 3479/3479] drivers/ub/urma/ubcore/ubcore_tp.c:42:5: warning: no previous prototype for 'ubcore_set_tp_attr'
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 4b48fa45408a2757255bdd0c640c1f693b424fe4 commit: 48c0dc7e6efc81a43d09cc96efcd43f68c0ed145 [3479/3479] urma: added functions for getting and setting TP attribute fields. config: arm64-randconfig-r061-20251205 (https://download.01.org/0day-ci/archive/20251206/202512060607.MyfYJLh0-lkp@i...) compiler: aarch64-linux-gcc (GCC) 9.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251206/202512060607.MyfYJLh0-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/202512060607.MyfYJLh0-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/ub/urma/ubcore/ubcore_tp.c:16:5: warning: no previous prototype for 'ubcore_get_tp_list' [-Wmissing-prototypes] 16 | int ubcore_get_tp_list(struct ubcore_device *dev, struct ubcore_get_tp_cfg *cfg, | ^~~~~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_tp.c:42:5: warning: no previous prototype for 'ubcore_set_tp_attr' [-Wmissing-prototypes] 42 | int ubcore_set_tp_attr(struct ubcore_device *dev, const uint64_t tp_handle, | ^~~~~~~~~~~~~~~~~~ drivers/ub/urma/ubcore/ubcore_tp.c:65:5: warning: no previous prototype for 'ubcore_get_tp_attr' [-Wmissing-prototypes] 65 | int ubcore_get_tp_attr(struct ubcore_device *dev, const uint64_t tp_handle, | ^~~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for PGP_PRELOAD Depends on [n]: CRYPTO [=y] && ASYMMETRIC_KEY_TYPE [=n] Selected by [y]: - PGP_PRELOAD_PUBLIC_KEYS [=y] && CRYPTO [=y] vim +/ubcore_set_tp_attr +42 drivers/ub/urma/ubcore/ubcore_tp.c 41
42 int ubcore_set_tp_attr(struct ubcore_device *dev, const uint64_t tp_handle, 43 const uint8_t tp_attr_cnt, const uint32_t tp_attr_bitmap, 44 const struct ubcore_tp_attr_value *tp_attr, 45 struct ubcore_udata *udata) 46 { 47 int ret; 48 49 if (dev == NULL || dev->ops == NULL || dev->ops->set_tp_attr == NULL || 50 tp_attr == NULL) { 51 ubcore_log_err("Invalid parameter.\n"); 52 return -EINVAL; 53 } 54 55 ret = dev->ops->set_tp_attr(dev, tp_handle, tp_attr_cnt, tp_attr_bitmap, 56 tp_attr, udata); 57 if (ret != 0) 58 ubcore_log_err("Failed to set tp attributions, ret: %d.\n", 59 ret); 60 61 return ret; 62 } 63 EXPORT_SYMBOL(ubcore_set_tp_attr); 64 65 int ubcore_get_tp_attr(struct ubcore_device *dev, const uint64_t tp_handle,
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot