From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE80017D5; Sun, 5 Feb 2023 04:26:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675571171; x=1707107171; h=date:from:to:cc:subject:message-id:mime-version; bh=g/B3VBkQpVSeGMu2WxWvG5NKj4dZ/KQeSIatv3ONp10=; b=Q/alWMNA2Qmi8kbNVDYx/Ju2toZvip0aZjBB80gQZGAKbfqjzhg5V+dX mGev67bxuRvhRPMXTxLHkc9ZeMXBEyXr9/wEzTkzdaH++35eMf02LBc8m 6Q/P7+9O1Z4pg0+cRYBzMvt4wvV9dOyjjkf7ZBt4X3HjrggeX+Y1tp7jW poQF6ugFCZTq5hbSMHY6ZUYHo+DFpq5BAnCxZbrc79DaVgDORe/LzYiik hI1/c6HUHALcwTuSu2xrx7SYKgTB8YmLBNAABIsuRl7j17kKKIH8u06aN 5kv6rnlFTpu4gf10mEfqF2efCAfjIWZvP+ITwBIGLbw8rBlpLMMcdjtqZ Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10611"; a="330309305" X-IronPort-AV: E=Sophos;i="5.97,274,1669104000"; d="scan'208";a="330309305" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2023 20:26:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10611"; a="668077272" X-IronPort-AV: E=Sophos;i="5.97,274,1669104000"; d="scan'208";a="668077272" Received: from lkp-server01.sh.intel.com (HELO 4455601a8d94) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 04 Feb 2023 20:26:08 -0800 Received: from kbuild by 4455601a8d94 with local (Exim 4.96) (envelope-from ) id 1pOWbP-0001k2-2o; Sun, 05 Feb 2023 04:26:07 +0000 Date: Sun, 5 Feb 2023 12:25:52 +0800 From: kernel test robot To: Sunil V L Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Anup Patel 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' Message-ID: <202302051225.nfhpRrql-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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 :::::: CC: Anup Patel -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests