From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753051AbZGOHht (ORCPT ); Wed, 15 Jul 2009 03:37:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753046AbZGOHhs (ORCPT ); Wed, 15 Jul 2009 03:37:48 -0400 Received: from mga09.intel.com ([134.134.136.24]:53233 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752970AbZGOHhr (ORCPT ); Wed, 15 Jul 2009 03:37:47 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.42,403,1243839600"; d="scan'208";a="532942077" Subject: [PATCH 1/8] fix a build error when including linux/async.h in another header file From: Zhang Rui To: Linux Kernel Mailing List , linux-pm , linux-acpi Cc: Len Brown , Pavel Machek , "Rafael J. Wysocki" , "Van De Ven, Arjan" , "Zhang, Rui" Content-Type: text/plain; charset=UTF-8 Date: Wed, 15 Jul 2009 15:38:35 +0800 Message-Id: <1247643515.26272.76.camel@rzhang-dt> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1 (2.22.1-2.fc9) Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 #include @@ -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_ */