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
Subject: [tip:smp/hotplug 4/20] arch/x86/kernel/cpuid.c:161:2: error: 'cpuhp_cpuid_state' undeclared
Date: Tue, 22 Nov 2016 00:00:58 +0800	[thread overview]
Message-ID: <201611220052.OrtGfo9F%fengguang.wu@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git smp/hotplug
head:   73f4f6f5ab9a069037b8e98663193accaf18bd5c
commit: 22fbf682c20b8c51a7fbe51d43bc9833b26c2cc4 [4/20] x86/cpuid: Move the hotplug callbacks to online
config: x86_64-randconfig-x011-201647 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 22fbf682c20b8c51a7fbe51d43bc9833b26c2cc4
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   arch/x86/kernel/cpuid.c: In function 'cpuid_init':
>> arch/x86/kernel/cpuid.c:161:2: error: 'cpuhp_cpuid_state' undeclared (first use in this function)
     cpuhp_cpuid_state = err;
     ^~~~~~~~~~~~~~~~~
   arch/x86/kernel/cpuid.c:161:2: note: each undeclared identifier is reported only once for each function it appears in
   arch/x86/kernel/cpuid.c: In function 'cpuid_exit':
   arch/x86/kernel/cpuid.c:174:21: error: 'cpuhp_cpuid_state' undeclared (first use in this function)
     cpuhp_remove_state(cpuhp_cpuid_state);
                        ^~~~~~~~~~~~~~~~~
   At top level:
   arch/x86/kernel/cpuid.c:48:25: warning: 'cpuid_hp_state' defined but not used [-Wunused-variable]
    static enum cpuhp_state cpuid_hp_state;
                            ^~~~~~~~~~~~~~

vim +/cpuhp_cpuid_state +161 arch/x86/kernel/cpuid.c

   155	
   156		err = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "x86/cpuid:online",
   157					cpuid_device_create, cpuid_device_destroy);
   158		if (err < 0)
   159			goto out_class;
   160	
 > 161		cpuhp_cpuid_state = err;
   162		return 0;
   163	
   164	out_class:

---
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: 32678 bytes --]

                 reply	other threads:[~2016-11-21 16:01 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=201611220052.OrtGfo9F%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.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®