From patchwork Tue Jul 12 11:32:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: weiyj_lk@163.com X-Patchwork-Id: 9225145 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 721D260868 for ; Tue, 12 Jul 2016 11:33:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 62BFE2793D for ; Tue, 12 Jul 2016 11:33:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 572E127F7F; Tue, 12 Jul 2016 11:33:14 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 36CD42793D for ; Tue, 12 Jul 2016 11:33:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751678AbcGLLdM (ORCPT ); Tue, 12 Jul 2016 07:33:12 -0400 Received: from m12-18.163.com ([220.181.12.18]:49820 "EHLO m12-18.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751187AbcGLLdL (ORCPT ); Tue, 12 Jul 2016 07:33:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=v7gJU 0LD83eR3+UI2KuKqRIk237SciqiItafi5S1OlE=; b=dTcFRmRBb5S4755iFplpk 1Ap04Ohj64EE+iOGV+Db7peyTaBcNWJ7+qA5yjeG+c8TyHbepBBYqwH2kAW+1/Md yqL+mOjag4btFuhsdn6iMDdSpjAQyjnxkPATv29HjPiTnxreivDj6PdZVzl+fnWb l4z/AIoYdRY4gwhniJV/Zo= Received: from localhost.localdomain.localdomain (unknown [180.110.253.144]) by smtp14 (Coremail) with SMTP id EsCowAD3_x9f1YRXlnp_BQ--.49760S2; Tue, 12 Jul 2016 19:32:48 +0800 (CST) From: weiyj_lk@163.com To: Matan Barak , Leon Romanovsky , Doug Ledford , Sean Hefty , Hal Rosenstock Cc: Wei Yongjun , linux-rdma@vger.kernel.org Subject: [PATCH -next] IB/mlx5: Fix duplicate const warning Date: Tue, 12 Jul 2016 11:32:47 +0000 Message-Id: <1468323167-1843-1-git-send-email-weiyj_lk@163.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-CM-TRANSID: EsCowAD3_x9f1YRXlnp_BQ--.49760S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7WryUGw4fXFyxJF4rXF15twb_yoW3XFc_uw s8JrnrXrn09FWSyrWqgFsxur1Ygw1jg3ZxW3ZF9a45J3sI9w13G3s2vw1fXw10q3s8GFsx ArW3uw18CF45CjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUnPxhJUUUUU== X-Originating-IP: [180.110.253.144] X-CM-SenderInfo: pzhl5yxbonqiywtou0bp/1tbiNQCk1lSIOuebIgAAs- Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Fixes the following sparse warning: drivers/infiniband/hw/mlx5/main.c:2574:25: warning: duplicate const Signed-off-by: Wei Yongjun Acked-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index 7fa2fe7..a342d73 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -2571,7 +2571,7 @@ dealloc_counters: return ret; } -static const char const *names[] = { +static const char * const names[] = { "rx_write_requests", "rx_read_requests", "rx_atomic_requests",