mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
	tipbuild@zytor.com, Ingo Molnar <mingo@kernel.org>
Subject: [tip:x86/timers 8/13] arch/x86/kernel/tsc_sync.c:34: warning: unused variable 'ref'
Date: Wed, 30 Nov 2016 05:43:03 +0800	[thread overview]
Message-ID: <201611300554.teIzsBo7%fengguang.wu@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2016-11-29 21:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201611300554.teIzsBo7%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=tglx@linutronix.de \
    --cc=tipbuild@zytor.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®