linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] h8300: add missing L1_CACHE_SHIFT
@ 2012-11-04  2:15 Fengguang Wu
  0 siblings, 0 replies; only message in thread
From: Fengguang Wu @ 2012-11-04  2:15 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Yoshinori Sato, LKML

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@intel.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 */
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-11-04  2:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-04  2:15 [PATCH] h8300: add missing L1_CACHE_SHIFT Fengguang Wu

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).