[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201611300554.teIzsBo7%fengguang.wu@intel.com>
Date: Wed, 30 Nov 2016 05:43:03 +0800
From: kbuild test robot <fengguang.wu@...el.com>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: kbuild-all@...org, linux-kernel@...r.kernel.org,
tipbuild@...or.com, Ingo Molnar <mingo@...nel.org>
Subject: [tip:x86/timers 8/13] arch/x86/kernel/tsc_sync.c:34: warning: unused
variable 'ref'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/timers
head: cc4db26899dcd0e6ff0448c77abd8eb61b1a1333
commit: 8b223bc7abe0e30e8d297a24ee6c6c07ef8d0bb9 [8/13] x86/tsc: Store and check TSC ADJUST MSR
config: x86_64-randconfig-a0-11300349 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
git checkout 8b223bc7abe0e30e8d297a24ee6c6c07ef8d0bb9
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
arch/x86/kernel/tsc_sync.c: In function 'tsc_store_and_check_tsc_adjust':
>> arch/x86/kernel/tsc_sync.c:34: warning: unused variable 'ref'
vim +/ref +34 arch/x86/kernel/tsc_sync.c
18 #include <linux/spinlock.h>
19 #include <linux/kernel.h>
20 #include <linux/smp.h>
21 #include <linux/nmi.h>
22 #include <asm/tsc.h>
23
24 struct tsc_adjust {
25 s64 bootval;
26 s64 adjusted;
27 };
28
29 static DEFINE_PER_CPU(struct tsc_adjust, tsc_adjust);
30
31 #ifndef CONFIG_SMP
32 void __init tsc_store_and_check_tsc_adjust(void)
33 {
> 34 struct tsc_adjust *ref, *cur = this_cpu_ptr(&tsc_adjust);
35 s64 bootval;
36
37 if (!boot_cpu_has(X86_FEATURE_TSC_ADJUST))
38 return;
39
40 rdmsrl(MSR_IA32_TSC_ADJUST, bootval);
41 cur->bootval = bootval;
42 cur->adjusted = bootval;
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (18447 bytes)
Powered by blists - more mailing lists