[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210040907.aP7DKcDB-lkp@intel.com>
Date: Tue, 4 Oct 2022 10:10:28 +0800
From: kernel test robot <lkp@...el.com>
To: Manisha Chinthapally <manisha.chinthapally@...el.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [mchinth:sep_linux_v6.0-rc7 2/2]
drivers/platform/x86/sepdk/sep/apic.c:96:27: error: implicit declaration of
function 'read_apic_id'
tree: https://github.com/mchinth/linux sep_linux_v6.0-rc7
head: 4c704363910aa00df3243bcb1658edf3fb9919c9
commit: 4c704363910aa00df3243bcb1658edf3fb9919c9 [2/2] Merge SEP5.36 into Linux tree
config: i386-randconfig-c001
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/mchinth/linux/commit/4c704363910aa00df3243bcb1658edf3fb9919c9
git remote add mchinth https://github.com/mchinth/linux
git fetch --no-tags mchinth sep_linux_v6.0-rc7
git checkout 4c704363910aa00df3243bcb1658edf3fb9919c9
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
drivers/platform/x86/sepdk/sep/apic.c:66:1: warning: no previous prototype for 'apic_Get_APIC_ID' [-Wmissing-prototypes]
66 | apic_Get_APIC_ID(S32 cpu)
| ^~~~~~~~~~~~~~~~
drivers/platform/x86/sepdk/sep/apic.c: In function 'apic_Get_APIC_ID':
>> drivers/platform/x86/sepdk/sep/apic.c:96:27: error: implicit declaration of function 'read_apic_id' [-Werror=implicit-function-declaration]
96 | apic_id = read_apic_id();
| ^~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/read_apic_id +96 drivers/platform/x86/sepdk/sep/apic.c
55
56 /*!
57 * @fn VOID apic_Get_APIC_ID(S32 cpu)
58 *
59 * @brief Obtain APIC ID
60 *
61 * @param S32 cpuid - cpu index
62 *
63 * @return U32 APIC ID
64 */
65 VOID
> 66 apic_Get_APIC_ID(S32 cpu)
67 {
68 U32 apic_id = 0;
69 CPU_STATE pcpu;
70
71 SEP_DRV_LOG_TRACE_IN("CPU: %d.", cpu);
72 pcpu = &pcb[cpu];
73
74 #if defined(CONFIG_XEN_DOM0) && LINUX_VERSION_CODE > KERNEL_VERSION(3, 3, 0)
75 if (xen_initial_domain()) {
76 S32 ret = 0;
77 struct xen_platform_op op = {
78 .cmd = XENPF_get_cpuinfo,
79 .interface_version = XENPF_INTERFACE_VERSION,
80 .u.pcpu_info.xen_cpuid = cpu,
81 };
82
83 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 5, 0)
84 ret = HYPERVISOR_platform_op(&op);
85 #else
86 ret = HYPERVISOR_dom0_op(&op);
87 #endif
88 if (ret) {
89 SEP_DRV_LOG_ERROR("apic_Get_APIC_ID: Error in reading APIC ID on Xen PV.");
90 apic_id = 0;
91 } else {
92 apic_id = op.u.pcpu_info.apic_id;
93 }
94 } else {
95 #endif
> 96 apic_id = read_apic_id();
97 #if defined(CONFIG_XEN_DOM0) && LINUX_VERSION_CODE > KERNEL_VERSION(3, 3, 0)
98 }
99 #endif
100
101 CPU_STATE_apic_id(pcpu) = apic_id;
102
103 SEP_DRV_LOG_TRACE_OUT("Apic_id[%d] is %d.", cpu,
104 CPU_STATE_apic_id(pcpu));
105 }
106
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (132569 bytes)
Powered by blists - more mailing lists