[PATCH 1/8] fix a build error when including linux/async.h inanother header file

From: Zhang Rui
Date: Wed Jul 15 2009 - 03:37:55 EST



include/linux/async.h:16: error: redefinition of typedef âasync_cookie_tâ
include/linux/async.h:16: error: previous declaration of âasync_cookie_tâ was here
include/linux/async.h:17: error: redefinition of typedef âasync_func_ptrâ
include/linux/async.h:17: error: previous declaration of âasync_func_ptrâ was here

fix a problem that include/linux/async.h can not be included in another header file

Signed-off-by: Zhang Rui <rui.zhang@xxxxxxxxx>
---
include/linux/async.h | 3 +++
1 file changed, 3 insertions(+)

Index: linux-2.6/include/linux/async.h
===================================================================
--- linux-2.6.orig/include/linux/async.h
+++ linux-2.6/include/linux/async.h
@@ -9,6 +9,8 @@
* as published by the Free Software Foundation; version 2
* of the License.
*/
+#ifndef _ASYNC_H_
+#define _ASYNC_H_

#include <linux/types.h>
#include <linux/list.h>
@@ -25,3 +27,4 @@ extern void async_synchronize_cookie(asy
extern void async_synchronize_cookie_domain(async_cookie_t cookie,
struct list_head *list);

+#endif /* _ASYNC_H_ */


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/