From patchwork Tue Dec 11 10:09:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Garrett Cooper X-Patchwork-Id: 1861431 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 7B0513FCA5 for ; Tue, 11 Dec 2012 10:09:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752112Ab2LKKJY (ORCPT ); Tue, 11 Dec 2012 05:09:24 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:58082 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751821Ab2LKKJY (ORCPT ); Tue, 11 Dec 2012 05:09:24 -0500 Received: by mail-pa0-f46.google.com with SMTP id bh2so2769998pad.19 for ; Tue, 11 Dec 2012 02:09:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:user-agent:mime-version :content-type; bh=d62Uayo2AyPobuDJq2wCD0cTOed5+QNCmcLyMM+m7ro=; b=HCRF2+H1MH0UEvEcASJX7xr04guzMx/lfqKXsh3UTZo/q93Pk+MhBa3RJLI/O24TVc 4w61TvZD71WiE+com2K0GsJ7EnWaCo5SOYdlm9ehQRcR9mNckdmx1um3q9tUcm+tPVqb hYYAexyqGGCHdRXL59aX/8BZaIOh/P+ADmCsWH+S8eEK2CO6cg491qv+qAs3gmwALjJZ RDsWcxB8m8LwDECdIpiwSta3cy6nMQ4EWwiAYiaJGd2fSaAaRhoZcae8NdNQoFu0WBbY AlwqjtBD+SUbVMJbVUEqdSPZzCBmqz2qZJTKFK2CMjqFSsLBMPS2ZoIRo/ZGvkseE3K0 /e9g== Received: by 10.66.87.42 with SMTP id u10mr43532152paz.62.1355220563854; Tue, 11 Dec 2012 02:09:23 -0800 (PST) Received: from c-24-19-191-56.hsd1.wa.comcast.net (c-24-19-191-56.hsd1.wa.comcast.net. [24.19.191.56]) by mx.google.com with ESMTPS id sy1sm13511407pbc.66.2012.12.11.02.09.22 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 11 Dec 2012 02:09:23 -0800 (PST) Date: Tue, 11 Dec 2012 02:09:13 -0800 (PST) From: Garrett Cooper To: linux-rdma@vger.kernel.org Subject: [PATCH 3/3] Fixlinker error with clang with -O < 2 Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org The previous function definition was incorrect per c99 and is silently ignored with gcc and is optimized away with clang and optimization levels < 2. Signed-off-by: Garrett Cooper --- osmtest/osmtest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osmtest/osmtest.c b/osmtest/osmtest.c index 68b0e40..717c864 100644 --- a/osmtest/osmtest.c +++ b/osmtest/osmtest.c @@ -3068,7 +3068,8 @@ Exit: return (status); } -inline uint32_t osmtest_path_rec_key_get(IN const ib_path_rec_t * const p_rec) +static inline uint32_t +osmtest_path_rec_key_get(IN const ib_path_rec_t * const p_rec) { return (p_rec->dlid << 16 | p_rec->slid); }