From patchwork Sun Aug 28 12:34:42 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 1105642 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p7SCYvJ2005207 for ; Sun, 28 Aug 2011 12:34:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751075Ab1H1Mey (ORCPT ); Sun, 28 Aug 2011 08:34:54 -0400 Received: from jester.euphonynet.be ([212.87.96.13]:42743 "EHLO mailpush2.euphonynet.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750941Ab1H1Mex (ORCPT ); Sun, 28 Aug 2011 08:34:53 -0400 Received: from smtp2.euphonynet.be (smtp2.euphonynet.be [212.87.96.4]) by mailpush2.euphonynet.be (Postfix) with ESMTP id D732D4F80F8; Sun, 28 Aug 2011 14:34:51 +0200 (CEST) Received: from localhost (charlie.euphonynet.be [212.87.96.11]) by smtp2.euphonynet.be (Postfix) with ESMTP id 5943438622469; Sun, 28 Aug 2011 14:40:33 +0200 (CEST) X-Virus-Scanned: by UltraDeluxeScanner at at euphonynet.be Received: from smtp2.euphonynet.be ([212.87.96.4]) by localhost (charlie.euphonynet.be [212.87.96.23]) (amavisd-new, port 10024) with ESMTP id AzOdksFGGRBZ; Sun, 28 Aug 2011 14:34:44 +0200 (CEST) Received: from asus.localnet (unknown [62.88.26.14]) by smtp2.euphonynet.be (Postfix) with ESMTP id 4172B386223A5; Sun, 28 Aug 2011 14:40:26 +0200 (CEST) From: Bart Van Assche To: linux-rdma@vger.kernel.org Subject: [PATCH] RDMA/cm: Fix sparse warning about cm_class Date: Sun, 28 Aug 2011 14:34:42 +0200 User-Agent: KMail/1.13.6 (Linux/2.6.38.8-scst; KDE/4.6.0; x86_64; ; ) Cc: Roland Dreier MIME-Version: 1.0 Message-Id: <201108281434.43040.bvanassche@acm.org> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sun, 28 Aug 2011 12:34:57 +0000 (UTC) Fix a sparse warning about a missing declaration for the symbol cm_class in source file drivers/infiniband/core/ucm.c. Signed-off-by: Bart Van Assche Cc: Roland Dreier --- drivers/infiniband/core/ucm.c | 3 --- include/rdma/ib_cm.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/infiniband/core/ucm.c b/drivers/infiniband/core/ucm.c index 08f948d..4dc2ef7 100644 --- a/drivers/infiniband/core/ucm.c +++ b/drivers/infiniband/core/ucm.c @@ -106,9 +106,6 @@ enum { IB_UCM_MAX_DEVICES = 32 }; -/* ib_cm and ib_user_cm modules share /sys/class/infiniband_cm */ -extern struct class cm_class; - #define IB_UCM_BASE_DEV MKDEV(IB_UCM_MAJOR, IB_UCM_BASE_MINOR) static void ib_ucm_add_one(struct ib_device *device); diff --git a/include/rdma/ib_cm.h b/include/rdma/ib_cm.h index c8f94e8..1f2be6c 100644 --- a/include/rdma/ib_cm.h +++ b/include/rdma/ib_cm.h @@ -291,6 +291,9 @@ struct ib_cm_id { u32 remote_cm_qpn; /* 1 unless redirected */ }; +/* ib_cm and ib_user_cm modules share /sys/class/infiniband_cm */ +extern struct class cm_class; + /** * ib_create_cm_id - Allocate a communication identifier. * @device: Device associated with the cm_id. All related communication will