From patchwork Sat Jan 12 15:02:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Apfelbaum X-Patchwork-Id: 10760993 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ECFE61580 for ; Sat, 12 Jan 2019 15:03:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DD55429471 for ; Sat, 12 Jan 2019 15:03:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D17A929473; Sat, 12 Jan 2019 15:03:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9E17D29471 for ; Sat, 12 Jan 2019 15:03:45 +0000 (UTC) Received: from localhost ([127.0.0.1]:55364 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giKp6-0004Qf-Bb for patchwork-qemu-devel@patchwork.kernel.org; Sat, 12 Jan 2019 10:03:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giKo2-0003nA-GN for qemu-devel@nongnu.org; Sat, 12 Jan 2019 10:02:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1giKo1-0002t6-NI for qemu-devel@nongnu.org; Sat, 12 Jan 2019 10:02:38 -0500 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:55356) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1giKo1-0002oR-Gt; Sat, 12 Jan 2019 10:02:37 -0500 Received: by mail-wm1-x344.google.com with SMTP id y139so4929800wmc.5; Sat, 12 Jan 2019 07:02:31 -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=VeG7D16enJQac3RCGkqS6PcRcVVLh7YwAgKmbn2IejM=; b=utWi5HeK8iWUbb+hXA7CkflkzTnCIPnujnWguvD8i8B/GFi9I4eS4jbDuZi7qHg+qc q3HDNC2XHoJTke/Iay0YaB/JNEF9b/dvDsLlVCh5xB0zkk6g2R6QVXYoBwSx2fuVPAWs sn4yRqDuO66tObbvXBZ4Z5WYO40tN6tnlxIF43HbuahRPeGgtQbt6//I+Qo9Rfk628LG aXVWYCZnZ7ys4YeS3F+EXvkxHqKrp2ZUan7RJpt9CaL4k1DCy5It9wU5APS5ikZBqKJT oV+77FlyJLuFJovQO745gkYr4ZpmX6q8t3pfFUcub4LSV2qVLxiH0LpT001LvO76ZKbj KPbw== 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=VeG7D16enJQac3RCGkqS6PcRcVVLh7YwAgKmbn2IejM=; b=jzJR8us0JScA+mZLLDEv20ROSvIhCf8HD6xxZDQw/8FfK0JvPG+lB0Jzdl10gcsB+0 umCTyz+aFjiU/hIGCz0DYOSRm9BHE1yLPcfzF2TiyKUK/McSHY7U9BllWAVsDpuARGd3 4t6zD5A3wilLaV4JHm62PyfCCsv2HttE9FXBDZlurWDJ6w076ai+an8tJLzJ2hw/sv6q +LrgsaOt0h6kn84Rf4BnGwbWKvgiR6u2qN8PXuRk4/yXiE+gzZuJJg9AVOnkCTDyYH7P 9Yhwtz0Z9zCsrkl1YThjXfDXTJHYf4Z7PnOnueQOfN4W5s9NrrFoD1SmA7sDGguajb7l QUlA== X-Gm-Message-State: AJcUukfT7bpgNCaUJJsGspld6tbyoI/f0yzmsnXbUsTd3/Uf62peunCK iwmQ8Walv0NkI9ZG/7bWQI8+6Yyy X-Google-Smtp-Source: ALg8bN5FXigrAQJWr86LBUGXi2nof//BzKdA9yDSik2ZBRbcc/aIIpQONiED0gCzdkoy514rUBQUNw== X-Received: by 2002:a1c:3c06:: with SMTP id j6mr5519115wma.27.1547305348002; Sat, 12 Jan 2019 07:02:28 -0800 (PST) Received: from localhost.localdomain ([176.228.155.165]) by smtp.gmail.com with ESMTPSA id o81sm38222581wmd.10.2019.01.12.07.02.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 12 Jan 2019 07:02:27 -0800 (PST) From: Marcel Apfelbaum To: qemu-devel@nongnu.org Date: Sat, 12 Jan 2019 17:02:22 +0200 Message-Id: <20190112150225.20294-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::344 Subject: [Qemu-devel] [PATCH 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+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 | 18 +++++++++++++----- hw/rdma/rdma_backend.c | 16 ++++++++++++---- 4 files changed, 27 insertions(+), 10 deletions(-) Tested-by: Cornelia Huck