[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20121104021539.GA12616@localhost>
Date: Sun, 4 Nov 2012 10:15:39 +0800
From: Fengguang Wu <fengguang.wu@...el.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Yoshinori Sato <ysato@...rs.sourceforge.jp>,
LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] h8300: add missing L1_CACHE_SHIFT
To fix build error
lib/atomic64.c: In function 'lock_addr':
lib/atomic64.c:40:11: error: 'L1_CACHE_SHIFT' undeclared (first use in this function)
lib/atomic64.c:40:11: note: each undeclared identifier is reported only once for each function it appears in
Signed-off-by: Fengguang Wu <fengguang.wu@...el.com>
---
arch/h8300/include/asm/cache.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- linux-next.orig/arch/h8300/include/asm/cache.h 2012-11-04 09:52:43.852745306 +0800
+++ linux-next/arch/h8300/include/asm/cache.h 2012-11-04 09:53:09.652745920 +0800
@@ -2,7 +2,8 @@
#define __ARCH_H8300_CACHE_H
/* bytes per L1 cache line */
-#define L1_CACHE_BYTES 4
+#define L1_CACHE_SHIFT 2
+#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
/* m68k-elf-gcc 2.95.2 doesn't like these */
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists