Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262934AbTE0JJg (ORCPT ); Tue, 27 May 2003 05:09:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262903AbTE0JJN (ORCPT ); Tue, 27 May 2003 05:09:13 -0400 Received: from TYO202.gate.nec.co.jp ([202.32.8.202]:36743 "EHLO TYO202.gate.nec.co.jp") by vger.kernel.org with ESMTP id S262964AbTE0JIb (ORCPT ); Tue, 27 May 2003 05:08:31 -0400 To: Linus Torvalds Subject: [PATCH][v850] Add __KERNEL__ guard to nb85e_cache.h on v850 Cc: linux-kernel@vger.kernel.org Reply-To: Miles Bader Message-Id: <20030527092132.EA0CD372D@mcspd15.ucom.lsi.nec.co.jp> Date: Tue, 27 May 2003 18:21:32 +0900 (JST) From: miles@lsi.nec.co.jp (Miles Bader) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1211 Lines: 29 This header ends up getting included by uClibc (though nothing in it is used), so this protection is necessary to avoid problems with kernel-only typedefs. diff -ruN -X../cludes linux-2.5.70/include/asm-v850/nb85e_cache.h linux-2.5.70-v850-20030527/include/asm-v850/nb85e_cache.h --- linux-2.5.70/include/asm-v850/nb85e_cache.h 2003-04-21 10:53:17.000000000 +0900 +++ linux-2.5.70-v850-20030527/include/asm-v850/nb85e_cache.h 2003-05-27 16:09:43.000000000 +0900 @@ -35,7 +35,7 @@ #define L1_CACHE_BYTES NB85E_CACHE_LINE_SIZE -#ifndef __ASSEMBLY__ +#if defined(__KERNEL__) && !defined(__ASSEMBLY__) /* Set caching params via the BHC and DCC registers. */ void nb85e_cache_enable (u16 bhc, u16 dcc); @@ -73,6 +74,6 @@ #define flush_icache_user_range nb85e_cache_flush_icache_user_range #define flush_cache_sigtramp nb85e_cache_flush_sigtramp -#endif /* !__ASSEMBLY__ */ +#endif /* __KERNEL__ && !__ASSEMBLY__ */ #endif /* __V850_NB85E_CACHE_H__ */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/