*/
 static int opa_pr_query_possible(struct ib_sa_client *client,
                                 struct ib_sa_device *sa_dev,
-                                struct ib_device *device, u32 port_num,
-                                struct sa_path_rec *rec)
+                                struct ib_device *device, u32 port_num)
 {
        struct ib_port_attr port_attr;
 
 
        query->sa_query.port     = port;
        if (rec->rec_type == SA_PATH_REC_TYPE_OPA) {
-               status = opa_pr_query_possible(client, sa_dev, device, port_num,
-                                              rec);
+               status = opa_pr_query_possible(client, sa_dev, device, port_num);
                if (status == PR_NOT_SUPPORTED) {
                        ret = -EINVAL;
                        goto err1;