* [PATCH] [ASYNC_TX] don't include <asm/> headers
@ 2008-04-26 15:48 Sebastian Siewior
2008-04-30 6:42 ` Dan Williams
0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Siewior @ 2008-04-26 15:48 UTC (permalink / raw)
To: Dan Williams; +Cc: Maciej Sosnowski, linux-kernel
From: Sebastian Siewior <sebastian@breakpoint.cc>
Including arch dependent header files from arch indepent .c code
causes randconfig builds to fail. This patch fixes build problems on
arches which are not tested by Adrian like m68knommu.
Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc>
---
arch/alpha/Kconfig | 1 +
arch/arm/Kconfig | 1 +
arch/ia64/Kconfig | 1 +
arch/sparc/Kconfig | 1 +
arch/sparc64/Kconfig | 2 ++
arch/x86/Kconfig | 2 +-
crypto/Kconfig | 3 +++
crypto/xor.c | 1 -
include/asm-avr32/xor.h | 6 ------
include/asm-frv/xor.h | 1 -
include/asm-m32r/xor.h | 6 ------
include/asm-m68k/xor.h | 1 -
include/asm-mips/xor.h | 1 -
include/asm-mn10300/xor.h | 1 -
include/asm-parisc/xor.h | 1 -
include/asm-powerpc/xor.h | 1 -
include/asm-s390/xor.h | 1 -
include/asm-sh/xor.h | 1 -
include/asm-um/xor.h | 6 ------
include/asm-xtensa/xor.h | 16 ----------------
include/linux/raid/xor.h | 6 ++++++
21 files changed, 16 insertions(+), 44 deletions(-)
delete mode 100644 include/asm-avr32/xor.h
delete mode 100644 include/asm-frv/xor.h
delete mode 100644 include/asm-m32r/xor.h
delete mode 100644 include/asm-m68k/xor.h
delete mode 100644 include/asm-mips/xor.h
delete mode 100644 include/asm-mn10300/xor.h
delete mode 100644 include/asm-parisc/xor.h
delete mode 100644 include/asm-powerpc/xor.h
delete mode 100644 include/asm-s390/xor.h
delete mode 100644 include/asm-sh/xor.h
delete mode 100644 include/asm-um/xor.h
delete mode 100644 include/asm-xtensa/xor.h
diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig
index 729cdbd..04b318a 100644
--- a/arch/alpha/Kconfig
+++ b/arch/alpha/Kconfig
@@ -7,6 +7,7 @@ config ALPHA
default y
select HAVE_IDE
select HAVE_OPROFILE
+ select HAVE_ARCH_XOR
help
The Alpha is a 64-bit general-purpose processor designed and
marketed by the Digital Equipment Corporation of blessed memory,
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index d8d2532..fa22db3 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -13,6 +13,7 @@ config ARM
select HAVE_OPROFILE
select HAVE_KPROBES if (!XIP_KERNEL)
select HAVE_KRETPROBES if (HAVE_KPROBES)
+ select HAVE_ARCH_XOR
help
The ARM series is a line of low-power-consumption RISC chip designs
licensed by ARM Ltd and targeted at embedded applications and
diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig
index cd13e13..4b18d6e 100644
--- a/arch/ia64/Kconfig
+++ b/arch/ia64/Kconfig
@@ -19,6 +19,7 @@ config IA64
select HAVE_OPROFILE
select HAVE_KPROBES
select HAVE_KRETPROBES
+ select HAVE_ARCH_XOR
default y
help
The Itanium Processor Family is Intel's 64-bit successor to
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
index 49590f8..dd3e949 100644
--- a/arch/sparc/Kconfig
+++ b/arch/sparc/Kconfig
@@ -73,6 +73,7 @@ config SPARC
config SPARC32
bool
default y
+ select HAVE_ARCH_XOR
help
SPARC is a family of RISC microprocessors designed and marketed by
Sun Microsystems, incorporated. They are very widely found in Sun
diff --git a/arch/sparc64/Kconfig b/arch/sparc64/Kconfig
index 8acc5cc..ee659a8 100644
--- a/arch/sparc64/Kconfig
+++ b/arch/sparc64/Kconfig
@@ -11,12 +11,14 @@ config SPARC
select HAVE_OPROFILE
select HAVE_KPROBES
select HAVE_KRETPROBES
+ select HAVE_ARCH_XOR
config SPARC64
bool
default y
select HAVE_IDE
select HAVE_LMB
+ select HAVE_ARCH_XOR
help
SPARC is a family of RISC microprocessors designed and marketed by
Sun Microsystems, incorporated. This port covers the newer 64-bit
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 4d350b5..b43095f 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -24,7 +24,7 @@ config X86
select HAVE_KRETPROBES
select HAVE_KVM if ((X86_32 && !X86_VOYAGER && !X86_VISWS && !X86_NUMAQ) || X86_64)
select HAVE_ARCH_KGDB if !X86_VOYAGER
-
+ select HAVE_ARCH_XOR
config GENERIC_LOCKBREAK
def_bool n
diff --git a/crypto/Kconfig b/crypto/Kconfig
index 864456c..9a49abd 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -1,6 +1,9 @@
#
# Generic algorithms support
#
+config HAVE_ARCH_XOR
+ bool
+
config XOR_BLOCKS
tristate
diff --git a/crypto/xor.c b/crypto/xor.c
index b2e6db0..1992a34 100644
--- a/crypto/xor.c
+++ b/crypto/xor.c
@@ -20,7 +20,6 @@
#include <linux/module.h>
#include <linux/raid/md.h>
#include <linux/raid/xor.h>
-#include <asm/xor.h>
/* The xor routines to use. */
static struct xor_block_template *active_template;
diff --git a/include/asm-avr32/xor.h b/include/asm-avr32/xor.h
deleted file mode 100644
index 99c87aa..0000000
--- a/include/asm-avr32/xor.h
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef _ASM_XOR_H
-#define _ASM_XOR_H
-
-#include <asm-generic/xor.h>
-
-#endif
diff --git a/include/asm-frv/xor.h b/include/asm-frv/xor.h
deleted file mode 100644
index c82eb12..0000000
--- a/include/asm-frv/xor.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <asm-generic/xor.h>
diff --git a/include/asm-m32r/xor.h b/include/asm-m32r/xor.h
deleted file mode 100644
index 6d52525..0000000
--- a/include/asm-m32r/xor.h
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef _ASM_M32R_XOR_H
-#define _ASM_M32R_XOR_H
-
-#include <asm-generic/xor.h>
-
-#endif /* _ASM_M32R_XOR_H */
diff --git a/include/asm-m68k/xor.h b/include/asm-m68k/xor.h
deleted file mode 100644
index c82eb12..0000000
--- a/include/asm-m68k/xor.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <asm-generic/xor.h>
diff --git a/include/asm-mips/xor.h b/include/asm-mips/xor.h
deleted file mode 100644
index c82eb12..0000000
--- a/include/asm-mips/xor.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <asm-generic/xor.h>
diff --git a/include/asm-mn10300/xor.h b/include/asm-mn10300/xor.h
deleted file mode 100644
index c82eb12..0000000
--- a/include/asm-mn10300/xor.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <asm-generic/xor.h>
diff --git a/include/asm-parisc/xor.h b/include/asm-parisc/xor.h
deleted file mode 100644
index c82eb12..0000000
--- a/include/asm-parisc/xor.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <asm-generic/xor.h>
diff --git a/include/asm-powerpc/xor.h b/include/asm-powerpc/xor.h
deleted file mode 100644
index c82eb12..0000000
--- a/include/asm-powerpc/xor.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <asm-generic/xor.h>
diff --git a/include/asm-s390/xor.h b/include/asm-s390/xor.h
deleted file mode 100644
index c82eb12..0000000
--- a/include/asm-s390/xor.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <asm-generic/xor.h>
diff --git a/include/asm-sh/xor.h b/include/asm-sh/xor.h
deleted file mode 100644
index c82eb12..0000000
--- a/include/asm-sh/xor.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <asm-generic/xor.h>
diff --git a/include/asm-um/xor.h b/include/asm-um/xor.h
deleted file mode 100644
index a19db3e..0000000
--- a/include/asm-um/xor.h
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef __UM_XOR_H
-#define __UM_XOR_H
-
-#include "asm-generic/xor.h"
-
-#endif
diff --git a/include/asm-xtensa/xor.h b/include/asm-xtensa/xor.h
deleted file mode 100644
index e7b1f08..0000000
--- a/include/asm-xtensa/xor.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
- * include/asm-xtensa/xor.h
- *
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * Copyright (C) 2001 - 2005 Tensilica Inc.
- */
-
-#ifndef _XTENSA_XOR_H
-#define _XTENSA_XOR_H
-
-#include <asm-generic/xor.h>
-
-#endif
diff --git a/include/linux/raid/xor.h b/include/linux/raid/xor.h
index 3e12058..51e8ae9 100644
--- a/include/linux/raid/xor.h
+++ b/include/linux/raid/xor.h
@@ -21,4 +21,10 @@ struct xor_block_template {
unsigned long *, unsigned long *, unsigned long *);
};
+#ifdef CONFIG_HAVE_ARCH_XOR
+#include <asm/xor.h>
+#else
+#include <asm-generic/xor.h>
+#endif
+
#endif
--
1.5.4.5
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] [ASYNC_TX] don't include <asm/> headers
2008-04-26 15:48 [PATCH] [ASYNC_TX] don't include <asm/> headers Sebastian Siewior
@ 2008-04-30 6:42 ` Dan Williams
2008-05-09 8:39 ` Sebastian Siewior
0 siblings, 1 reply; 5+ messages in thread
From: Dan Williams @ 2008-04-30 6:42 UTC (permalink / raw)
To: Sebastian Siewior; +Cc: Maciej Sosnowski, linux-kernel
On Sat, Apr 26, 2008 at 8:48 AM, Sebastian Siewior
<lkml@ml.breakpoint.cc> wrote:
> From: Sebastian Siewior <sebastian@breakpoint.cc>
>
> Including arch dependent header files from arch indepent .c code
> causes randconfig builds to fail. This patch fixes build problems on
> arches which are not tested by Adrian like m68knommu.
>
> Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc>
Thanks, I'll push this out for testing in -next / -mm.
--
Dan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] [ASYNC_TX] don't include <asm/> headers
2008-04-30 6:42 ` Dan Williams
@ 2008-05-09 8:39 ` Sebastian Siewior
2008-05-09 18:55 ` Dan Williams
0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Siewior @ 2008-05-09 8:39 UTC (permalink / raw)
To: Dan Williams; +Cc: Maciej Sosnowski, linux-kernel
* Dan Williams | 2008-04-29 23:42:46 [-0700]:
>Thanks, I'll push this out for testing in -next / -mm.
I can't see this in current -next and I can't remember that I got an
email from Andrew.
>
>--
>Dan
Sebastian
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] [ASYNC_TX] don't include <asm/> headers
2008-05-09 8:39 ` Sebastian Siewior
@ 2008-05-09 18:55 ` Dan Williams
2008-05-09 22:14 ` Sebastian Siewior
0 siblings, 1 reply; 5+ messages in thread
From: Dan Williams @ 2008-05-09 18:55 UTC (permalink / raw)
To: Sebastian Siewior; +Cc: Maciej Sosnowski, linux-kernel
On Fri, May 9, 2008 at 1:39 AM, Sebastian Siewior <lkml@ml.breakpoint.cc> wrote:
> * Dan Williams | 2008-04-29 23:42:46 [-0700]:
>
>
> >Thanks, I'll push this out for testing in -next / -mm.
> I can't see this in current -next and I can't remember that I got an
> email from Andrew.
>
Hi Sebastian,
Yes I had put this in the background for awhile due to other issues.
I fixed up a few merge conflicts so that it will apply against the
current tree; however, the patch causes these new warnings:
include/asm/xor_32.h:513: warning: 'xor_block_pII_mmx' defined but not used
include/asm/xor_32.h:521: warning: 'xor_block_p5_mmx' defined but not used
include/asm/xor_32.h:853: warning: 'xor_block_pIII_sse' defined but not used
include/asm-generic/xor.h:680: warning: 'xor_block_8regs' defined but not used
include/asm-generic/xor.h:688: warning: 'xor_block_32regs' defined but not used
include/asm-generic/xor.h:696: warning: 'xor_block_8regs_p' defined but not used
include/asm-generic/xor.h:704: warning: 'xor_block_32regs_p' defined
but not used
It is not immediately clear why?
--
Dan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] [ASYNC_TX] don't include <asm/> headers
2008-05-09 18:55 ` Dan Williams
@ 2008-05-09 22:14 ` Sebastian Siewior
0 siblings, 0 replies; 5+ messages in thread
From: Sebastian Siewior @ 2008-05-09 22:14 UTC (permalink / raw)
To: Dan Williams; +Cc: Maciej Sosnowski, linux-kernel
* Dan Williams | 2008-05-09 11:55:25 [-0700]:
>On Fri, May 9, 2008 at 1:39 AM, Sebastian Siewior <lkml@ml.breakpoint.cc> wrote:
>> * Dan Williams | 2008-04-29 23:42:46 [-0700]:
>>
>>
>> >Thanks, I'll push this out for testing in -next / -mm.
>> I can't see this in current -next and I can't remember that I got an
>> email from Andrew.
>>
>
>Hi Sebastian,
Hi Dan,
>Yes I had put this in the background for awhile due to other issues.
No problem. If you queue this up for another two weeks than I have no
problem with it. I just wanted to make sure that you did not lose it :)
>I fixed up a few merge conflicts so that it will apply against the
>current tree; however, the patch causes these new warnings:
>
>include/asm/xor_32.h:513: warning: 'xor_block_pII_mmx' defined but not used
>include/asm/xor_32.h:521: warning: 'xor_block_p5_mmx' defined but not used
>include/asm/xor_32.h:853: warning: 'xor_block_pIII_sse' defined but not used
>include/asm-generic/xor.h:680: warning: 'xor_block_8regs' defined but not used
>include/asm-generic/xor.h:688: warning: 'xor_block_32regs' defined but not used
>include/asm-generic/xor.h:696: warning: 'xor_block_8regs_p' defined but not used
>include/asm-generic/xor.h:704: warning: 'xor_block_32regs_p' defined
>but not used
>
>It is not immediately clear why?
I'm not sure why I haven't seen this myself. crypto/xor.c is the only
user of those defines but linux/raid/xor.h is also included by
async_xor.c which does not use xor_block_pII_mmx & friends. The best
thing would be probably _not_ to merge those two header files like I did
but keep them separate. Maybe we could move this define directly into
crypto/xor.c since it is the only user?
Sebastian
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-05-09 22:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-26 15:48 [PATCH] [ASYNC_TX] don't include <asm/> headers Sebastian Siewior
2008-04-30 6:42 ` Dan Williams
2008-05-09 8:39 ` Sebastian Siewior
2008-05-09 18:55 ` Dan Williams
2008-05-09 22:14 ` Sebastian Siewior
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®