From: Zhang Rui <rui.zhang@intel.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
linux-pm <linux-pm@lists.linux-foundation.org>,
linux-acpi <linux-acpi@vger.kernel.org>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>, Pavel Machek <pavel@ucw.cz>,
Len Brown <lenb@kernel.org>,
Arjan van de Ven <arjan@linux.intel.com>,
"Zhang, Rui" <rui.zhang@intel.com>
Subject: [PATCH V2 1/4] fix a problem that linux/async.h can not be included in another header file
Date: Fri, 24 Jul 2009 11:02:00 +0800 [thread overview]
Message-ID: <1248404520.2670.109.camel@rzhang-dt> (raw)
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(+)
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_ */
next reply other threads:[~2009-07-24 3:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-24 3:02 Zhang Rui [this message]
2009-07-24 7:12 ` [PATCH V2 1/4] fix a problem that linux/async.h can not be included in another header file Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1248404520.2670.109.camel@rzhang-dt \
--to=rui.zhang@intel.com \
--cc=arjan@linux.intel.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=pavel@ucw.cz \
--cc=rjw@sisk.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).