Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

RDMA/core: Avoid exporting module local functions and remove not-used ones

Some of the functions are local to the module and some are not used
starting from commit 36783dec8d79 ("RDMA/rxe: Delete deprecated module
parameters interface"). Delete and avoid exporting them.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Link: https://patch.msgid.link/20260104-ib-core-misc-v1-2-00367f77f3a8@nvidia.com
Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>

authored by

Parav Pandit and committed by
Leon Romanovsky
8d466b15 ac7dea32

-32
-30
drivers/infiniband/core/device.c
··· 361 361 return NULL; 362 362 } 363 363 364 - /** 365 - * ib_device_get_by_name - Find an IB device by name 366 - * @name: The name to look for 367 - * @driver_id: The driver ID that must match (RDMA_DRIVER_UNKNOWN matches all) 368 - * 369 - * Find and hold an ib_device by its name. The caller must call 370 - * ib_device_put() on the returned pointer. 371 - */ 372 - struct ib_device *ib_device_get_by_name(const char *name, 373 - enum rdma_driver_id driver_id) 374 - { 375 - struct ib_device *device; 376 - 377 - down_read(&devices_rwsem); 378 - device = __ib_device_get_by_name(name); 379 - if (device && driver_id != RDMA_DRIVER_UNKNOWN && 380 - device->ops.driver_id != driver_id) 381 - device = NULL; 382 - 383 - if (device) { 384 - if (!ib_device_try_get(device)) 385 - device = NULL; 386 - } 387 - up_read(&devices_rwsem); 388 - return device; 389 - } 390 - EXPORT_SYMBOL(ib_device_get_by_name); 391 - 392 364 static int rename_compat_devs(struct ib_device *device) 393 365 { 394 366 struct ib_core_device *cdev; ··· 2848 2876 2849 2877 return ret; 2850 2878 } 2851 - EXPORT_SYMBOL(ib_add_sub_device); 2852 2879 2853 2880 int ib_del_sub_device_and_put(struct ib_device *sub) 2854 2881 { ··· 2866 2895 2867 2896 return 0; 2868 2897 } 2869 - EXPORT_SYMBOL(ib_del_sub_device_and_put); 2870 2898 2871 2899 #ifdef CONFIG_INFINIBAND_VIRT_DMA 2872 2900 int ib_dma_virt_map_sg(struct ib_device *dev, struct scatterlist *sg, int nents)
-2
include/rdma/ib_verbs.h
··· 4562 4562 void ib_device_put(struct ib_device *device); 4563 4563 struct ib_device *ib_device_get_by_netdev(struct net_device *ndev, 4564 4564 enum rdma_driver_id driver_id); 4565 - struct ib_device *ib_device_get_by_name(const char *name, 4566 - enum rdma_driver_id driver_id); 4567 4565 struct net_device *ib_get_net_dev_by_params(struct ib_device *dev, u32 port, 4568 4566 u16 pkey, const union ib_gid *gid, 4569 4567 const struct sockaddr *addr);