patch "misc: mic/scif: fix copy-paste error in scif_create_remote_lookup" added to char-misc-linus
Subsystems (2)
This is a note to let you know that I've just added the patch titled
misc: mic/scif: fix copy-paste error in scif_create_remote_lookup
to my char-misc git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
in the char-misc-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
Quoted 1 line
From
6484a677294aa5d08c0210f2f387ebb9be646115Mon Sep 17 00:00:00 2001
From: YueHaibing <[email protected]>
Date: Wed, 14 Nov 2018 01:57:03 +0000
Subject: misc: mic/scif: fix copy-paste error in scif_create_remote_lookup
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.
--- drivers/misc/mic/scif/scif_rma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/mic/scif/scif_rma.c +1 -1
@@ -416,7 +416,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);
Signature · 1 line
2.19.2