From nobody Sun Feb 8 04:47:22 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1550159030958298.962897306626; Thu, 14 Feb 2019 07:43:50 -0800 (PST) Received: from localhost ([127.0.0.1]:50477 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guJAw-0006XM-VY for importer@patchew.org; Thu, 14 Feb 2019 10:43:47 -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) 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) 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) 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Configuring QEMU with: configure --target-list=3D"x86_64-softmmu" --cc=3Dclang --enable-pvrdma Results in: qemu/hw/rdma/rdma_rm_defs.h:108:3: error: redefinition of typedef 'RdmaD= eviceResources' 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=C3=A9 --- 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; =20 -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; +}; =20 #endif --=20 2.17.1