Thread (10 messages) 10 messages, 4 authors, 2020-03-25

Re: linux-next: Tree for Mar 25 (arch/x86/kvm/)

From: Randy Dunlap <hidden>
Date: 2020-03-25 15:30:24
Also in: lkml

On 3/25/20 1:53 AM, Stephen Rothwell wrote:
Hi all,

Changes since 20200324:

on i386 randconfig build:
and gcc 7.5.0:

24 (only showing one of them here) BUILD_BUG() errors in arch/x86/kvm/cpuid.h
function __cpuid_entry_get_reg(), for the default: case.


  CC      arch/x86/kvm/cpuid.o
In file included from ../include/linux/export.h:43:0,
                 from ../include/linux/linkage.h:7,
                 from ../include/linux/preempt.h:10,
                 from ../include/linux/hardirq.h:5,
                 from ../include/linux/kvm_host.h:7,
                 from ../arch/x86/kvm/cpuid.c:12:
In function ‘__cpuid_entry_get_reg’,
    inlined from ‘kvm_cpu_cap_mask’ at ../arch/x86/kvm/cpuid.c:272:25,
    inlined from ‘kvm_set_cpu_caps’ at ../arch/x86/kvm/cpuid.c:292:2:
../include/linux/compiler.h:394:38: error: call to ‘__compiletime_assert_114’ declared with attribute error: BUILD_BUG failed
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
                                      ^
../include/linux/compiler.h:375:4: note: in definition of macro ‘__compiletime_assert’
    prefix ## suffix();    \
    ^~~~~~
../include/linux/compiler.h:394:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^~~~~~~~~~~~~~~~~~~
../include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^~~~~~~~~~~~~~~~~~
../include/linux/build_bug.h:59:21: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
 #define BUILD_BUG() BUILD_BUG_ON_MSG(1, "BUILD_BUG failed")
                     ^~~~~~~~~~~~~~~~
../arch/x86/kvm/cpuid.h:114:3: note: in expansion of macro ‘BUILD_BUG’
   BUILD_BUG();
   ^~~~~~~~~


Full randconfig file is attached.

-- 
~Randy
Reported-by: Randy Dunlap <redacted>

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help