* linux-next: build failure after merge of the edac-amd tree
@ 2015-06-01 7:07 Stephen Rothwell
2015-06-01 9:51 ` Borislav Petkov
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2015-06-01 7:07 UTC (permalink / raw)
To: Borislav Petkov; +Cc: linux-next, linux-kernel, Loc Ho, Arnd Bergmann
[-- Attachment #1: Type: text/plain, Size: 1924 bytes --]
Hi Borislav,
After merging the edac-amd tree, today's linux-next build (x86_64
allmodconfig) failed like this:
drivers/edac/xgene_edac.c: In function 'xgene_edac_pmd_l2c_version1':
drivers/edac/xgene_edac.c:792:2: error: implicit declaration of function 'MIDR_VARIANT' [-Werror=implicit-function-declaration]
switch (MIDR_VARIANT(read_cpuid_id())) {
^
drivers/edac/xgene_edac.c:792:2: error: implicit declaration of function 'read_cpuid_id' [-Werror=implicit-function-declaration]
drivers/edac/xgene_edac.c:794:3: error: implicit declaration of function 'MIDR_REVISION' [-Werror=implicit-function-declaration]
switch (MIDR_REVISION(read_cpuid_id())) {
^
drivers/edac/xgene_edac.c:797:4: error: implicit declaration of function 'read_cpuid' [-Werror=implicit-function-declaration]
switch (REVIDR_MINOR_REV(read_cpuid(REVIDR_EL1))) {
^
drivers/edac/xgene_edac.c:797:40: error: 'REVIDR_EL1' undeclared (first use in this function)
switch (REVIDR_MINOR_REV(read_cpuid(REVIDR_EL1))) {
^
drivers/edac/xgene_edac.c:790:37: note: in definition of macro 'REVIDR_MINOR_REV'
#define REVIDR_MINOR_REV(revidr) ((revidr) & 0x00000007)
^
drivers/edac/xgene_edac.c:797:40: note: each undeclared identifier is reported only once for each function it appears in
switch (REVIDR_MINOR_REV(read_cpuid(REVIDR_EL1))) {
^
drivers/edac/xgene_edac.c:790:37: note: in definition of macro 'REVIDR_MINOR_REV'
#define REVIDR_MINOR_REV(revidr) ((revidr) & 0x00000007)
^
Caused by commit ("EDAC: Add APM X-Gene SoC EDAC driver"). You can't
use COMPIlE_TEST for drivers that use arch specific APIs ...
I have used the edac-amd tree from next-20150529 for today.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: linux-next: build failure after merge of the edac-amd tree
2015-06-01 7:07 linux-next: build failure after merge of the edac-amd tree Stephen Rothwell
@ 2015-06-01 9:51 ` Borislav Petkov
2015-06-01 14:36 ` Arnd Bergmann
0 siblings, 1 reply; 3+ messages in thread
From: Borislav Petkov @ 2015-06-01 9:51 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Borislav Petkov, linux-next, linux-kernel, Loc Ho, Arnd Bergmann
On Mon, Jun 01, 2015 at 05:07:42PM +1000, Stephen Rothwell wrote:
> Hi Borislav,
>
> After merging the edac-amd tree, today's linux-next build (x86_64
> allmodconfig) failed like this:
>
> drivers/edac/xgene_edac.c: In function 'xgene_edac_pmd_l2c_version1':
> drivers/edac/xgene_edac.c:792:2: error: implicit declaration of function 'MIDR_VARIANT' [-Werror=implicit-function-declaration]
> switch (MIDR_VARIANT(read_cpuid_id())) {
> ^
> drivers/edac/xgene_edac.c:792:2: error: implicit declaration of function 'read_cpuid_id' [-Werror=implicit-function-declaration]
> drivers/edac/xgene_edac.c:794:3: error: implicit declaration of function 'MIDR_REVISION' [-Werror=implicit-function-declaration]
> switch (MIDR_REVISION(read_cpuid_id())) {
> ^
> drivers/edac/xgene_edac.c:797:4: error: implicit declaration of function 'read_cpuid' [-Werror=implicit-function-declaration]
> switch (REVIDR_MINOR_REV(read_cpuid(REVIDR_EL1))) {
> ^
> drivers/edac/xgene_edac.c:797:40: error: 'REVIDR_EL1' undeclared (first use in this function)
> switch (REVIDR_MINOR_REV(read_cpuid(REVIDR_EL1))) {
> ^
> drivers/edac/xgene_edac.c:790:37: note: in definition of macro 'REVIDR_MINOR_REV'
> #define REVIDR_MINOR_REV(revidr) ((revidr) & 0x00000007)
> ^
> drivers/edac/xgene_edac.c:797:40: note: each undeclared identifier is reported only once for each function it appears in
> switch (REVIDR_MINOR_REV(read_cpuid(REVIDR_EL1))) {
> ^
> drivers/edac/xgene_edac.c:790:37: note: in definition of macro 'REVIDR_MINOR_REV'
> #define REVIDR_MINOR_REV(revidr) ((revidr) & 0x00000007)
> ^
>
> Caused by commit ("EDAC: Add APM X-Gene SoC EDAC driver"). You can't
> use COMPIlE_TEST for drivers that use arch specific APIs ...
Yeah, the COMPIlE_TEST thing was not such a good idea, after all.
Let's kill it:
---
From: Borislav Petkov <bp@suse.de>
Date: Mon, 1 Jun 2015 11:16:36 +0200
Subject: [PATCH] EDAC, xgene: Drop COMPILE_TEST
Stephen Rothwell reported that x86_64 allmodconfig breaks for him in the
xgene driver. Problem is, it was supposed to be compile-tested for build
coverage on other arches but it uses arch-specific facilities and thus
cannot really be compiled on those other arches.
Remove that dependency.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Loc Ho <lho@apm.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Link: http://lkml.kernel.org/r/20150601170742.626210ef@canb.auug.org.au
Signed-off-by: Borislav Petkov <bp@suse.de>
---
drivers/edac/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/edac/Kconfig b/drivers/edac/Kconfig
index 8677ead2a8e1..1b9f995e353c 100644
--- a/drivers/edac/Kconfig
+++ b/drivers/edac/Kconfig
@@ -395,7 +395,7 @@ config EDAC_SYNOPSYS
config EDAC_XGENE
tristate "APM X-Gene SoC"
- depends on EDAC_MM_EDAC && (ARM64 || COMPILE_TEST)
+ depends on EDAC_MM_EDAC && ARM64
help
Support for error detection and correction on the
APM X-Gene family of SOCs.
--
2.3.5
--
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
--
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: linux-next: build failure after merge of the edac-amd tree
2015-06-01 9:51 ` Borislav Petkov
@ 2015-06-01 14:36 ` Arnd Bergmann
0 siblings, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2015-06-01 14:36 UTC (permalink / raw)
To: Borislav Petkov
Cc: Stephen Rothwell, Borislav Petkov, linux-next, linux-kernel,
Loc Ho
On Monday 01 June 2015 11:51:27 Borislav Petkov wrote:
> On Mon, Jun 01, 2015 at 05:07:42PM +1000, Stephen Rothwell wrote:
> > Hi Borislav,
> >
> > After merging the edac-amd tree, today's linux-next build (x86_64
> > allmodconfig) failed like this:
> >
> > drivers/edac/xgene_edac.c: In function 'xgene_edac_pmd_l2c_version1':
> > drivers/edac/xgene_edac.c:792:2: error: implicit declaration of function 'MIDR_VARIANT' [-Werror=implicit-function-declaration]
> > switch (MIDR_VARIANT(read_cpuid_id())) {
> > ^
> > drivers/edac/xgene_edac.c:792:2: error: implicit declaration of function 'read_cpuid_id' [-Werror=implicit-function-declaration]
> > drivers/edac/xgene_edac.c:794:3: error: implicit declaration of function 'MIDR_REVISION' [-Werror=implicit-function-declaration]
> > switch (MIDR_REVISION(read_cpuid_id())) {
> > ^
> > drivers/edac/xgene_edac.c:797:4: error: implicit declaration of function 'read_cpuid' [-Werror=implicit-function-declaration]
> > switch (REVIDR_MINOR_REV(read_cpuid(REVIDR_EL1))) {
> > ^
> > drivers/edac/xgene_edac.c:797:40: error: 'REVIDR_EL1' undeclared (first use in this function)
> > switch (REVIDR_MINOR_REV(read_cpuid(REVIDR_EL1))) {
> > ^
> > drivers/edac/xgene_edac.c:790:37: note: in definition of macro 'REVIDR_MINOR_REV'
> > #define REVIDR_MINOR_REV(revidr) ((revidr) & 0x00000007)
> > ^
> > drivers/edac/xgene_edac.c:797:40: note: each undeclared identifier is reported only once for each function it appears in
> > switch (REVIDR_MINOR_REV(read_cpuid(REVIDR_EL1))) {
> > ^
> > drivers/edac/xgene_edac.c:790:37: note: in definition of macro 'REVIDR_MINOR_REV'
> > #define REVIDR_MINOR_REV(revidr) ((revidr) & 0x00000007)
> > ^
> >
> > Caused by commit ("EDAC: Add APM X-Gene SoC EDAC driver"). You can't
> > use COMPIlE_TEST for drivers that use arch specific APIs ...
>
> Yeah, the COMPIlE_TEST thing was not such a good idea, after all.
>
At least it should have been tested.
Can we instead just kill the CPUID check? It has absolutely no business
in a device driver like this, and the driver should be made to build
fine on all architectures.
Arnd
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-06-01 14:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-01 7:07 linux-next: build failure after merge of the edac-amd tree Stephen Rothwell
2015-06-01 9:51 ` Borislav Petkov
2015-06-01 14:36 ` Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).