From patchwork Fri Jan 18 12:46:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Apfelbaum X-Patchwork-Id: 1027317 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="PfhLu9up"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43h15R2lhDz9sBn for ; Fri, 18 Jan 2019 23:50:51 +1100 (AEDT) Received: from localhost ([127.0.0.1]:38273 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkTbk-0006EO-B0 for incoming@patchwork.ozlabs.org; Fri, 18 Jan 2019 07:50:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkTXm-0003W2-B8 for qemu-devel@nongnu.org; Fri, 18 Jan 2019 07:46:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gkTXj-0008CI-KU for qemu-devel@nongnu.org; Fri, 18 Jan 2019 07:46:42 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:40795) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gkTXh-00082i-EU; Fri, 18 Jan 2019 07:46:37 -0500 Received: by mail-wm1-x329.google.com with SMTP id f188so4358761wmf.5; Fri, 18 Jan 2019 04:46:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Lm5lCPSlzmXUGCpBAhF/12+BhwrfWjv0raLXdgNb6sY=; b=PfhLu9upjB8oV/MXNyytqd5DsK/IHzIbiWm/HAsYsDusa62W2EMdOUTGdho8i5qtui MK0Jv2A+CZoDy5DgiIZdhujwZcUlxK28mUsi0FHNJYUXFaPPsg2YHR7e94E3lm2JJEmr Wf8J9WVYNl2KkwWql47dAHvYLwsZJMbaquyC9Lf/0z2ZqO7jObeFnQuULxLtd3uGrMxW 3Z28K3u73SPXtMlwJsYVSKB9GoYpDQx/V0ZlxloYs0Sb7SuVwcm3tJm5Mbe2SGQx8Efe 4RNEsiG2/IlFMtRHWFA2KwHVdYMQQHi8vV0RaDrD/8IhCPqltBruV/IG/RalAVJ4hrxB BXAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Lm5lCPSlzmXUGCpBAhF/12+BhwrfWjv0raLXdgNb6sY=; b=tk7In6ljk8A5qKL0gCqi1uYAtIUj3taFb4AyP5dlAGYq3QJoOurw/lfEPC7Hfe3nps Fuix2D2cfUjGkhmoQRH9pFuHZqpLO6ZNbDI2xxLsyJgO0KOUnMYh5zdFH8HRT5KvTnfP wIRT1zmnA2h8TSFoXFBwPC9GV4nZndD5vCvoS3Um5RTAA9hqBa7vAKddhMrZTX1jCiGs U7YpgbY8ZiBG9mEOd/S96QCsHBBgq2dfWGwouWIDCukcXZ5w4A3/PsTVjFpBWOKNMjsg nn7K1D9ODKdPDvXDAcbRiRtAW/uN2Sq/H2l0CUch82nExxwDpmGrk0sl/Ol9lLxHnw6E iaMg== X-Gm-Message-State: AJcUuke9+TRseixgtPLvvDtyn5wTJBLaaLhecvBE2h3Ieo0xfAfywhLE ENcVTb3XqvVjrLTMaSS/mwRfT1Xd X-Google-Smtp-Source: ALg8bN6ViVvbQ/giO6AtlW+Kn2ZZbNekTb5D17zYHkWabXUtEXTgNcFpRr2i7PS6Nr1S45VAkVMKZA== X-Received: by 2002:a1c:a70a:: with SMTP id q10mr14566993wme.58.1547815577810; Fri, 18 Jan 2019 04:46:17 -0800 (PST) Received: from localhost.localdomain ([176.228.155.165]) by smtp.gmail.com with ESMTPSA id n15sm69542124wrt.21.2019.01.18.04.46.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Jan 2019 04:46:16 -0800 (PST) From: Marcel Apfelbaum To: qemu-devel@nongnu.org Date: Fri, 18 Jan 2019 14:46:11 +0200 Message-Id: <20190118124614.24548-1-marcel.apfelbaum@gmail.com> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::329 Subject: [Qemu-devel] [PATCH v2 0/3] contrib/rdmacm-mux: fix clang compilation X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: cohuck@redhat.com, qemu-stable@nongnu.org, yuval.shaia@oracle.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" v1 -> v2: * Use {} construct instead memset to make both gcc and clang happy (Cornelia) * Rebased on master * Added Yuval's RB and Cornelia's Tested-by tags (thanks!) Fix Commit a5d2f6f877 (contrib/rdmacm-mux: Add implementation of RDMA User MAD multiplexer). The above commit introduces a new contrib target, adding a global dependency to libumad library in case pvrdma configuration option is enabled. Clang forbids it: clang-6.0: error: -libumad: 'linker' input unused [-Werror,-Wunused-command-line-argument] Fix by limiting the scope to the rdmacm-mux target itself. Fix related clang errors while at it. Marcel Apfelbaum (3): contrib/rdmacm-mux: remove Wno-format-truncation flag hw/rdma: modify struct initialization contrib/rdmacm-mux: fix clang compilation Makefile | 2 ++ contrib/rdmacm-mux/Makefile.objs | 1 - contrib/rdmacm-mux/main.c | 12 +++++++----- hw/rdma/rdma_backend.c | 8 ++++---- 4 files changed, 13 insertions(+), 10 deletions(-)