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 4/4] arch/arm64/kernel/cpufeature_impdef.c:12:6: warning: no previous prototype for function 'has_apple_feature'
Date: Mon, 20 Nov 2023 20:44:16 +0800 [thread overview]
Message-ID: <202311202018.ECg9m9He-lkp@intel.com> (raw)
tree: https://github.com/AsahiLinux/linux bits/220-tso
head: 308062b9b17efd95c1c98c7c2cf667f620492fce
commit: 308062b9b17efd95c1c98c7c2cf667f620492fce [4/4] arm64: Implement Apple IMPDEF TSO memory model control
config: arm64-randconfig-002-20231120 (https://download.01.org/0day-ci/archive/20231120/202311202018.ECg9m9He-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/202311202018.ECg9m9He-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/202311202018.ECg9m9He-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/arm64/kernel/cpufeature_impdef.c:12:6: warning: no previous prototype for function 'has_apple_feature' [-Wmissing-prototypes]
12 | bool has_apple_feature(const struct arm64_cpu_capabilities *entry, int scope)
| ^
arch/arm64/kernel/cpufeature_impdef.c:12:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
12 | bool has_apple_feature(const struct arm64_cpu_capabilities *entry, int scope)
| ^
| static
arch/arm64/kernel/cpufeature_impdef.c:24:6: warning: no previous prototype for function 'has_tso_fixed' [-Wmissing-prototypes]
24 | bool has_tso_fixed(const struct arm64_cpu_capabilities *entry, int scope)
| ^
arch/arm64/kernel/cpufeature_impdef.c:24:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
24 | bool has_tso_fixed(const struct arm64_cpu_capabilities *entry, int scope)
| ^
| static
arch/arm64/kernel/cpufeature_impdef.c:59:13: warning: no previous prototype for function 'init_cpucap_indirect_list_impdef' [-Wmissing-prototypes]
59 | void __init init_cpucap_indirect_list_impdef(void)
| ^
arch/arm64/kernel/cpufeature_impdef.c:59:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
59 | void __init init_cpucap_indirect_list_impdef(void)
| ^
| static
3 warnings generated.
vim +/has_apple_feature +12 arch/arm64/kernel/cpufeature_impdef.c
11
> 12 bool has_apple_feature(const struct arm64_cpu_capabilities *entry, int scope)
13 {
14 u64 val;
15 WARN_ON(scope != SCOPE_SYSTEM);
16
17 if (read_cpuid_implementor() != ARM_CPU_IMP_APPLE)
18 return false;
19
20 val = read_sysreg(aidr_el1);
21 return feature_matches(val, entry);
22 }
23
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2023-11-20 12:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-20 12:44 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-08-03 15:11 [asahilinux:bits/220-tso 4/4] arch/arm64/kernel/cpufeature_impdef.c:12:6: warning: no previous prototype for function 'has_apple_feature' kernel test robot
2023-06-04 17:12 kernel test robot
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=202311202018.ECg9m9He-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