All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Vincent Guittot <vincent.guittot@linaro.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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'
Date: Fri, 1 Dec 2023 01:20:28 +0800	[thread overview]
Message-ID: <202312010122.73mxP5BP-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-11-30 17:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202312010122.73mxP5BP-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=vincent.guittot@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.