[mmotm:master 262/281] arch/x86/kernel/cpu/proc.c:81: undefined reference to `arch_freq_get_on_cpu'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andrew,

It's probably a bug fix that unveils the link errors.

tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   f1560529a066beae1f8bc50a2139b796c01534f1
commit: e79fde04cef13b9356b75883ffa6e2b18a6f7530 [262/281] linux-next-rejects
config: i386-randconfig-n0-201746 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
        git checkout e79fde04cef13b9356b75883ffa6e2b18a6f7530
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   arch/x86/kernel/cpu/proc.o: In function `show_cpuinfo':
>> arch/x86/kernel/cpu/proc.c:81: undefined reference to `arch_freq_get_on_cpu'

vim +81 arch/x86/kernel/cpu/proc.c

a967ceac arch/x86/kernel/cpu/proc.c  Hiroshi Shimamoto 2008-02-20   54  
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16   55  static int show_cpuinfo(struct seq_file *m, void *v)
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16   56  {
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16   57  	struct cpuinfo_x86 *c = v;
141168c3 arch/x86/kernel/cpu/proc.c  Kevin Winchester  2011-12-20   58  	unsigned int cpu;
a967ceac arch/x86/kernel/cpu/proc.c  Hiroshi Shimamoto 2008-02-20   59  	int i;
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16   60  
a967ceac arch/x86/kernel/cpu/proc.c  Hiroshi Shimamoto 2008-02-20   61  	cpu = c->cpu_index;
a967ceac arch/x86/kernel/cpu/proc.c  Hiroshi Shimamoto 2008-02-20   62  	seq_printf(m, "processor\t: %u\n"
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16   63  		   "vendor_id\t: %s\n"
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16   64  		   "cpu family\t: %d\n"
a967ceac arch/x86/kernel/cpu/proc.c  Hiroshi Shimamoto 2008-02-20   65  		   "model\t\t: %u\n"
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16   66  		   "model name\t: %s\n",
a967ceac arch/x86/kernel/cpu/proc.c  Hiroshi Shimamoto 2008-02-20   67  		   cpu,
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16   68  		   c->x86_vendor_id[0] ? c->x86_vendor_id : "unknown",
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16   69  		   c->x86,
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16   70  		   c->x86_model,
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16   71  		   c->x86_model_id[0] ? c->x86_model_id : "unknown");
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16   72  
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16   73  	if (c->x86_mask || c->cpuid_level >= 0)
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16   74  		seq_printf(m, "stepping\t: %d\n", c->x86_mask);
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16   75  	else
3736708f arch/x86/kernel/cpu/proc.c  Rasmus Villemoes  2014-11-28   76  		seq_puts(m, "stepping\t: unknown\n");
506ed6b5 arch/x86/kernel/cpu/proc.c  Andi Kleen        2011-10-12   77  	if (c->microcode)
881e23e5 arch/x86/kernel/cpu/proc.c  Borislav Petkov   2011-10-17   78  		seq_printf(m, "microcode\t: 0x%x\n", c->microcode);
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16   79  
2e3c624e arch/x86/kernel/cpu/proc.c  Andrew Morton     2017-11-03   80  	if (cpu_has(c, X86_FEATURE_TSC)) {
2e3c624e arch/x86/kernel/cpu/proc.c  Andrew Morton     2017-11-03  @81  		unsigned int freq = arch_freq_get_on_cpu(cpu);
2e3c624e arch/x86/kernel/cpu/proc.c  Andrew Morton     2017-11-03   82  
2e3c624e arch/x86/kernel/cpu/proc.c  Andrew Morton     2017-11-03   83  		if (!freq)
2e3c624e arch/x86/kernel/cpu/proc.c  Andrew Morton     2017-11-03   84  			freq = cpufreq_quick_get(cpu);
2e3c624e arch/x86/kernel/cpu/proc.c  Andrew Morton     2017-11-03   85  		if (!freq)
2e3c624e arch/x86/kernel/cpu/proc.c  Andrew Morton     2017-11-03   86  			freq = cpu_khz;
a3a255e7 arch/i386/kernel/cpu/proc.c Andrew Morton     2005-06-23   87  		seq_printf(m, "cpu MHz\t\t: %u.%03u\n",
2e3c624e arch/x86/kernel/cpu/proc.c  Andrew Morton     2017-11-03   88  			   freq / 1000, (freq % 1000));
2e3c624e arch/x86/kernel/cpu/proc.c  Andrew Morton     2017-11-03   89  	}
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16   90  
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16   91  	/* Cache size */
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16   92  	if (c->x86_cache_size >= 0)
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16   93  		seq_printf(m, "cache size\t: %d KB\n", c->x86_cache_size);
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16   94  
a967ceac arch/x86/kernel/cpu/proc.c  Hiroshi Shimamoto 2008-02-20   95  	show_cpuinfo_core(m, c, cpu);
a967ceac arch/x86/kernel/cpu/proc.c  Hiroshi Shimamoto 2008-02-20   96  	show_cpuinfo_misc(m, c);
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16   97  
3736708f arch/x86/kernel/cpu/proc.c  Rasmus Villemoes  2014-11-28   98  	seq_puts(m, "flags\t\t:");
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16   99  	for (i = 0; i < 32*NCAPINTS; i++)
a967ceac arch/x86/kernel/cpu/proc.c  Hiroshi Shimamoto 2008-02-20  100  		if (cpu_has(c, i) && x86_cap_flags[i] != NULL)
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16  101  			seq_printf(m, " %s", x86_cap_flags[i]);
^1da177e arch/i386/kernel/cpu/proc.c Linus Torvalds    2005-04-16  102  
3736708f arch/x86/kernel/cpu/proc.c  Rasmus Villemoes  2014-11-28  103  	seq_puts(m, "\nbugs\t\t:");
80a208bd arch/x86/kernel/cpu/proc.c  Borislav Petkov   2014-06-24  104  	for (i = 0; i < 32*NBUGINTS; i++) {
80a208bd arch/x86/kernel/cpu/proc.c  Borislav Petkov   2014-06-24  105  		unsigned int bug_bit = 32*NCAPINTS + i;
80a208bd arch/x86/kernel/cpu/proc.c  Borislav Petkov   2014-06-24  106  
80a208bd arch/x86/kernel/cpu/proc.c  Borislav Petkov   2014-06-24  107  		if (cpu_has_bug(c, bug_bit) && x86_bug_flags[i])
80a208bd arch/x86/kernel/cpu/proc.c  Borislav Petkov   2014-06-24  108  			seq_printf(m, " %s", x86_bug_flags[i]);
80a208bd arch/x86/kernel/cpu/proc.c  Borislav Petkov   2014-06-24  109  	}
80a208bd arch/x86/kernel/cpu/proc.c  Borislav Petkov   2014-06-24  110  
f84c3a42 arch/x86/kernel/cpu/proc.c  Hiroshi Shimamoto 2008-02-20  111  	seq_printf(m, "\nbogomips\t: %lu.%02lu\n",
f84c3a42 arch/x86/kernel/cpu/proc.c  Hiroshi Shimamoto 2008-02-20  112  		   c->loops_per_jiffy/(500000/HZ),
f84c3a42 arch/x86/kernel/cpu/proc.c  Hiroshi Shimamoto 2008-02-20  113  		   (c->loops_per_jiffy/(5000/HZ)) % 100);
2aef7720 arch/x86/kernel/cpu/proc.c  Hiroshi Shimamoto 2008-02-20  114  

:::::: The code at line 81 was first introduced by commit
:::::: 2e3c624e3ef6e43cdad6f39b6acef65cf29920c3 origin

:::::: TO: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
:::::: CC: Johannes Weiner <hannes@xxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]
  Powered by Linux