From patchwork Tue Jul 23 01:19:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 2831657 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 920019F7D6 for ; Tue, 23 Jul 2013 01:20:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ADFB520206 for ; Tue, 23 Jul 2013 01:20:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 96E9A20163 for ; Tue, 23 Jul 2013 01:20:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752407Ab3GWBT7 (ORCPT ); Mon, 22 Jul 2013 21:19:59 -0400 Received: from mail-wg0-f48.google.com ([74.125.82.48]:58271 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752015Ab3GWBT6 (ORCPT ); Mon, 22 Jul 2013 21:19:58 -0400 Received: by mail-wg0-f48.google.com with SMTP id f11so6475688wgh.3 for ; Mon, 22 Jul 2013 18:19:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=P0auT4wg9gS570Xq2NxnCcMWKf45ZKiVYCh2tI3jq4M=; b=CGBaEpljs2x1PZPYX7/a+OffOIZORR655K1sB+cvHmfBuawlahuqAUCBnzdcueUobE SICQ2+TxSLm/2WMHft+BCpNDK/Bo9sTEoYXwq8Fvc5FlfM0PUgSSDQvTnOCW2H/wcVUK DJ2fQCIpUrKiB8T3Ykyh78saXndIdBJ0eRSX9JK1+qyI7OAW0D4PGh38yI7zWuwmTEZP lcuUeIjU7l9VKz30t888ZAF2FMXUIZ2KqEP/XSu3Wfn+AlZhcEWgHZn/f5DpEqUya8sF GQ1fZH6Mg2TqhY2UDT+H798Xq7fc0fvxunZ7ue/AK5begKJxyvb6EKAznv8LvuYfBkyn PxQA== X-Received: by 10.181.12.80 with SMTP id eo16mr31661958wid.44.1374542397739; Mon, 22 Jul 2013 18:19:57 -0700 (PDT) Received: from [192.168.1.102] (c-71-234-225-85.hsd1.ct.comcast.net. [71.234.225.85]) by mx.google.com with ESMTPSA id b20sm2438128wiw.4.2013.07.22.18.19.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Jul 2013 18:19:56 -0700 (PDT) Message-ID: <51EDDA34.5090204@dev.mellanox.co.il> Date: Mon, 22 Jul 2013 21:19:48 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: "linux-rdma (linux-rdma@vger.kernel.org)" CC: Eitan Zahavi , Alex Netes Subject: [PATCH opensm] libvendor/osm_pkt_randomizer.c: Fix broken compilation with vendor sim X-Gm-Message-State: ALoCoQkzbmusW3WB5yHyFGAzeSQhi2YM0UyCAfQv+tVxVuLkmx5jeBH8bSkiWv1TjH+HypzljgYq Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Due to change in number of args to osm_dr_path_init. Signed-off-by: Eitan Zahavi Signed-off-by: Alex Netes Signed-off-by: Hal Rosenstock --- -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/libvendor/osm_pkt_randomizer.c b/libvendor/osm_pkt_randomizer.c index cfc5a8f..5ea1f4a 100644 --- a/libvendor/osm_pkt_randomizer.c +++ b/libvendor/osm_pkt_randomizer.c @@ -234,8 +234,7 @@ osm_pkt_randomizer_mad_drop(IN osm_log_t * p_log, /* This is a lid route mad. Don't drop it */ goto Exit; - osm_dr_path_init(&dr_path, 0, /* The h_bind is not really important for us to save */ - p_smp->hop_count, p_smp->initial_path); + osm_dr_path_init(&dr_path, p_smp->hop_count, p_smp->initial_path); if (__osm_pkt_randomizer_process_path (p_log, p_pkt_randomizer, &dr_path)) {