diff mbox

[V2,1/4] fix a problem that linux/async.h can not be included in another header file

Message ID 1248404520.2670.109.camel@rzhang-dt (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Zhang, Rui July 24, 2009, 3:02 a.m. UTC
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@intel.com>
---
 include/linux/async.h |    3 +++
 1 file changed, 3 insertions(+)



--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Pavel Machek July 24, 2009, 7:12 a.m. UTC | #1
On Fri 2009-07-24 11:02:00, Zhang Rui wrote:
> 
> 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@intel.com>

Acked-by: Pavel Machek <pavel@ucw.cz>
diff mbox

Patch

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_ */