[openib-general] [PATCH] iSER: add dma-mapping.h include
Roland Dreier
rolandd at cisco.com
Mon Nov 28 21:26:27 PST 2005
iSER uses enum dma_data_direction and other DMA API things without
including <linux/dma-mapping.h>. Therefore, the compilation fails for
architectures (eg sparc64) where that include does not get pulled in
implicitly because of other includes.
Signed-off-by: Roland Dreier <rolandd at cisco.com>
--- infiniband/ulp/iser/iser.h (revision 4186)
+++ infiniband/ulp/iser/iser.h (working copy)
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2004, 2005 Voltaire, Inc. All rights reserved.
+ * Copyright (c) 2005 Cisco Systems. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
@@ -38,6 +39,7 @@
#include <linux/sched.h>
#include <linux/list.h>
#include <linux/slab.h>
+#include <linux/dma-mapping.h>
#include "iser_api.h"
#include "iser_header.h"
More information about the general
mailing list