}
 EXPORT_SYMBOL(ib_find_cached_pkey);
 
-int ib_find_exact_cached_pkey(struct ib_device *device, u32 port_num,
-                             u16 pkey, u16 *index)
-{
-       struct ib_pkey_cache *cache;
-       unsigned long flags;
-       int i;
-       int ret = -ENOENT;
-
-       if (!rdma_is_port_valid(device, port_num))
-               return -EINVAL;
-
-       read_lock_irqsave(&device->cache_lock, flags);
-
-       cache = device->port_data[port_num].cache.pkey;
-       if (!cache) {
-               ret = -EINVAL;
-               goto err;
-       }
-
-       *index = -1;
-
-       for (i = 0; i < cache->table_len; ++i)
-               if (cache->table[i] == pkey) {
-                       *index = i;
-                       ret = 0;
-                       break;
-               }
-
-err:
-       read_unlock_irqrestore(&device->cache_lock, flags);
-
-       return ret;
-}
-EXPORT_SYMBOL(ib_find_exact_cached_pkey);
-
 int ib_get_cached_lmc(struct ib_device *device, u32 port_num, u8 *lmc)
 {
        unsigned long flags;
 
                        u16                  pkey,
                        u16                 *index);
 
-/**
- * ib_find_exact_cached_pkey - Returns the PKey table index where a specified
- *   PKey value occurs. Comparison uses the FULL 16 bits (incl membership bit)
- * @device: The device to query.
- * @port_num: The port number of the device to search for the PKey.
- * @pkey: The PKey value to search for.
- * @index: The index into the cached PKey table where the PKey was found.
- *
- * ib_find_exact_cached_pkey() searches the specified PKey table in
- * the local software cache.
- */
-int ib_find_exact_cached_pkey(struct ib_device    *device,
-                             u32                  port_num,
-                             u16                  pkey,
-                             u16                 *index);
-
 /**
  * ib_get_cached_lmc - Returns a cached lmc table entry
  * @device: The device to query.