linux-stable/drivers/staging
WANG Chao f6f8ed4735 mm/vmalloc.c: clean up map_vm_area third argument
Currently map_vm_area() takes (struct page *** pages) as third argument,
and after mapping, it moves (*pages) to point to (*pages +
nr_mappped_pages).

It looks like this kind of increment is useless to its caller these
days.  The callers don't care about the increments and actually they're
trying to avoid this by passing another copy to map_vm_area().

The caller can always guarantee all the pages can be mapped into vm_area
as specified in first argument and the caller only cares about whether
map_vm_area() fails or not.

This patch cleans up the pointer movement in map_vm_area() and updates
its callers accordingly.

Signed-off-by: WANG Chao <chaowang@redhat.com>
Cc: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-08-06 18:01:19 -07:00
..
android mm/vmalloc.c: clean up map_vm_area third argument 2014-08-06 18:01:19 -07:00
bcm Staging: bcm: Qos.c: checkpatch.pl fix: Indentation of case-statements fixed 2014-07-30 17:14:24 -07:00
board
comedi staging: comedi: addi_apci_1564: remove diagnostic interrupt support code 2014-08-01 15:37:22 -07:00
cptm1217
dgap
dgnc staging: dgnc: Remove unneeded dgnc_trace.c and dgnc_trace.h 2014-08-01 14:50:04 -07:00
emxx_udc
et131x staging: et131x: Remove trailing semicolon from macros in et131x.h 2014-07-24 15:05:13 -07:00
ft1000 staging: ft1000: remove procfs entries 2014-07-27 11:45:46 -07:00
fwserial
gdm72xx Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2014-08-06 09:38:14 -07:00
gdm724x Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2014-08-06 09:38:14 -07:00
goldfish staging/goldfish/goldfish_audio: fix a sparse warning 2014-07-23 18:12:23 -07:00
gs_fpgaboot
iio staging:iio:hmc5843: Add support for spi hmc5983 2014-07-23 21:48:24 +01:00
imx-drm
line6
lustre staging: lustre: bitwise vs logical typo 2014-08-01 15:00:18 -07:00
media Staging driver patches for 3.17-rc1 2014-08-04 18:36:12 -07:00
mt29f_spinand
netlogic staging: netlogic: coding style fixup 2014-07-27 08:57:38 -07:00
nokia_h4p
nvec staging/nvec: Use platform_get_irq() 2014-07-30 17:18:47 -07:00
octeon
octeon-usb
olpc_dcon
ozwpan
panel
rtl8188eu staging: rtl8188eu: Remove wrapper function _rtw_reordering_ctrl_timeout_handler() 2014-07-30 17:16:10 -07:00
rtl8192e
rtl8192ee
rtl8192u staging:r8190: coding style: Fixed checkpatch reported Error 2014-08-01 14:42:52 -07:00
rtl8712 staging:rtl8712:mlme_linux.c: Adds blank lines to pass checkpatch.pl 2014-07-30 17:05:56 -07:00
rtl8723au staging: rtl8723au: Fix static symbol sparse warning 2014-08-01 14:44:01 -07:00
rtl8821ae staging: rtl8821ae: fixed a space coding style issue 2014-07-27 11:43:01 -07:00
rts5208 Staging: rts5208: Replace custom macro with dev_dbg 2014-07-30 17:22:18 -07:00
skein
slicoss
speakup Update speakup mailing list address 2014-07-18 16:36:29 -07:00
ste_rmi4
unisys staging: visorchipset: fix sparse warnings about static declaration 2014-08-01 14:39:26 -07:00
usbip staging: usbip: remove redundant return statements 2014-07-30 16:39:34 -07:00
vme staging: vme: removed useless breaks in vme_user.c 2014-07-23 18:21:59 -07:00
vt6655 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2014-08-06 09:38:14 -07:00
vt6656 staging: vt6656: wcmd.h remove dead macros 2014-07-27 11:19:57 -07:00
wlan-ng Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2014-08-06 09:38:14 -07:00
xgifb
xillybus
Kconfig staging: sep: remove driver 2014-07-27 13:17:47 -07:00
Makefile staging: sep: remove driver 2014-07-27 13:17:47 -07:00
staging.c