summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-11-14 01:57:03 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-05 19:41:26 +0100
commitf7d33988bd923310934c8481a2e68b53f716df13 (patch)
treeeba0f721920fa7ab35ef3b0e5438902944e59882
parent3c44b197448dfb8bef4fa9cab92b7a73153a6f76 (diff)
downloadlinux-exynos-f7d33988bd923310934c8481a2e68b53f716df13.tar.gz
linux-exynos-f7d33988bd923310934c8481a2e68b53f716df13.tar.bz2
linux-exynos-f7d33988bd923310934c8481a2e68b53f716df13.zip
misc: mic/scif: fix copy-paste error in scif_create_remote_lookup
commit 6484a677294aa5d08c0210f2f387ebb9be646115 upstream. gcc '-Wunused-but-set-variable' warning: drivers/misc/mic/scif/scif_rma.c: In function 'scif_create_remote_lookup': drivers/misc/mic/scif/scif_rma.c:373:25: warning: variable 'vmalloc_num_pages' set but not used [-Wunused-but-set-variable] 'vmalloc_num_pages' should be used to determine if the address is within the vmalloc range. Fixes: ba612aa8b487 ("misc: mic: SCIF memory registration and unregistration") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/misc/mic/scif/scif_rma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/mic/scif/scif_rma.c b/drivers/misc/mic/scif/scif_rma.c
index 329727e00e97..95745dc4e0ec 100644
--- a/drivers/misc/mic/scif/scif_rma.c
+++ b/drivers/misc/mic/scif/scif_rma.c
@@ -417,7 +417,7 @@ static int scif_create_remote_lookup(struct scif_dev *remote_dev,
if (err)
goto error_window;
err = scif_map_page(&window->num_pages_lookup.lookup[j],
- vmalloc_dma_phys ?
+ vmalloc_num_pages ?
vmalloc_to_page(&window->num_pages[i]) :
virt_to_page(&window->num_pages[i]),
remote_dev);