From patchwork Fri Jul 12 08:53:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 168907 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp583559ilk; Fri, 12 Jul 2019 01:53:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUNOd3kn05emRbMERQSAFjithgOT+HjIpz56OyxXUp2k3KP0C4OMXeRp2n0JnBUahp28+6 X-Received: by 2002:a17:90a:b908:: with SMTP id p8mr10317397pjr.94.1562921605244; Fri, 12 Jul 2019 01:53:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562921605; cv=none; d=google.com; s=arc-20160816; b=RhumzcDbaL3HM7tJQSeNbyT5txARkovZLdW9TFjODKMBroqPQq75GDPpxMWw3oVTNl jDJzyxUl5BsH94zqhJXpfOPIrd+KaKSCzlcrhKZsjPfHSLCeovQPfNKagPGl6IJA34rn Yb7oMo8x4W2RZgB30w2HMtK2BPy3iU1In9EdtKFNpEl+fiQMz7tTQVUc+Zb7EZY82Cl9 wokfsTOgO5PaXxYOGsfSbIrL+sdVpSMgTyueC/hKVSeutb5KERbz7VStVTtXQhJTmjw4 etTSP9Jl7MLl69TAzSe7yCUuqOT8y1PLAxPofT6VWXqrzaD3poXCZq1XjzfqquCr1QAV qTzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=MABb8xgNjgbNY9Quiy+mlxrLRLoH5Px2qW7Kq8lBEMM=; b=imi2H9hLIrOFbOALp4NWydN3LkVf2uHVPpUYK1p9slBi8XsAtD4uv1jTgluI78K5CS u9f48zNKLy+Nk+/+yGhbV99lJvvOT9ssj22nBhQY565G9dxolWe4X5I5UeZifgD7DJ43 6W4B8pPEfVo6LUGu/d2nQ7hsmd866WlwvtnUJfqKm3wFYzv4ApdRY1OxtfWzqOOgeHiK EC6T8pyT6UwggXMoaV/+f69JDma+Ru77PmDpncFowgW3hRn5zp2Vo7xi1iZ0f/yWkf5K f31K0S6r8/b6KqZgWUzWLlI8J8dyWmqJlOj4Gr+QyHFilMCvPSXfYv0yMWnRaJnMI43k hzxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x24si8243569pfr.200.2019.07.12.01.53.24; Fri, 12 Jul 2019 01:53:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726747AbfGLIxX (ORCPT + 29 others); Fri, 12 Jul 2019 04:53:23 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:35751 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726078AbfGLIxX (ORCPT ); Fri, 12 Jul 2019 04:53:23 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.145]) with ESMTPA (Nemesis) id 1N7zJl-1iZCS82YIV-014xdb; Fri, 12 Jul 2019 10:53:15 +0200 From: Arnd Bergmann To: Bernard Metzler , Doug Ledford , Jason Gunthorpe Cc: Arnd Bergmann , Jason Gunthorpe , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] rdma/siw: fix enum type mismatch warnings Date: Fri, 12 Jul 2019 10:53:04 +0200 Message-Id: <20190712085314.3974907-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:8iWClpmbXxnlV2N+r4s16RVUWQy/lLRG7xIZbD65OGr4GY3zpum hIh0oAjDiZoJA0g1zbd7HMc5DxOLmYZg88rbPnn0XsJN2dr9guwIQps/8ULp8VvmUhGRR2M ONfSk0mirJWYhTIuDdngeIdFfsdCUtLYOUsn3CAA31Dzpbz+UiqFJvjBVh1Jiv7SxP3ppNg x8O/l/1itebdimFJkLAXg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:IRRjqEpKqLg=:c2+XX7gqRcai7/WSFVMgFG PU3LQ/0NuFvpxt1/6fWHR+ZmJdWKT+5ZZq95nGhdgPwwlYwiE2yukyTU7tsVfR0gREPCuVwfQ 0fBoBVLkfmJY9VQe9HrBfShA71S+VC1JNwLi3fOek3ZkhnjFAm5Ytzi881mzghb90Ofj7R4kC k4KSeDJLlfmm5cq9lG3V6L3AdKEF7R1PM6U+Gyb9ddnqMw/Q/mqcORj8JgjKt4K2sM2b2LW/N NSUAxLOyKZhmCQVXKdY56oN1+uyD8QhoQ8p8DDOEtiGnq+r1ehH+1hd+p1H+u5gYNlVmEYZsv QY3ezySe7qxqHxaTgQwygGVVqGYZlZ+vumK4zSE8xtu1mtTz7zPYrqjDV+TbnYlqO41AkvZXZ 9jDDSlS+xdUmEBZXzEPrwSUp5iHGbySus332/skyC5RkqhFcJ/GlhMjr9dHsEYekbu2xw61BM Uu6DPagT/QlTDImhldfJJwncdS0OIrfFGOsXz/tV3MWpsASAw7ULbzRtNCuDThzNoy+AwW/SG qtk2OpqfToke4St5z42UImqwdyFIVC5LwEzSOMfs6JiY8fvBepziiammZq+/5YMKvs21od6WV z0RK1Z2MrJnCnyemLcKgJmCaNXj1Ti0BZABCdowq58wsea0Z1QMcUgFZoM+j4qhmcXhu4w41M omH8N2k30+nW9Erz3hgQD/umCYv/tyOqRTdVGjlndDnjWmfwLjI9tjXEujU2bcU315Pi5Tawo ZKH/PSyaNw2S0qiw4pcOEB6Px+lQMJ6lPklQwA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The values in map_cqe_status[] don't match the type: drivers/infiniband/sw/siw/siw_cq.c:31:4: error: implicit conversion from enumeration type 'enum siw_wc_status' to different enumeration type 'enum siw_opcode' [-Werror,-Wenum-conversion] { SIW_WC_SUCCESS, IB_WC_SUCCESS }, ~ ^~~~~~~~~~~~~~ drivers/infiniband/sw/siw/siw_cq.c:32:4: error: implicit conversion from enumeration type 'enum siw_wc_status' to different enumeration type 'enum siw_opcode' [-Werror,-Wenum-conversion] { SIW_WC_LOC_LEN_ERR, IB_WC_LOC_LEN_ERR }, ~ ^~~~~~~~~~~~~~~~~~ Change the struct definition to make them match and stop the warning. Fixes: b0fff7317bb4 ("rdma/siw: completion queue methods") Signed-off-by: Arnd Bergmann --- drivers/infiniband/sw/siw/siw_cq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.0 diff --git a/drivers/infiniband/sw/siw/siw_cq.c b/drivers/infiniband/sw/siw/siw_cq.c index e2a0ee40d5b5..e381ae9b7d62 100644 --- a/drivers/infiniband/sw/siw/siw_cq.c +++ b/drivers/infiniband/sw/siw/siw_cq.c @@ -25,7 +25,7 @@ static int map_wc_opcode[SIW_NUM_OPCODES] = { }; static struct { - enum siw_opcode siw; + enum siw_wc_status siw; enum ib_wc_status ib; } map_cqe_status[SIW_NUM_WC_STATUS] = { { SIW_WC_SUCCESS, IB_WC_SUCCESS },