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: Len Brown <lenb@kernel.org>, Pavel Machek <pavel@suse.cz>,
"Rafael J. Wysocki" <rjw@sisk.pl>,
"Van De Ven, Arjan" <arjan.van.de.ven@intel.com>,
"Zhang, Rui" <rui.zhang@intel.com>
Subject: [PATCH 1/8] fix a build error when including linux/async.h in another header file
Date: Wed, 15 Jul 2009 15:38:35 +0800 [thread overview]
Message-ID: <1247643515.26272.76.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_ */
reply other threads:[~2009-07-15 7:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1247643515.26272.76.camel@rzhang-dt \
--to=rui.zhang@intel.com \
--cc=arjan.van.de.ven@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@suse.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).