* [vincent-guittot:scmi/ffa-transport 1/2] drivers/firmware/arm_scmi/ffa.c:337:6: warning: no previous prototype for function 'ffa_shm_free_kernel_buf'
@ 2023-11-30 17:20 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-11-30 17:20 UTC (permalink / raw)
To: Vincent Guittot; +Cc: llvm, oe-kbuild-all
tree: https://git.linaro.org/people/vincent.guittot/kernel.git scmi/ffa-transport
head: 58f815a694fe99b6067c8e74a23f7ef193a7f76e
commit: 4e6e5543e62399d3e18c26257137593114fb63cc [1/2] scmi/ffa: add a new scmi transport layer based on ffa
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20231201/202312010122.73mxP5BP-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231201/202312010122.73mxP5BP-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312010122.73mxP5BP-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/firmware/arm_scmi/ffa.c:337:6: warning: no previous prototype for function 'ffa_shm_free_kernel_buf' [-Wmissing-prototypes]
337 | void ffa_shm_free_kernel_buf(struct tee_shm *shm)
| ^
drivers/firmware/arm_scmi/ffa.c:337:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
337 | void ffa_shm_free_kernel_buf(struct tee_shm *shm)
| ^
| static
1 warning generated.
vim +/ffa_shm_free_kernel_buf +337 drivers/firmware/arm_scmi/ffa.c
336
> 337 void ffa_shm_free_kernel_buf(struct tee_shm *shm)
338 {
339 struct ffa_device *ffa_dev = ffa_service->ffa_dev;
340 const struct ffa_mem_ops *mem_ops = ffa_dev->ops->mem_ops;
341 int ret;
342
343 /* Nothing to free */
344 if (shm == NULL)
345 return;
346
347 // reclaim shared memory
348 ret = mem_ops->memory_reclaim(shm->sec_world_id, 0);
349 if (ret)
350 pr_err("mem_reclaim: 0x%llx %d", shm->sec_world_id, ret);
351
352 free_pages((unsigned long)shm->kaddr, get_order(shm->size));
353 kfree(shm);
354 }
355
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-30 17:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-30 17:20 [vincent-guittot:scmi/ffa-transport 1/2] drivers/firmware/arm_scmi/ffa.c:337:6: warning: no previous prototype for function 'ffa_shm_free_kernel_buf' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.