[openib-general] PATCH creation of ib_verbs.c file
Hal Rosenstock
halr at voltaire.com
Tue Aug 31 10:29:27 PDT 2004
On Tue, 2004-08-31 at 11:45, Sean Hefty wrote:
> Here's a patch to include all definitions in ib_verbs.h. I also renamed ib_free_fmr to
> ib_dealloc_fmr based on comments from Roland.
Here's another patch to this to define IS_ERR and also remove cast of
int to pointer in return from ib_create_srq.
Index: ib_verbs.c
===================================================================
--- ib_verbs.c (revision 704)
+++ ib_verbs.c (working copy)
@@ -23,7 +23,7 @@
Copyright (c) 2004 Voltaire Corporation. All rights reserved.
*/
-#include <linux/errno.h>
+#include <linux/err.h>
#include <ib_verbs.h>
struct ib_pd *ib_alloc_pd(struct ib_device *device)
@@ -141,7 +141,7 @@
struct ib_srq *srq;
if (!pd->device->create_srq)
- return -ENOSYS;
+ return ERR_PTR(-ENOSYS);
srq = pd->device->create_srq(pd, srq_context, srq_attr);
More information about the general
mailing list