public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Hector Martin <marcan@marcan.st>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [asahilinux:bits/220-tso 3/4] arch/arm64/kernel/process.c:544:5: warning: no previous prototype for function 'arch_prctl_mem_model_get'
Date: Mon, 20 Nov 2023 17:23:22 +0800	[thread overview]
Message-ID: <202311201703.SyraK0kl-lkp@intel.com> (raw)

tree:   https://github.com/AsahiLinux/linux bits/220-tso
head:   308062b9b17efd95c1c98c7c2cf667f620492fce
commit: 358a9e2c2286df9864eff73ff2baeb4efe94c66e [3/4] arm64: Implement PR_{GET,SET}_MEM_MODEL for always-TSO CPUs
config: arm64-randconfig-001-20231120 (https://download.01.org/0day-ci/archive/20231120/202311201703.SyraK0kl-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/20231120/202311201703.SyraK0kl-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/202311201703.SyraK0kl-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> arch/arm64/kernel/process.c:544:5: warning: no previous prototype for function 'arch_prctl_mem_model_get' [-Wmissing-prototypes]
     544 | int arch_prctl_mem_model_get(struct task_struct *t)
         |     ^
   arch/arm64/kernel/process.c:544:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     544 | int arch_prctl_mem_model_get(struct task_struct *t)
         | ^
         | static 
>> arch/arm64/kernel/process.c:549:5: warning: no previous prototype for function 'arch_prctl_mem_model_set' [-Wmissing-prototypes]
     549 | int arch_prctl_mem_model_set(struct task_struct *t, unsigned long val)
         |     ^
   arch/arm64/kernel/process.c:549:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     549 | int arch_prctl_mem_model_set(struct task_struct *t, unsigned long val)
         | ^
         | static 
   2 warnings generated.


vim +/arch_prctl_mem_model_get +544 arch/arm64/kernel/process.c

   542	
   543	#ifdef CONFIG_ARM64_MEMORY_MODEL_CONTROL
 > 544	int arch_prctl_mem_model_get(struct task_struct *t)
   545	{
   546		return PR_SET_MEM_MODEL_DEFAULT;
   547	}
   548	
 > 549	int arch_prctl_mem_model_set(struct task_struct *t, unsigned long val)
   550	{
   551		if (cpus_have_const_cap(ARM64_HAS_TSO_FIXED) &&
   552		    val == PR_SET_MEM_MODEL_TSO)
   553			return 0;
   554	
   555		if (val == PR_SET_MEM_MODEL_DEFAULT)
   556			return 0;
   557	
   558		return -EINVAL;
   559	}
   560	#endif
   561	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2023-11-20  9:25 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=202311201703.SyraK0kl-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=marcan@marcan.st \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox