build failure of current mmotm with skiroot_defconfig
Hi,
I've encountered the following error when building skyroot_defconfig with current mmotm tree:
make CONFIG_OF_ALL_DTBS=y CONFIG_DTC=y CROSS_COMPILE=/opt/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ARCH=powerpc vmlinux
...
CC arch/powerpc/kernel/dbell.o
In file included from arch/powerpc/kernel/dbell.c:20:arch/powerpc/include/asm/kvm_ppc.h: In function 'xics_on_xive':arch/powerpc/include/asm/kvm_ppc.h:625:9: error: implicit declaration of function 'xive_enabled'; did you mean 'eeh_enabled'? [-Werror=implicit-function-declaration]
return xive_enabled() && cpu_has_feature(CPU_FTR_HVMODE);
^~~~~~~~~~~~
eeh_enabledcc1: all warnings being treated as errorsscripts/Makefile.build:278: recipe for target 'arch/powerpc/kernel/dbell.o' failed make[3]: *** [arch/powerpc/kernel/dbell.o] Error 1 scripts/Makefile.build:493: recipe for target 'arch/powerpc/kernel' failed make[2]: *** [arch/powerpc/kernel] Error 2
Makefile:1049: recipe for target 'arch/powerpc' failed
make[1]: *** [arch/powerpc] Error 2
Signature · 2 lines
Sincerely yours, Mike.
Le 26/02/2019 à 09:12, Mike Rapoport a écrit :
Quoted 11 lines
Hi,
I've encountered the following error when building
skyroot_defconfigwith current mmotm tree:make
CONFIG_OF_ALL_DTBS=yCONFIG_DTC=yCROSS_COMPILE=/opt/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ARCH=powerpc vmlinux
...
CCarch/powerpc/kernel/dbell.o
In file included fromarch/powerpc/kernel/dbell.c:20:arch/powerpc/include/asm/kvm_ppc.h: In function 'xics_on_xive':arch/powerpc/include/asm/kvm_ppc.h:625:9: error: implicit declaration of function 'xive_enabled'; did you mean 'eeh_enabled'? [-Werror=implicit-function-declaration]
Quoted 3 lines
return xive_enabled() && cpu_has_feature(CPU_FTR_HVMODE);
^~~~~~~~~~~~
eeh_enabledI can neither find the above in arch/powerpc/include/asm/kvm_ppc.h in the powerpc tree, nor a patch removing it.
Where does that comes from ?
Christophe
Quoted 9 lines
cc1: all warnings being treated as errors
scripts/Makefile.build:278: recipe for target 'arch/powerpc/kernel/dbell.o' failed make[3]: *** [arch/powerpc/kernel/dbell.o] Error 1scripts/Makefile.build:493: recipe for target 'arch/powerpc/kernel' failed make[2]: *** [arch/powerpc/kernel] Error 2
Makefile:1049: recipe for target 'arch/powerpc' failed
make[1]: *** [arch/powerpc] Error 2
Quoted 18 lines · Christophe Leroy
Le 26/02/2019 à 09:12, Mike Rapoport a écrit :
Quoted 11 lines
Hi,
I've encountered the following error when building
skyroot_defconfigwith current mmotm tree:make
CONFIG_OF_ALL_DTBS=yCONFIG_DTC=yCROSS_COMPILE=/opt/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ARCH=powerpc vmlinux
...
CCarch/powerpc/kernel/dbell.o
In file included fromarch/powerpc/kernel/dbell.c:20:arch/powerpc/include/asm/kvm_ppc.h: In function 'xics_on_xive':arch/powerpc/include/asm/kvm_ppc.h:625:9: error: implicit declaration of function 'xive_enabled'; did you mean 'eeh_enabled'? [-Werror=implicit-function-declaration]Quoted 3 lines
return xive_enabled() && cpu_has_feature(CPU_FTR_HVMODE); ^~~~~~~~~~~~ eeh_enabled
Quoted 4 lines
I can neither find the above in
arch/powerpc/include/asm/kvm_ppc.hin the powerpc tree, nor a patch removing it.Where does that comes from ?
It's from current mmotm, probably some merge conflict...
Quoted 12 lines
Christophe
Quoted 9 lines
cc1: all warnings being treated as errors
scripts/Makefile.build:278: recipe for target 'arch/powerpc/kernel/dbell.o' failed make[3]: *** [arch/powerpc/kernel/dbell.o] Error 1scripts/Makefile.build:493: recipe for target 'arch/powerpc/kernel' failed make[2]: *** [arch/powerpc/kernel] Error 2
Makefile:1049: recipe for target 'arch/powerpc' failed
make[1]: *** [arch/powerpc] Error 2
Signature · 2 lines
Sincerely yours, Mike.
Quoted 19 lines · Mike Rapoport
Quoted 18 lines · Christophe Leroy
Le 26/02/2019 à 09:12, Mike Rapoport a écrit :
Quoted 14 lines
Hi,
I've encountered the following error when building
skyroot_defconfigwith current mmotm tree:make
CONFIG_OF_ALL_DTBS=yCONFIG_DTC=yCROSS_COMPILE=/opt/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ARCH=powerpc vmlinux
...
CCarch/powerpc/kernel/dbell.o
In file included fromarch/powerpc/kernel/dbell.c:20:arch/powerpc/include/asm/kvm_ppc.h: In function 'xics_on_xive':arch/powerpc/include/asm/kvm_ppc.h:625:9: error: implicit declaration of function 'xive_enabled'; did you mean 'eeh_enabled'? [-Werror=implicit-function-declaration]return xive_enabled() && cpu_has_feature(CPU_FTR_HVMODE); ^~~~~~~~~~~~ eeh_enabled
Quoted 6 lines
Quoted 4 lines
I can neither find the above in
arch/powerpc/include/asm/kvm_ppc.hin the powerpc tree, nor a patch removing it.Where does that comes from ?
It's from current mmotm, probably some merge conflict...
It's not a merge conflict; see http://patchwork.ozlabs.org/patch/1048584/
for the fix.
Paul.
Le 26/02/2019 à 23:24, Paul Mackerras a écrit :
Quoted 23 lines · Mike Rapoport
Quoted 22 lines · Christophe Leroy
Quoted 21 lines
Le 26/02/2019 à 09:12, Mike Rapoport a écrit :
Quoted 11 lines
Hi,
I've encountered the following error when building
skyroot_defconfigwith current mmotm tree:make
CONFIG_OF_ALL_DTBS=yCONFIG_DTC=yCROSS_COMPILE=/opt/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ARCH=powerpc vmlinux
...
CCarch/powerpc/kernel/dbell.o
In file included fromarch/powerpc/kernel/dbell.c:20:arch/powerpc/include/asm/kvm_ppc.h: In function 'xics_on_xive':arch/powerpc/include/asm/kvm_ppc.h:625:9: error: implicit declaration of function 'xive_enabled'; did you mean 'eeh_enabled'? [-Werror=implicit-function-declaration]Quoted 3 lines
return xive_enabled() && cpu_has_feature(CPU_FTR_HVMODE); ^~~~~~~~~~~~ eeh_enabledI can neither find the above in
arch/powerpc/include/asm/kvm_ppc.hin the powerpc tree, nor a patch removing it.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Where does that comes from ?
It's from current mmotm, probably some merge conflict...
It's not a merge conflict; see http://patchwork.ozlabs.org/patch/1048584/
for the fix.
Why not include asm/xive.h all the time, as it defines xive_enabled() for when CONFIG_PPC_XIVE is set and for when it is not set ?
Christophe
Quoted 28 lines · Christophe Leroy
Le 26/02/2019 à 23:24, Paul Mackerras a écrit :
Quoted 25 lines · Mike Rapoport
Quoted 24 lines · Christophe Leroy
Quoted 22 lines
Le 26/02/2019 à 09:12, Mike Rapoport a écrit :
Quoted 11 lines
Hi,
I've encountered the following error when building
skyroot_defconfigwith current mmotm tree:make
CONFIG_OF_ALL_DTBS=yCONFIG_DTC=yCROSS_COMPILE=/opt/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ARCH=powerpc vmlinux
...
CCarch/powerpc/kernel/dbell.o
In file included fromarch/powerpc/kernel/dbell.c:20:arch/powerpc/include/asm/kvm_ppc.h: In function 'xics_on_xive':arch/powerpc/include/asm/kvm_ppc.h:625:9: error: implicit declaration of function 'xive_enabled'; did you mean 'eeh_enabled'? [-Werror=implicit-function-declaration]Quoted 3 lines
return xive_enabled() && cpu_has_feature(CPU_FTR_HVMODE); ^~~~~~~~~~~~ eeh_enabledI can neither find the above in
arch/powerpc/include/asm/kvm_ppc.hin the powerpc tree, nor a patch removing it.Where does that comes from ?
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
It's from current mmotm, probably some merge conflict...
It's not a merge conflict; see http://patchwork.ozlabs.org/patch/1048584/
for the fix.Why not include
asm/xive.hall the time, as it definesxive_enabled()for whenCONFIG_PPC_XIVEis set and for when it is not set ?
I wasn't sure it wouldn't break the build for 32-bit configs.
Paul.