* [avpatel:riscv_sbi_nested_v1 35/76] arch/riscv/include/asm/acpi.h:80:5: warning: no previous prototype for function 'acpi_get_riscv_isa'
@ 2023-02-05 4:25 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-05 4:25 UTC (permalink / raw)
To: Sunil V L; +Cc: llvm, oe-kbuild-all, Anup Patel
tree: https://github.com/avpatel/linux.git riscv_sbi_nested_v1
head: 27e6109638389f74b42fe02858caa9c7a381cbbe
commit: db4952f58ebd70e99ec95af6c8139e52f809a32a [35/76] RISC-V: ACPI: cpufeature: Add ACPI support in riscv_fill_hwcap()
config: riscv-randconfig-r042-20230205 (https://download.01.org/0day-ci/archive/20230205/202302051225.nfhpRrql-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 4196ca3278f78c6e19246e54ab0ecb364e37d66a)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/avpatel/linux/commit/db4952f58ebd70e99ec95af6c8139e52f809a32a
git remote add avpatel https://github.com/avpatel/linux.git
git fetch --no-tags avpatel riscv_sbi_nested_v1
git checkout db4952f58ebd70e99ec95af6c8139e52f809a32a
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/kernel/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/riscv/kernel/cpufeature.c:16:
>> arch/riscv/include/asm/acpi.h:80:5: warning: no previous prototype for function 'acpi_get_riscv_isa' [-Wmissing-prototypes]
int acpi_get_riscv_isa(struct acpi_table_header *table, unsigned int cpu, const char **isa)
^
arch/riscv/include/asm/acpi.h:80:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int acpi_get_riscv_isa(struct acpi_table_header *table, unsigned int cpu, const char **isa)
^
static
1 warning generated.
vim +/acpi_get_riscv_isa +80 arch/riscv/include/asm/acpi.h
f6ce6a00404b8e Sunil V L 2023-01-30 67
d8a08750a4fecf Sunil V L 2023-01-30 68 struct acpi_madt_rintc *acpi_get_madt_rintc(int cpu);
d8a08750a4fecf Sunil V L 2023-01-30 69 struct acpi_madt_rintc *acpi_cpu_get_madt_rintc(int cpu);
d8a08750a4fecf Sunil V L 2023-01-30 70 static inline u32 get_acpi_id_for_cpu(int cpu)
d8a08750a4fecf Sunil V L 2023-01-30 71 {
d8a08750a4fecf Sunil V L 2023-01-30 72 return acpi_cpu_get_madt_rintc(cpu)->uid;
d8a08750a4fecf Sunil V L 2023-01-30 73 }
04edd69e833b9d Sunil V L 2023-01-30 74 int acpi_get_riscv_isa(struct acpi_table_header *table, unsigned int cpu, const char **isa);
d8a08750a4fecf Sunil V L 2023-01-30 75 #else
d8a08750a4fecf Sunil V L 2023-01-30 76 static inline u32 get_acpi_id_for_cpu(int cpu)
d8a08750a4fecf Sunil V L 2023-01-30 77 {
d8a08750a4fecf Sunil V L 2023-01-30 78 return -1;
d8a08750a4fecf Sunil V L 2023-01-30 79 }
04edd69e833b9d Sunil V L 2023-01-30 @80 int acpi_get_riscv_isa(struct acpi_table_header *table, unsigned int cpu, const char **isa)
04edd69e833b9d Sunil V L 2023-01-30 81 {
04edd69e833b9d Sunil V L 2023-01-30 82 return -1;
04edd69e833b9d Sunil V L 2023-01-30 83 }
d8a08750a4fecf Sunil V L 2023-01-30 84
:::::: The code at line 80 was first introduced by commit
:::::: 04edd69e833b9da8cbae5866214e4891626072ae ACPI: RISC-V: drivers/acpi: Add RHCT related code
:::::: TO: Sunil V L <sunilvl@ventanamicro.com>
:::::: CC: Anup Patel <anup@brainfault.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-05 4:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-05 4:25 [avpatel:riscv_sbi_nested_v1 35/76] arch/riscv/include/asm/acpi.h:80:5: warning: no previous prototype for function 'acpi_get_riscv_isa' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox