mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [tip:x86/timers 8/13] arch/x86/kernel/tsc_sync.c:34: warning: unused variable 'ref'
@ 2016-11-29 21:43 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2016-11-29 21:43 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: kbuild-all, linux-kernel, tipbuild, Ingo Molnar

[-- Attachment #1: Type: text/plain, Size: 1562 bytes --]

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 18447 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-11-29 21:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-29 21:43 [tip:x86/timers 8/13] arch/x86/kernel/tsc_sync.c:34: warning: unused variable 'ref' kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®