]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sif: Remove dummy implementation of get_protocol_stats
authorKnut Omang <knut.omang@oracle.com>
Thu, 1 Sep 2016 17:50:57 +0000 (19:50 +0200)
committerKnut Omang <knut.omang@oracle.com>
Fri, 9 Sep 2016 10:32:00 +0000 (12:32 +0200)
We don't really implement it and the entry point was silently
removed in upstream commit v4.6-rc5-317-gb40f475

Signed-off-by: Knut Omang <knut.omang@oracle.com>
Reviewed-by: Åsmund Østvold <asmund.ostvold@oracle.com>
drivers/infiniband/hw/sif/sif_ireg.c

index 762cf8d5bc8df7f564d4764e597c1a15a8cd6461..958e724330dfe73ff1144ba0986a974f1b63a2cb 100644 (file)
@@ -694,16 +694,6 @@ static int sif_mmap(struct ib_ucontext *ib_uc, struct vm_area_struct *vma)
        return -EOPNOTSUPP;
 }
 
-static int sif_get_protocol_stats(struct ib_device *ibdev,
-                               union rdma_protocol_stats *stats)
-{
-       struct sif_dev *sdev = to_sdev(ibdev);
-
-       sif_log(sdev, SIF_VERBS, "Not implemented");
-       return -EOPNOTSUPP;
-}
-
-
 static enum rdma_link_layer sif_get_link_layer(struct ib_device *ibdev, u8 port_num)
 {
        struct sif_dev *sdev = to_sdev(ibdev);
@@ -797,8 +787,6 @@ int sif_register_ib_device(struct sif_dev *sdev)
                (1ull << IB_USER_VERBS_CMD_SHARE_PD)
              ;
 
-       dev->get_protocol_stats = sif_get_protocol_stats;
-
        dev->query_device = sif_query_device;
        dev->modify_device = sif_modify_device;