IB/core: Pass hardware specific data in query_device
[sfrench/cifs-2.6.git] / drivers / infiniband / hw / amso1100 / c2_provider.c
index 8ea569f2cfa687dc56b4172015ca23e23db8a069..adfcef0946f73fed3180eb42a056c8a11db2f689 100644 (file)
 #include "c2_provider.h"
 #include "c2_user.h"
 
-static int c2_query_device(struct ib_device *ibdev,
-                          struct ib_device_attr *props)
+static int c2_query_device(struct ib_device *ibdev, struct ib_device_attr *props,
+                          struct ib_udata *uhw)
 {
        struct c2_dev *c2dev = to_c2dev(ibdev);
 
        pr_debug("%s:%u\n", __func__, __LINE__);
 
+       if (uhw->inlen || uhw->outlen)
+               return -EINVAL;
+
        *props = c2dev->props;
        return 0;
 }