public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Sunil V L <sunilvl@ventanamicro.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Anup Patel <anup@brainfault.org>
Subject: [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'
Date: Sun, 5 Feb 2023 12:25:52 +0800	[thread overview]
Message-ID: <202302051225.nfhpRrql-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-02-05  4:26 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=202302051225.nfhpRrql-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=anup@brainfault.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=sunilvl@ventanamicro.com \
    /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