* [PATCH -mm] Blackfin arch: cleanup cache header file
@ 2007-03-26 10:11 Wu, Bryan
2007-03-26 11:28 ` Paul Mundt
0 siblings, 1 reply; 2+ messages in thread
From: Wu, Bryan @ 2007-03-26 10:11 UTC (permalink / raw)
To: Andrew Morton, Arnd Bergmann, Paul Mundt, linux-kernel
Hi folks,
According to Paul's review, this patch cleanup the
include/asm-blackfin/cache.h comments.
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
---
include/asm-blackfin/cache.h | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
Index: linux-2.6/include/asm-blackfin/cache.h
===================================================================
--- linux-2.6.orig/include/asm-blackfin/cache.h
+++ linux-2.6/include/asm-blackfin/cache.h
@@ -1,13 +1,21 @@
+/*
+ * include/asm-blackfin/cache.h
+ */
#ifndef __ARCH_BLACKFIN_CACHE_H
#define __ARCH_BLACKFIN_CACHE_H
-/* bytes per L1 cache line */
-#define L1_CACHE_SHIFT 5 /* BlackFin loads 32 bytes for cache */
-#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
+/*
+ * Bytes per L1 cache line
+ * Blackfin loads 32 bytes for cache
+ */
+#define L1_CACHE_SHIFT 5
+#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
-/* For speed we do need to align these ...MaTed---*/
-/* But include/linux/cache.h does this for us if we DO not define ...MaTed---*/
-#define __cacheline_aligned /***** maybe no need this Tony *****/
+/*
+ * Don't make __cacheline_aligned and
+ * ____cacheline_aligned defined in include/linux/cache.h
+ */
+#define __cacheline_aligned
#define ____cacheline_aligned
/*
_
Thanks
-Bryan
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH -mm] Blackfin arch: cleanup cache header file
2007-03-26 10:11 [PATCH -mm] Blackfin arch: cleanup cache header file Wu, Bryan
@ 2007-03-26 11:28 ` Paul Mundt
0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2007-03-26 11:28 UTC (permalink / raw)
To: Wu, Bryan; +Cc: Andrew Morton, Arnd Bergmann, linux-kernel
On Mon, Mar 26, 2007 at 06:11:42PM +0800, Wu, Bryan wrote:
> +#define L1_CACHE_SHIFT 5
> +#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
>
> -/* For speed we do need to align these ...MaTed---*/
> -/* But include/linux/cache.h does this for us if we DO not define ...MaTed---*/
> -#define __cacheline_aligned /***** maybe no need this Tony *****/
> +/*
> + * Don't make __cacheline_aligned and
> + * ____cacheline_aligned defined in include/linux/cache.h
> + */
> +#define __cacheline_aligned
> #define ____cacheline_aligned
>
You still don't need this. Ancient versions of gcc had problems with the
attribute, but it's not even possible to build the kernel with those
anymore. Please remove these and try again. You can simply alias
SMP_CACHE_BYTES to L1_CACHE_BYTES if you've left this in due to the
resulting build failure.
m68knommu seems to be another user that never got cleaned up, perhaps
it's a good time to kill that off too..
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-26 11:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-26 10:11 [PATCH -mm] Blackfin arch: cleanup cache header file Wu, Bryan
2007-03-26 11:28 ` Paul Mundt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.