* [tip:timers/core 34/34] drivers//clocksource/hyperv_timer.c:264:35: error: 'hv_sched_clock_offset' undeclared; did you mean 'sched_clock_register'?
@ 2019-08-22 2:25 kbuild test robot
2019-08-22 3:11 ` Tianyu Lan
0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2019-08-22 2:25 UTC (permalink / raw)
To: Tianyu Lan
Cc: kbuild-all, linux-kernel, tipbuild, Thomas Gleixner, Michael Kelley
[-- Attachment #1: Type: text/plain, Size: 2097 bytes --]
tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/tip/tip.git timers/core
head: b74e1d61dbc614ff35ef3ad9267c61ed06b09051
commit: b74e1d61dbc614ff35ef3ad9267c61ed06b09051 [34/34] clocksource/hyperv: Add Hyper-V specific sched clock function
config: i386-randconfig-g002-201933 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-10) 7.4.0
reproduce:
git checkout b74e1d61dbc614ff35ef3ad9267c61ed06b09051
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
drivers//clocksource/hyperv_timer.c: In function 'read_hv_sched_clock_msr':
>> drivers//clocksource/hyperv_timer.c:264:35: error: 'hv_sched_clock_offset' undeclared (first use in this function); did you mean 'sched_clock_register'?
return read_hv_clock_msr(NULL) - hv_sched_clock_offset;
^~~~~~~~~~~~~~~~~~~~~
sched_clock_register
drivers//clocksource/hyperv_timer.c:264:35: note: each undeclared identifier is reported only once for each function it appears in
drivers//clocksource/hyperv_timer.c: In function 'hv_init_clocksource':
drivers//clocksource/hyperv_timer.c:334:2: error: 'hv_sched_clock_offset' undeclared (first use in this function); did you mean 'sched_clock_register'?
hv_sched_clock_offset = hyperv_cs->read(hyperv_cs);
^~~~~~~~~~~~~~~~~~~~~
sched_clock_register
drivers//clocksource/hyperv_timer.c: In function 'read_hv_sched_clock_msr':
>> drivers//clocksource/hyperv_timer.c:265:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
vim +264 drivers//clocksource/hyperv_timer.c
261
262 static u64 read_hv_sched_clock_msr(void)
263 {
> 264 return read_hv_clock_msr(NULL) - hv_sched_clock_offset;
> 265 }
266
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32583 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: [tip:timers/core 34/34] drivers//clocksource/hyperv_timer.c:264:35: error: 'hv_sched_clock_offset' undeclared; did you mean 'sched_clock_register'?
2019-08-22 2:25 [tip:timers/core 34/34] drivers//clocksource/hyperv_timer.c:264:35: error: 'hv_sched_clock_offset' undeclared; did you mean 'sched_clock_register'? kbuild test robot
@ 2019-08-22 3:11 ` Tianyu Lan
0 siblings, 0 replies; 2+ messages in thread
From: Tianyu Lan @ 2019-08-22 3:11 UTC (permalink / raw)
To: kbuild test robot
Cc: kbuild-all, linux-kernel, tipbuild, Thomas Gleixner, Michael Kelley
Thanks for reporting. I will send out fix patch.
-----Original Message-----
From: kbuild test robot <lkp@intel.com>
Sent: Thursday, August 22, 2019 10:25 AM
To: Tianyu Lan <Tianyu.Lan@microsoft.com>
Cc: kbuild-all@01.org; linux-kernel@vger.kernel.org; tipbuild@zytor.com; Thomas Gleixner <tglx@linutronix.de>; Michael Kelley <mikelley@microsoft.com>
Subject: [tip:timers/core 34/34] drivers//clocksource/hyperv_timer.c:264:35: error: 'hv_sched_clock_offset' undeclared; did you mean 'sched_clock_register'?
tree: https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fkernel.googlesource.com%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftip%2Ftip.git&data=02%7C01%7CTianyu.Lan%40microsoft.com%7Cfa01680d45d1424cbbc308d726a82122%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637020378361213701&sdata=56fY4vgmkc4Nk3ZqCZhRyaA%2BmfKSd%2Fp9eYXZUahw5uo%3D&reserved=0 timers/core
head: b74e1d61dbc614ff35ef3ad9267c61ed06b09051
commit: b74e1d61dbc614ff35ef3ad9267c61ed06b09051 [34/34] clocksource/hyperv: Add Hyper-V specific sched clock function
config: i386-randconfig-g002-201933 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-10) 7.4.0
reproduce:
git checkout b74e1d61dbc614ff35ef3ad9267c61ed06b09051
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
drivers//clocksource/hyperv_timer.c: In function 'read_hv_sched_clock_msr':
>> drivers//clocksource/hyperv_timer.c:264:35: error: 'hv_sched_clock_offset' undeclared (first use in this function); did you mean 'sched_clock_register'?
return read_hv_clock_msr(NULL) - hv_sched_clock_offset;
^~~~~~~~~~~~~~~~~~~~~
sched_clock_register
drivers//clocksource/hyperv_timer.c:264:35: note: each undeclared identifier is reported only once for each function it appears in
drivers//clocksource/hyperv_timer.c: In function 'hv_init_clocksource':
drivers//clocksource/hyperv_timer.c:334:2: error: 'hv_sched_clock_offset' undeclared (first use in this function); did you mean 'sched_clock_register'?
hv_sched_clock_offset = hyperv_cs->read(hyperv_cs);
^~~~~~~~~~~~~~~~~~~~~
sched_clock_register
drivers//clocksource/hyperv_timer.c: In function 'read_hv_sched_clock_msr':
>> drivers//clocksource/hyperv_timer.c:265:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
vim +264 drivers//clocksource/hyperv_timer.c
261
262 static u64 read_hv_sched_clock_msr(void)
263 {
> 264 return read_hv_clock_msr(NULL) - hv_sched_clock_offset;
> 265 }
266
---
0-DAY kernel test infrastructure Open Source Technology Center
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.01.org%2Fpipermail%2Fkbuild-all&data=02%7C01%7CTianyu.Lan%40microsoft.com%7Cfa01680d45d1424cbbc308d726a82122%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637020378361213701&sdata=bmZV%2B2uKHUlwngubxhE2bZlfOqCRNYVDCXOs%2FWcy3f8%3D&reserved=0 Intel Corporation
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-08-22 3:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-22 2:25 [tip:timers/core 34/34] drivers//clocksource/hyperv_timer.c:264:35: error: 'hv_sched_clock_offset' undeclared; did you mean 'sched_clock_register'? kbuild test robot
2019-08-22 3:11 ` Tianyu Lan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).