nvidia-oot: remove tegra_hv_ivc_convert_cookie API

tegra_hv_ivc_convert_cookie API is not being used
and is there lying as dead code.

Bug 5433066

Change-Id: I8036cb5e398bcc3fb720ff3afbea92e350d441a0
Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3440189
(cherry picked from commit 8560fc5c340ae63e39169aca3beb02dbf229e9bc)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3448411
(cherry picked from commit 2c8771c90e44da8d423fc1896ff277343c06647b)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3480666
Tested-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
This commit is contained in:
Manish Bhardwaj
2025-08-26 10:48:43 +00:00
committed by mobile promotions
parent 7f93fd77a5
commit e3f7b0f173
3 changed files with 0 additions and 12 deletions

View File

@@ -90,7 +90,6 @@ static int ivc_dev_open(struct inode *inode, struct file *filp)
struct ivc_dev *ivcd = container_of(cdev, struct ivc_dev, cdev); struct ivc_dev *ivcd = container_of(cdev, struct ivc_dev, cdev);
int ret; int ret;
struct tegra_hv_ivc_cookie *ivck; struct tegra_hv_ivc_cookie *ivck;
struct tegra_ivc *ivcq;
/* /*
* If we can reserve the corresponding IVC device successfully, then * If we can reserve the corresponding IVC device successfully, then
@@ -101,7 +100,6 @@ static int ivc_dev_open(struct inode *inode, struct file *filp)
return PTR_ERR(ivck); return PTR_ERR(ivck);
ivcd->ivck = ivck; ivcd->ivck = ivck;
ivcq = tegra_hv_ivc_convert_cookie(ivck);
/* request our irq */ /* request our irq */
ret = devm_request_threaded_irq(ivcd->device, ivck->irq, ret = devm_request_threaded_irq(ivcd->device, ivck->irq,
@@ -164,11 +162,9 @@ static ssize_t ivc_dev_write(struct file *filp, const char __user *buf,
static __poll_t ivc_dev_poll(struct file *filp, poll_table *wait) static __poll_t ivc_dev_poll(struct file *filp, poll_table *wait)
{ {
struct ivc_dev *ivcd = filp->private_data; struct ivc_dev *ivcd = filp->private_data;
struct tegra_ivc *ivc;
__poll_t mask = 0; __poll_t mask = 0;
WARN_ON(!ivcd); WARN_ON(!ivcd);
ivc = tegra_hv_ivc_convert_cookie(ivcd->ivck);
poll_wait(filp, &ivcd->wq, wait); poll_wait(filp, &ivcd->wq, wait);

View File

@@ -930,12 +930,6 @@ int tegra_hv_ivc_read_advance(struct tegra_hv_ivc_cookie *ivck)
} }
EXPORT_SYMBOL(tegra_hv_ivc_read_advance); EXPORT_SYMBOL(tegra_hv_ivc_read_advance);
struct tegra_ivc *tegra_hv_ivc_convert_cookie(struct tegra_hv_ivc_cookie *ivck)
{
return &cookie_to_ivc_dev(ivck)->ivc;
}
EXPORT_SYMBOL(tegra_hv_ivc_convert_cookie);
struct tegra_hv_ivm_cookie *tegra_hv_mempool_reserve(unsigned id) struct tegra_hv_ivm_cookie *tegra_hv_mempool_reserve(unsigned id)
{ {
uint32_t i; uint32_t i;

View File

@@ -274,6 +274,4 @@ int tegra_hv_ivc_get_info(struct tegra_hv_ivc_cookie *ivck, uint64_t *pa,
*/ */
void tegra_hv_ivc_notify(struct tegra_hv_ivc_cookie *ivck); void tegra_hv_ivc_notify(struct tegra_hv_ivc_cookie *ivck);
struct tegra_ivc *tegra_hv_ivc_convert_cookie(struct tegra_hv_ivc_cookie *ivck);
#endif /* __TEGRA_HV_IVC_H */ #endif /* __TEGRA_HV_IVC_H */