From patchwork Thu Feb 14 15:40:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Marcel Apfelbaum X-Patchwork-Id: 10813069 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 CBBD813A4 for ; Thu, 14 Feb 2019 15:43:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B35BC2EC5F for ; Thu, 14 Feb 2019 15:43:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A84BC2EC55; Thu, 14 Feb 2019 15:43:27 +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 4BD432EC5C for ; Thu, 14 Feb 2019 15:43:27 +0000 (UTC) Received: from localhost ([127.0.0.1]:50477 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guJAc-0006XM-Mi for patchwork-qemu-devel@patchwork.kernel.org; Thu, 14 Feb 2019 10:43:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guJ8H-0004xg-Kt for qemu-devel@nongnu.org; Thu, 14 Feb 2019 10:41:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1guJ8G-0003Gv-Py for qemu-devel@nongnu.org; Thu, 14 Feb 2019 10:41:01 -0500 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:46728) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1guJ8F-0003Dm-72 for qemu-devel@nongnu.org; Thu, 14 Feb 2019 10:40:59 -0500 Received: by mail-wr1-x441.google.com with SMTP id l9so6938695wrt.13 for ; Thu, 14 Feb 2019 07:40:58 -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=PTAKGNFKX8kR+dufittR1rgkI/twDeGDsgZyoQpJY3g=; b=CdDv4GOUPz06dkJyDjxrmCZGR6f1eIxkPoNI2V3/0c6vDfJ2w0fAj8FLfxBCUYVoIm kPAItzby9BzbZdU2lMxD6kwCk6pJ1vlEnMZDJV7BMtbtC6CPoD7Aa65FPHdDXH5u9Gpv RdTmZgLrXXKBeWVHif8o33uRBsYveNNk+UiKwjRP+UV8bKvC81xAbJJnx4qpfeqxpAwr kYl9Xl1syPfXMNjia/k4ueEQxN5OvPhr1LBXxi+WBdoMAcrR7IqtiHl6iKYH1nKm6VZ1 Ox6NdjhmJb1zQqdSSdA51dYpvBW+0BE3Cde6uwjUa0i6FXU2QtBuzDTKRzJqRMIiRAAs ef8g== 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=PTAKGNFKX8kR+dufittR1rgkI/twDeGDsgZyoQpJY3g=; b=Xeg51lD18C4Ro1NyU4Fi3twLCoHkB0+y0h2OqRYrdKympWYeuJ+omVZLqgwDPzKvGT 3afeiccox0dcgIvlT6j38BQTdHzvS3I+qRQIVwbJI0MPsJBs4R4vYhKLrOHMX/A5wIl0 g5/LPT3+AoxXn9b+31n644oQuAbSWKW9138Fb2VxchvWm6T+6UxsbguiubbbpYqKNDyV yWVpTcKIXS8tc87j2SRKgS/udTel6Agk+vln5RDuGB9c3EheNT+5sd93oAqX0axEp9R7 lc50YmvqBRxykSpcPikaD3XlQCMNA6zj2Y4cZThrrfmuWn50wwv9gJi1Z1Re6uHFzgri 6nnA== X-Gm-Message-State: AHQUAuYUurB97isq6fdx/uhkTLgs52YlVRTqru8KaNnM/ghnxwOzDWGG rJA+kw8T3GBjlUXHMMl7uq3Fqfmg X-Google-Smtp-Source: AHgI3IYW2ksfQeKK2GhUTR59+NGgT0XZbOjmMVH9dR0VxR+/cNAthRYH8Cy99crDG3ULQtorp3QUbw== X-Received: by 2002:a5d:654d:: with SMTP id z13mr3229725wrv.270.1550158857318; Thu, 14 Feb 2019 07:40:57 -0800 (PST) Received: from localhost.localdomain ([176.228.155.165]) by smtp.gmail.com with ESMTPSA id s4sm1436674wmc.21.2019.02.14.07.40.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Feb 2019 07:40:56 -0800 (PST) From: Marcel Apfelbaum To: qemu-devel@nongnu.org Date: Thu, 14 Feb 2019 17:40:53 +0200 Message-Id: <20190214154053.15050-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::441 Subject: [Qemu-devel] [PATCH] hw/rdma: another clang compilation fix 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: kamalheib1@gmail.com, 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 Configuring QEMU with: configure --target-list="x86_64-softmmu" --cc=clang --enable-pvrdma Results in: qemu/hw/rdma/rdma_rm_defs.h:108:3: error: redefinition of typedef 'RdmaDeviceResources' is a C11 feature [-Werror,-Wtypedef-redefinition] } RdmaDeviceResources; ^ qemu/hw/rdma/rdma_backend_defs.h:24:36: note: previous definition is here typedef struct RdmaDeviceResources RdmaDeviceResources; Fix by removing one of the 'typedef' definitions. Signed-off-by: Marcel Apfelbaum Acked-by: Kamal Heib Reviewed-by: Philippe Mathieu-Daudé --- hw/rdma/rdma_rm_defs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/rdma/rdma_rm_defs.h b/hw/rdma/rdma_rm_defs.h index 0ba61d1838..5e877c1fd9 100644 --- a/hw/rdma/rdma_rm_defs.h +++ b/hw/rdma/rdma_rm_defs.h @@ -96,7 +96,7 @@ typedef struct RdmaRmPort { enum ibv_port_state state; } RdmaRmPort; -typedef struct RdmaDeviceResources { +struct RdmaDeviceResources { RdmaRmPort port; RdmaRmResTbl pd_tbl; RdmaRmResTbl mr_tbl; @@ -105,6 +105,6 @@ typedef struct RdmaDeviceResources { RdmaRmResTbl cq_tbl; RdmaRmResTbl cqe_ctx_tbl; GHashTable *qp_hash; /* Keeps mapping between real and emulated */ -} RdmaDeviceResources; +}; #endif