]> git.kernelconcepts.de Git - karo-tx-linux.git/log
karo-tx-linux.git
9 years agospi: omap2-mcspi: fix blatant abuse of the resource subsystem tx48-devel kc/tx48-devel
Lothar Waßmann [Thu, 17 Jul 2014 13:20:12 +0000 (15:20 +0200)]
spi: omap2-mcspi: fix blatant abuse of the resource subsystem

9 years agoASoC: sgtl5000: check whether regulator is enabled before disabling it
Lothar Waßmann [Thu, 17 Jul 2014 13:18:54 +0000 (15:18 +0200)]
ASoC: sgtl5000: check whether regulator is enabled before disabling it

9 years agoASoC: sgtl5000: fix regulator registering/removal
Lothar Waßmann [Thu, 17 Jul 2014 13:06:11 +0000 (15:06 +0200)]
ASoC: sgtl5000: fix regulator registering/removal

Due to using devm_regulator_bulk_get() the LDO regulator which may
have been registered is still referenced when ldo_regulator_remove()
tries to unregister it. This leads to the following warning from the
regulator subsystem (and makes it impossible to unload the
snd-soc-sgtl5000 module):

WARNING: CPU: 0 PID: 1297 at drivers/regulator/core.c:3600 regulator_unregister+0x78/0xd4()
Modules linked in: snd_soc_imx_sgtl5000(-) snd_soc_fsl_ssi imx_pcm_dma imx_pcm_fiq snd_soc_imx_audmux snd_soc_sgtl5000 regmap_i2c snd_soc_core snd_compress snd_pcm_dmaengine snd_pcm snd_timer snd flexcan can_dev usbmisc_imx mmc_block ci_hdrc_imx ci_hdrc udc_core ehci_hcd imx_keypad matrix_keymap sdhci_esdhc_imx sdhci_pltfm sdhci mmc_core spidev spi_imx spi_bitbang gpio_keys [last unloaded: tsc2007]
CPU: 0 PID: 1297 Comm: modprobe Not tainted 3.16.0-rc2-next-20140627-dt+ #1
Backtrace:
[<80011324>] (dump_backtrace) from [<8001169c>] (show_stack+0x18/0x1c)
 r6:804c5563 r5:00000009 r4:00000000 r3:00400100
[<80011684>] (show_stack) from [<803b7cc0>] (dump_stack+0x20/0x28)
[<803b7ca0>] (dump_stack) from [<8001cc70>] (warn_slowpath_common+0x6c/0x8c)
[<8001cc04>] (warn_slowpath_common) from [<8001ccb4>] (warn_slowpath_null+0x24/0x2c)
 r8:9e6c93c0 r7:00000000 r6:00000000 r5:9e6c9798 r4:9d820980
[<8001cc90>] (warn_slowpath_null) from [<802472bc>] (regulator_unregister+0x78/0xd4)
[<80247244>] (regulator_unregister) from [<7f176720>] (ldo_regulator_remove+0x28/0x30 [snd_soc_sgtl5000])
 r4:9e7497c0 r3:9d871918
[<7f1766f8>] (ldo_regulator_remove [snd_soc_sgtl5000]) from [<7f17675c>] (sgtl5000_remove+0x34/0x3c [snd_soc_sgtl5000])
[<7f176728>] (sgtl5000_remove [snd_soc_sgtl5000]) from [<7f13e090>] (soc_remove_codec+0x24/0x94 [snd_soc_core])
 r5:9d8234ac r4:9e7497c0

Use regulator_bulk_get() and explicitly free the regulators to prevent
this.

Also set sgtl5000->ldo to NULL when the regulator has been
unregistered to prevent possible derefence of the stale pointer.

9 years agoASoC: sgtl5000: use devm_* functions to allocate memory
Lothar Waßmann [Thu, 17 Jul 2014 11:27:02 +0000 (13:27 +0200)]
ASoC: sgtl5000: use devm_* functions to allocate memory

9 years agoASoC: sgtl5000: source cleanup
Lothar Waßmann [Thu, 17 Jul 2014 11:26:48 +0000 (13:26 +0200)]
ASoC: sgtl5000: source cleanup

9 years agousb: musb: core: properly setup the HW before registering it to the USB core
Lothar Waßmann [Thu, 17 Jul 2014 10:56:12 +0000 (12:56 +0200)]
usb: musb: core: properly setup the HW before registering it to the USB core

Without this patch overriding the USBOTG_ID pin by setting the iddig
bit in the USB_MODE register doesn't work because it obviously is done
too late to be recognized correctly.

9 years agousb: musb: core: cleanup - remove some useless 'break's from switch statements
Lothar Waßmann [Thu, 17 Jul 2014 10:56:02 +0000 (12:56 +0200)]
usb: musb: core: cleanup - remove some useless 'break's from switch statements

9 years agousb: phy: am335x: call usb_gen_phy_init()/usb_gen_phy_shutdown() in am335x_init(...
Lothar Waßmann [Thu, 17 Jul 2014 10:50:28 +0000 (12:50 +0200)]
usb: phy: am335x: call usb_gen_phy_init()/usb_gen_phy_shutdown() in am335x_init()/am335x_shutdown()

9 years agousb: phy: am335x: setup the gen_phy function pointers _before_ adding the phy
Lothar Waßmann [Thu, 17 Jul 2014 10:49:41 +0000 (12:49 +0200)]
usb: phy: am335x: setup the gen_phy function pointers _before_ adding the phy

9 years agousb: phy: am335x: group the #includes by subdirs
Lothar Waßmann [Thu, 17 Jul 2014 10:48:33 +0000 (12:48 +0200)]
usb: phy: am335x: group the #includes by subdirs

9 years agousb: musb_am335x: make module unload/reload work
Lothar Waßmann [Thu, 17 Jul 2014 09:58:55 +0000 (11:58 +0200)]
usb: musb_am335x: make module unload/reload work

Currently unloading and reloading the usb-am335x module will render
the USB driver non-functional. This is because of_platform_populate()
does nothing upon reload because the OF_POPULATED flag will still be
set on the device nodes from the first module load.

Clearing this flag when unregistering the devices makes this driver
functional also upon repeated unload/load sequences.

9 years agousb: musb_am335x: source cleanup
Lothar Waßmann [Thu, 17 Jul 2014 09:51:12 +0000 (11:51 +0200)]
usb: musb_am335x: source cleanup

- remove comma after end of list delimiter
  The empty entry must always be the last item in the list, thus there
  is no point in having a trailing comma to facilitate adding
  succeding entries.
  Remove the comma, so that inadvertedly adding an entry after the end
  of list sentinel will produce a compile time error rather than an
  unreachable entry in the list.
- consistently use tabs for indentation

9 years agoARM: dts: AM33XX: fix compatible string for RTC
Lothar Waßmann [Thu, 17 Jul 2014 09:47:49 +0000 (11:47 +0200)]
ARM: dts: AM33XX: fix compatible string for RTC

9 years agoASoC: am335x-tx48: update sound driver
Lothar Waßmann [Thu, 17 Jul 2014 12:56:54 +0000 (14:56 +0200)]
ASoC: am335x-tx48: update sound driver

9 years agoARM: dts: am335x-tx48: fix mclk definition
Lothar Waßmann [Thu, 17 Jul 2014 12:55:51 +0000 (14:55 +0200)]
ARM: dts: am335x-tx48: fix mclk definition

9 years agoARM: dts: am335x-tx48: add support for LT3589 PMIC
Lothar Waßmann [Thu, 17 Jul 2014 09:25:09 +0000 (11:25 +0200)]
ARM: dts: am335x-tx48: add support for LT3589 PMIC

9 years agoARM: dts: am335x-tx48: force regulators for LCD and CAN XCVR always on
Lothar Waßmann [Thu, 17 Jul 2014 09:24:38 +0000 (11:24 +0200)]
ARM: dts: am335x-tx48: force regulators for LCD and CAN XCVR always on

9 years agoARM: dts: am335x-tx48: remove pinctrl from usb0_phy
Lothar Waßmann [Thu, 17 Jul 2014 09:17:14 +0000 (11:17 +0200)]
ARM: dts: am335x-tx48: remove pinctrl from usb0_phy

The pins used for VBUSEN and OC in host mode are also used for the 2nd
CAN interface. When the USB0 interface is used in device mode, the
pins can still be used for the CAN interface if they are not claimed
by the USB PHY driver. Thus move the pinctrl reference to the
reg_usbotg which will only claim them for host mode.

9 years agoARM: dts: am335x-tx48: remove unnecessary usbhost regulator
Lothar Waßmann [Thu, 17 Jul 2014 09:16:13 +0000 (11:16 +0200)]
ARM: dts: am335x-tx48: remove unnecessary usbhost regulator

9 years agoARM: dts: am335x-tx48: fix pintypes for SSI interface
Lothar Waßmann [Thu, 17 Jul 2014 09:15:49 +0000 (11:15 +0200)]
ARM: dts: am335x-tx48: fix pintypes for SSI interface

9 years agoARM: dts: am335x-tx48: fix pin types for CSPI interface
Lothar Waßmann [Thu, 17 Jul 2014 09:15:34 +0000 (11:15 +0200)]
ARM: dts: am335x-tx48: fix pin types for CSPI interface

9 years agoARM: dts: am335x-tx48: add aliases for usb nodes
Lothar Waßmann [Thu, 17 Jul 2014 09:14:04 +0000 (11:14 +0200)]
ARM: dts: am335x-tx48: add aliases for usb nodes

9 years agoARM: defconfig: update Ka-Ro TX48 defconfig
Lothar Waßmann [Thu, 17 Jul 2014 08:18:33 +0000 (10:18 +0200)]
ARM: defconfig: update Ka-Ro TX48 defconfig

9 years agousb: musb: dsps: fix the base address for accessing the mode register
Lothar Waßmann [Mon, 30 Jun 2014 10:54:27 +0000 (12:54 +0200)]
usb: musb: dsps: fix the base address for accessing the mode register

The USB_MODE and PHY_UTMI registers are both located in the USB_CTRL
address space, not the USB_CORE space.

9 years agousb: musb: dsps: coding style cleanup
Lothar Waßmann [Mon, 30 Jun 2014 10:51:57 +0000 (12:51 +0200)]
usb: musb: dsps: coding style cleanup

There is no reason for the register accessor functions not to adhere
to the CodingStyle rules.

9 years agoASoC: am335x-tx48: add support for mclk
Lothar Waßmann [Fri, 27 Jun 2014 09:49:41 +0000 (11:49 +0200)]
ASoC: am335x-tx48: add support for mclk

9 years agousb: musb: add dependency on AM335X_PHY_USB for USB_MUSB_AM35X to fix build error
Lothar Waßmann [Fri, 27 Jun 2014 09:29:29 +0000 (11:29 +0200)]
usb: musb: add dependency on AM335X_PHY_USB for USB_MUSB_AM35X to fix build error

9 years agoclk: ti: am335x: add support for DT defined clocks
Lothar Waßmann [Fri, 27 Jun 2014 09:28:17 +0000 (11:28 +0200)]
clk: ti: am335x: add support for DT defined clocks

9 years agoARM: dts: am335x-tx48: cleanup
Lothar Waßmann [Fri, 27 Jun 2014 09:26:36 +0000 (11:26 +0200)]
ARM: dts: am335x-tx48: cleanup

- sort nodes alphabetically
- move 'status' property to end of property list
- reduce indentation level of pinctrl comments
- rename sound card model to 'TX48-SGTL5000'

9 years agoARM: dts: am335x-tx45: move 'status' property to end of property list
Lothar Waßmann [Wed, 18 Jun 2014 10:58:06 +0000 (12:58 +0200)]
ARM: dts: am335x-tx45: move 'status' property to end of property list

9 years agoARM: defconfig: add Ka-Ro TX48 defconfig
Lothar Waßmann [Wed, 7 May 2014 08:45:25 +0000 (10:45 +0200)]
ARM: defconfig: add Ka-Ro TX48 defconfig

9 years agoARM: AM33XX: dts: fix regulator 'gpio' property names
Lothar Waßmann [Wed, 7 May 2014 08:35:24 +0000 (10:35 +0200)]
ARM: AM33XX: dts: fix regulator 'gpio' property names

9 years agopwm: tiehrpwm: honor PWM_POLARITY_INVERTED flag when shutting down PWM
Lothar Waßmann [Thu, 12 Dec 2013 08:06:48 +0000 (09:06 +0100)]
pwm: tiehrpwm: honor PWM_POLARITY_INVERTED flag when shutting down PWM

9 years agospi: omap2-mcspi: don't call dma_async_issue_pending() when there is no dma_tx
Lothar Waßmann [Wed, 11 Dec 2013 15:30:12 +0000 (16:30 +0100)]
spi: omap2-mcspi: don't call dma_async_issue_pending() when there is no dma_tx

9 years agospi: omap2-mcspi: general cleanups
Lothar Waßmann [Wed, 11 Dec 2013 15:18:35 +0000 (16:18 +0100)]
spi: omap2-mcspi: general cleanups

- fix indentations
- remove useles initialization of regs_offset
- remove blank line at end of function
- remove comma after end marker in struct initializer

9 years agogpu: drm: tilcdc: fix double free error
Lothar Waßmann [Wed, 11 Dec 2013 15:07:38 +0000 (16:07 +0100)]
gpu: drm: tilcdc: fix double free error

The pointer passed to display_timings_release() is already being freed
in that function.

9 years agoASoC: am335x-tx48: add support for Ka-Ro TX48 module
Lothar Waßmann [Wed, 11 Dec 2013 15:06:45 +0000 (16:06 +0100)]
ASoC: am335x-tx48: add support for Ka-Ro TX48 module

9 years agousb: phy: am335x-control: prevent module from being unloaded when in use
Lothar Waßmann [Wed, 11 Dec 2013 14:51:15 +0000 (15:51 +0100)]
usb: phy: am335x-control: prevent module from being unloaded when in use

9 years agousb: musb: print error message with dev_err() instead of dev_dbg()
Lothar Waßmann [Wed, 11 Dec 2013 14:48:15 +0000 (15:48 +0100)]
usb: musb: print error message with dev_err() instead of dev_dbg()

9 years agomfd: ti_am335x_tscadc: print error message with dev_err() instead of dev_dbg()
Lothar Waßmann [Wed, 11 Dec 2013 14:46:37 +0000 (15:46 +0100)]
mfd: ti_am335x_tscadc: print error message with dev_err() instead of dev_dbg()

9 years agomfd: ti_am335x_tscadc: cleanup mixed space/tab indentation
Lothar Waßmann [Wed, 11 Dec 2013 14:46:03 +0000 (15:46 +0100)]
mfd: ti_am335x_tscadc: cleanup mixed space/tab indentation

9 years agoARM: dts: am33xx: adjust mmc labels to be in sync with ref manual
Lothar Waßmann [Wed, 11 Dec 2013 14:43:30 +0000 (15:43 +0100)]
ARM: dts: am33xx: adjust mmc labels to be in sync with ref manual

9 years agoARM: dts: am33xx: update dts file for Ka-Ro TX48
Lothar Waßmann [Wed, 11 Dec 2013 14:35:05 +0000 (15:35 +0100)]
ARM: dts: am33xx: update dts file for Ka-Ro TX48

9 years agoARM: dts: am33xx: add support for Ka-Ro TX48
Lothar Waßmann [Mon, 2 Dec 2013 10:01:31 +0000 (11:01 +0100)]
ARM: dts: am33xx: add support for Ka-Ro TX48

9 years agoAdd linux-next specific files for 20140627
Stephen Rothwell [Fri, 27 Jun 2014 05:03:45 +0000 (15:03 +1000)]
Add linux-next specific files for 20140627

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
9 years agoMerge branch 'akpm/master'
Stephen Rothwell [Fri, 27 Jun 2014 04:27:33 +0000 (14:27 +1000)]
Merge branch 'akpm/master'

9 years agomm: add strictlimit knob
Maxim Patlasov [Thu, 26 Jun 2014 00:43:24 +0000 (10:43 +1000)]
mm: add strictlimit knob

The "strictlimit" feature was introduced to enforce per-bdi dirty limits
for FUSE which sets bdi max_ratio to 1% by default:

http://article.gmane.org/gmane.linux.kernel.mm/105809

However the feature can be useful for other relatively slow or untrusted
BDIs like USB flash drives and DVD+RW.  The patch adds a knob to enable
the feature:

echo 1 > /sys/class/bdi/X:Y/strictlimit

Being enabled, the feature enforces bdi max_ratio limit even if global
(10%) dirty limit is not reached.  Of course, the effect is not visible
until /sys/class/bdi/X:Y/max_ratio is decreased to some reasonable value.

Signed-off-by: Maxim Patlasov <MPatlasov@parallels.com>
Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Theodore Ts'o <tytso@mit.edu>
Cc: "Artem S. Tashkinov" <t.artem@lycos.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Jan Kara <jack@suse.cz>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agodrivers/w1/w1_int.c: call put_device if device_register fails
Levente Kurusa [Thu, 26 Jun 2014 00:43:24 +0000 (10:43 +1000)]
drivers/w1/w1_int.c: call put_device if device_register fails

Currently, memsetting and kfreeing the device is bad behaviour.  The
device will have a reference count of 1 and hence can cause trouble
because it has kfree'd.  Proper way to handle a failed device_register is
to call put_device right after it fails.

Signed-off-by: Levente Kurusa <levex@linux.com>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agoDocumentation/filesystems/vfat.txt: update the limitation for fat fallocate
Namjae Jeon [Thu, 26 Jun 2014 00:43:23 +0000 (10:43 +1000)]
Documentation/filesystems/vfat.txt: update the limitation for fat fallocate

Update the limitation for fat fallocate.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agofat: permit to return phy block number by fibmap in fallocated region
Namjae Jeon [Thu, 26 Jun 2014 00:43:23 +0000 (10:43 +1000)]
fat: permit to return phy block number by fibmap in fallocated region

Make the fibmap call the return the proper physical block number for any
offset request in the fallocated range.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agofat: fallback to buffered write in case of fallocated region on direct IO
Namjae Jeon [Thu, 26 Jun 2014 00:43:23 +0000 (10:43 +1000)]
fat: fallback to buffered write in case of fallocated region on direct IO

For normal cases of direct IO write, trying to seek to location greater
than file size, makes it fall back to buffered write to fill that region.
Similarly, in case for write in Fallocated region, make it fall to
buffered write.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agofat: zero out seek range on _fat_get_block
Namjae Jeon [Thu, 26 Jun 2014 00:43:23 +0000 (10:43 +1000)]
fat: zero out seek range on _fat_get_block

For normal buffered write operations, normally if we try to write to an
offset > than file size, it does a cont_expand_zero till that offset.
Now, in case of fallocated regions, since the blocks are already
allocated.  So, make it zero out that buffers for those blocks till the
seek'ed offset.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agofat: add fat_fallocate operation
Namjae Jeon [Thu, 26 Jun 2014 00:43:22 +0000 (10:43 +1000)]
fat: add fat_fallocate operation

Implement preallocation via the fallocate syscall on VFAT partitions.
This patch is based on an earlier patch of the same name which had some
issues detailed below and did not get accepted.  Refer
https://lkml.org/lkml/2007/12/22/130.

a) The preallocated space was not persistent when the
   FALLOC_FL_KEEP_SIZE flag was set.  It will deallocate cluster at evict
   time.

b) There was no need to zero out the clusters when the flag was set
   Instead of doing an expanding truncate, just allocate clusters and add
   them to the fat chain.  This reduces preallocation time.

Compatibility with windows:

There are no issues when FALLOC_FL_KEEP_SIZE is not set because it just
does an expanding truncate.  Thus reading from the preallocated area on
windows returns null until data is written to it.

When a file with preallocated area using the FALLOC_FL_KEEP_SIZE was
written to on windows, the windows driver freed-up the preallocated
clusters and allocated new clusters for the new data.  The freed up
clusters gets reflected in the free space available for the partition
which can be seen from the Volume properties.

The windows chkdsk tool also does not report any errors on a disk
containing files with preallocated space.

And there is also no issue using linux fat fsck.  because discard
preallocated clusters at repair time.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agofat: add i_disksize to represent uninitialized size
Namjae Jeon [Thu, 26 Jun 2014 00:43:22 +0000 (10:43 +1000)]
fat: add i_disksize to represent uninitialized size

Add i_disksize to represent uninitialized allocated size.
And mmu_private represent initialized allocated size.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agomemcg-deprecate-memoryforce_empty-knob-fix
Andrew Morton [Thu, 26 Jun 2014 00:43:22 +0000 (10:43 +1000)]
memcg-deprecate-memoryforce_empty-knob-fix

- s/pr_info/pr_info_once/
- fix garbled printk text

Cc: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agomemcg: deprecate memory.force_empty knob
Michal Hocko [Thu, 26 Jun 2014 00:43:22 +0000 (10:43 +1000)]
memcg: deprecate memory.force_empty knob

force_empty has been introduced primarily to drop memory before it gets
reparented on the group removal.  This alone doesn't sound fully justified
because reparented pages which are not in use can be reclaimed also later
when there is a memory pressure on the parent level.

Mark the knob CFTYPE_INSANE which tells the cgroup core that it shouldn't
create the knob with the experimental sane_behavior.  Other users will get
informed about the deprecation and asked to tell us more because I do not
expect most users will use sane_behavior cgroups mode very soon.

Anyway I expect that most users will be simply cgroup remove handlers
which do that since ever without having any good reason for it.

If somebody really cares because reparented pages, which would be dropped
otherwise, push out more important ones then we should fix the reparenting
code and put pages to the tail.

Signed-off-by: Michal Hocko <mhocko@suse.cz>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Greg Thelen <gthelen@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agomm: remap_file_pages: grab file ref to prevent race while mmaping
Sasha Levin [Thu, 26 Jun 2014 00:43:22 +0000 (10:43 +1000)]
mm: remap_file_pages: grab file ref to prevent race while mmaping

A file reference should be held while a file is mmaped, otherwise it might
be freed while being used.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Suggested-by: Hugh Dickins <hughd@google.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agomm: remap_file_pages: initialize populate before usage
Sasha Levin [Thu, 26 Jun 2014 00:43:21 +0000 (10:43 +1000)]
mm: remap_file_pages: initialize populate before usage

'populate' wasn't initialized before being used in error paths,
causing panics when mm_populate() would get called with invalid
values.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agomm-replace-remap_file_pages-syscall-with-emulation-fix
Andrew Morton [Thu, 26 Jun 2014 00:43:21 +0000 (10:43 +1000)]
mm-replace-remap_file_pages-syscall-with-emulation-fix

fix spello

Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: Armin Rigo <arigo@tunes.org>
Cc: Dave Jones <davej@redhat.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agomm: replace remap_file_pages() syscall with emulation
Kirill A. Shutemov [Thu, 26 Jun 2014 00:43:21 +0000 (10:43 +1000)]
mm: replace remap_file_pages() syscall with emulation

remap_file_pages(2) was invented to be able efficiently map parts of huge
file into limited 32-bit virtual address space such as in database
workloads.

Nonlinear mappings are pain to support and it seems there's no legitimate
use-cases nowadays since 64-bit systems are widely available.

Let's drop it and get rid of all these special-cased code.

The patch replaces the syscall with emulation which creates new VMA on
each remap_file_pages(), unless they it can be merged with an adjacent
one.

I didn't find *any* real code that uses remap_file_pages(2) to test
emulation impact on.  I've checked Debian code search and source of all
packages in ALT Linux.  No real users: libc wrappers, mentions in strace,
gdb, valgrind and this kind of stuff.

There are few basic tests in LTP for the syscall. They work just fine
with emulation.

To test performance impact, I've written small test case which demonstrate
pretty much worst case scenario: map 4G shmfs file, write to begin of
every page pgoff of the page, remap pages in reverse order, read every
page.

The test creates 1 million of VMAs if emulation is in use, so I had to set
vm.max_map_count to 1100000 to avoid -ENOMEM.

Before: 23.3 ( +-  4.31% ) seconds
After: 43.9 ( +-  0.85% ) seconds
Slowdown: 1.88x

I believe we can live with that.

Test case:

#define _GNU_SOURCE
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/mman.h>

#define MB (1024UL * 1024)
#define SIZE (4096 * MB)

int main(int argc, char **argv)
{
unsigned long *p;
long i, pass;

for (pass = 0; pass < 10; pass++) {
p = mmap(NULL, SIZE, PROT_READ|PROT_WRITE,
MAP_SHARED | MAP_ANONYMOUS, -1, 0);
if (p == MAP_FAILED) {
perror("mmap");
return -1;
}

for (i = 0; i < SIZE / 4096; i++)
p[i * 4096 / sizeof(*p)] = i;

for (i = 0; i < SIZE / 4096; i++) {
if (remap_file_pages(p + i * 4096 / sizeof(*p), 4096,
0, (SIZE - 4096 * (i + 1)) >> 12, 0)) {
perror("remap_file_pages");
return -1;
}
}

for (i = SIZE / 4096 - 1; i >= 0; i--)
assert(p[i * 4096 / sizeof(*p)] == SIZE / 4096 - i - 1);

munmap(p, SIZE);
}

return 0;
}

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Dave Jones <davej@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Armin Rigo <arigo@tunes.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agokernel/kprobes.c: convert printk to pr_foo()
Fabian Frederick [Thu, 26 Jun 2014 00:43:21 +0000 (10:43 +1000)]
kernel/kprobes.c: convert printk to pr_foo()

Also fixes some checkpatch warnings
-Static initialization
-Lines over 80 characters

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agodrivers/net/ethernet/amd/pcnet32.c: neaten and remove unnecessary OOM messages
Joe Perches [Thu, 26 Jun 2014 00:43:21 +0000 (10:43 +1000)]
drivers/net/ethernet/amd/pcnet32.c: neaten and remove unnecessary OOM messages

Make the code flow a little better for 80 columns.

Use a consistent style for the RX and TX rings allocation.
Use BIT macro.
Use a temporary unsiged int entries for (1<<size).
Remove the OOM messages as they duplicate the generic
OOM and dump_stack() provided by the memory subsystem.
Reflow allocs to 80 columns.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Don Fry <pcnet32@frontier.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agovme: bridges: use pci_zalloc_consistent
Joe Perches [Thu, 26 Jun 2014 00:43:20 +0000 (10:43 +1000)]
vme: bridges: use pci_zalloc_consistent

Remove the now unnecessary memset too.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Martyn Welch <martyn.welch@ge.com>
Cc: Manohar Vanga <manohar.vanga@gmail.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agosynclink_gt: use pci_zalloc_consistent
Joe Perches [Thu, 26 Jun 2014 00:43:20 +0000 (10:43 +1000)]
synclink_gt: use pci_zalloc_consistent

Remove the now unnecessary memset too.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agostaging: use pci_zalloc_consistent
Joe Perches [Thu, 26 Jun 2014 00:43:20 +0000 (10:43 +1000)]
staging: use pci_zalloc_consistent

Remove the now unnecessary memset too.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Lior Dotan <liodot@gmail.com>
Cc: Christopher Harrer <charrer@alacritech.com>
Cc: Forest Bond <forest@alittletooquiet.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agoscsi: use pci_zalloc_consistent
Joe Perches [Thu, 26 Jun 2014 00:43:20 +0000 (10:43 +1000)]
scsi: use pci_zalloc_consistent

Remove the now unnecessary memset too.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Adam Radford <linuxraid@lsi.com>
Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
Cc: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Cc: Dario Ballabio <ballabio_dario@emc.com>
Cc: Michael Neuffer <mike@i-Connect.Net>
Cc: "Stephen M. Cameron" <scameron@beardog.cce.hp.com>
Cc: Neela Syam Kolli <megaraidlinux@lsi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agortlwifi: use pci_zalloc_consistent
Joe Perches [Thu, 26 Jun 2014 00:43:19 +0000 (10:43 +1000)]
rtlwifi: use pci_zalloc_consistent

Remove the now unnecessary memset too.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Chaoming Li <chaoming_li@realsil.com.cn>
Cc: "John W. Linville" <linville@tuxdriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agortl818x: use pci_zalloc_consistent
Joe Perches [Thu, 26 Jun 2014 00:43:19 +0000 (10:43 +1000)]
rtl818x: use pci_zalloc_consistent

Remove the now unnecessary memset too.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: "John W. Linville" <linville@tuxdriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agomwl8k: use pci_zalloc_consistent
Joe Perches [Thu, 26 Jun 2014 00:43:19 +0000 (10:43 +1000)]
mwl8k: use pci_zalloc_consistent

Remove the now unnecessary memset too.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Lennert Buytenhek <buytenh@wantstofly.org>
Cc: "John W. Linville" <linville@tuxdriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agoipw2100: use pci_zalloc_consistent
Joe Perches [Thu, 26 Jun 2014 00:43:19 +0000 (10:43 +1000)]
ipw2100: use pci_zalloc_consistent

Remove the now unnecessary memset too.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Stanislav Yakovlev <stas.yakovlev@gmail.com>
Cc: "John W. Linville" <linville@tuxdriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agoirda: use pci_zalloc_consistent
Joe Perches [Thu, 26 Jun 2014 00:43:19 +0000 (10:43 +1000)]
irda: use pci_zalloc_consistent

Remove the now unnecessary memset too.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Samuel Ortiz <samuel@sortiz.org>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agoqlogic: use pci_zalloc_consistent
Joe Perches [Thu, 26 Jun 2014 00:43:18 +0000 (10:43 +1000)]
qlogic: use pci_zalloc_consistent

Remove the now unnecessary memset too.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Manish Chopra <manish.chopra@qlogic.com>
Cc: Sony Chacko <sony.chacko@qlogic.com>
Cc: Rajesh Borundia <rajesh.borundia@qlogic.com>
Cc: Shahed Shaikh <shahed.shaikh@qlogic.com>
Cc: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Cc: Ron Mercer <ron.mercer@qlogic.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agomicrel: use pci_zalloc_consistent
Joe Perches [Thu, 26 Jun 2014 00:43:18 +0000 (10:43 +1000)]
micrel: use pci_zalloc_consistent

Remove the now unnecessary memset too.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agosky2: use pci_zalloc_consistent
Joe Perches [Thu, 26 Jun 2014 00:43:18 +0000 (10:43 +1000)]
sky2: use pci_zalloc_consistent

Remove the now unnecessary memset too.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Mirko Lindner <mlindner@marvell.com>
Cc: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agoenic: use pci_zalloc_consistent
Joe Perches [Thu, 26 Jun 2014 00:43:18 +0000 (10:43 +1000)]
enic: use pci_zalloc_consistent

Remove the now unnecessary memset too.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Christian Benvenuti <benve@cisco.com>
Cc: Sujith Sankar <ssujith@cisco.com>
Cc: Govindarajulu Varadarajan <_govind@gmx.com>
Cc: Neel Patel <neepatel@cisco.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agoatl1e: use pci_zalloc_consistent
Joe Perches [Thu, 26 Jun 2014 00:43:18 +0000 (10:43 +1000)]
atl1e: use pci_zalloc_consistent

Remove the now unnecessary memset too.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agoamd: use pci_zalloc_consistent
Joe Perches [Thu, 26 Jun 2014 00:43:17 +0000 (10:43 +1000)]
amd: use pci_zalloc_consistent

Remove the now unnecessary memset too.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Don Fry <pcnet32@frontier.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agomedia: use pci_zalloc_consistent
Joe Perches [Thu, 26 Jun 2014 00:43:17 +0000 (10:43 +1000)]
media: use pci_zalloc_consistent

Remove the now unnecessary memset too.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Mauro Carvalho Chehab <m.chehab@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agoi810: use pci_zalloc_consistent
Joe Perches [Thu, 26 Jun 2014 00:43:17 +0000 (10:43 +1000)]
i810: use pci_zalloc_consistent

Remove the now unnecessary memset too.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: David Airlie <airlied@linux.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agoinfiniband: use pci_zalloc_consistent
Joe Perches [Thu, 26 Jun 2014 00:43:17 +0000 (10:43 +1000)]
infiniband: use pci_zalloc_consistent

Remove the now unnecessary memset too.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Tom Tucker <tom@opengridcomputing.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Cc: Roland Dreier <roland@kernel.org>
Cc: Sean Hefty <sean.hefty@intel.com>
Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
Cc: Faisal Latif <faisal.latif@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agocrypto: use pci_zalloc_consistent
Joe Perches [Thu, 26 Jun 2014 00:43:16 +0000 (10:43 +1000)]
crypto: use pci_zalloc_consistent

Remove the now unnecessary memset too.

Signed-off-by: Joe Perches <joe@perches.com>
Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agoblock: use pci_zalloc_consistent
Joe Perches [Thu, 26 Jun 2014 00:43:16 +0000 (10:43 +1000)]
block: use pci_zalloc_consistent

Remove the now unnecessary memset too.

Signed-off-by: Joe Perches <joe@perches.com>
Mike Miller <mike.miller@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agoatm: use pci_zalloc_consistent
Joe Perches [Thu, 26 Jun 2014 00:43:16 +0000 (10:43 +1000)]
atm: use pci_zalloc_consistent

Remove the now unnecessary memset too.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agopci-dma-compat: add pci_zalloc_consistent helper
Joe Perches [Thu, 26 Jun 2014 00:43:16 +0000 (10:43 +1000)]
pci-dma-compat: add pci_zalloc_consistent helper

Add this helper for consistency with pci_zalloc_coherent
and the ability to remove unnecessary memset(,0,) uses.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
Cc: "John W. Linville" <linville@tuxdriver.com>
Cc: "Stephen M. Cameron" <scameron@beardog.cce.hp.com>
Cc: Adam Radford <linuxraid@lsi.com>
Cc: Chaoming Li <chaoming_li@realsil.com.cn>
Cc: Chas Williams <chas@cmf.nrl.navy.mil>
Cc: Christian Benvenuti <benve@cisco.com>
Cc: Christopher Harrer <charrer@alacritech.com>
Cc: Dario Ballabio <ballabio_dario@emc.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Don Fry <pcnet32@frontier.com>
Cc: Faisal Latif <faisal.latif@intel.com>
Cc: Forest Bond <forest@alittletooquiet.net>
Cc: Govindarajulu Varadarajan <_govind@gmx.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
Cc: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Cc: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Lennert Buytenhek <buytenh@wantstofly.org>
Cc: Lior Dotan <liodot@gmail.com>
Cc: Manish Chopra <manish.chopra@qlogic.com>
Cc: Manohar Vanga <manohar.vanga@gmail.com>
Cc: Martyn Welch <martyn.welch@ge.com>
Cc: Mauro Carvalho Chehab <m.chehab@samsung.com>
Cc: Michael Neuffer <mike@i-Connect.Net>
Cc: Mirko Lindner <mlindner@marvell.com>
Cc: Neel Patel <neepatel@cisco.com>
Cc: Neela Syam Kolli <megaraidlinux@lsi.com>
Cc: Rajesh Borundia <rajesh.borundia@qlogic.com>
Cc: Roland Dreier <roland@kernel.org>
Cc: Ron Mercer <ron.mercer@qlogic.com>
Cc: Samuel Ortiz <samuel@sortiz.org>
Cc: Sean Hefty <sean.hefty@intel.com>
Cc: Shahed Shaikh <shahed.shaikh@qlogic.com>
Cc: Sony Chacko <sony.chacko@qlogic.com>
Cc: Stanislav Yakovlev <stas.yakovlev@gmail.com>
Cc: Stephen Hemminger <stephen@networkplumber.org>
Cc: Steve Wise <swise@opengridcomputing.com>
Cc: Sujith Sankar <ssujith@cisco.com>
Cc: Tom Tucker <tom@opengridcomputing.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agoinclude/linux: remove strict_strto* definitions
Daniel Walter [Thu, 26 Jun 2014 00:43:16 +0000 (10:43 +1000)]
include/linux: remove strict_strto* definitions

Remove obsolete and unused strict_strto* functions

Signed-off-by: Daniel Walter <dwalter@google.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agonet/sunrpc: replace strict_strto calls
Daniel Walter [Thu, 26 Jun 2014 00:43:15 +0000 (10:43 +1000)]
net/sunrpc: replace strict_strto calls

Replace obsolete strict_strto calls with appropriate kstrto calls

Signed-off-by: Daniel Walter <dwalter@google.com>
Cc: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agodrivers/scsi: replace strict_strto calls
Daniel Walter [Thu, 26 Jun 2014 00:43:15 +0000 (10:43 +1000)]
drivers/scsi: replace strict_strto calls

Replace obsolete strict_strto with more appropriate kstrto calls

Signed-off-by: Daniel Walter <dwalter@google.com>
Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agoarch/x86: replace strict_strto calls
Daniel Walter [Thu, 26 Jun 2014 00:43:15 +0000 (10:43 +1000)]
arch/x86: replace strict_strto calls

Replace obsolete strict_strto calls with appropriate kstrto calls

Signed-off-by: Daniel Walter <dwalter@google.com>
Acked-by: Borislav Petkov <bp@suse.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agoarch/powerpc: replace obsolete strict_strto* calls
Daniel Walter [Thu, 26 Jun 2014 00:43:15 +0000 (10:43 +1000)]
arch/powerpc: replace obsolete strict_strto* calls

Replace strict_strto calls with more appropriate kstrto calls

Signed-off-by: Daniel Walter <dwalter@google.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agoarch/arm/mach-w90x900/cpu.c: replace obsolete strict_strto
Daniel Walter [Thu, 26 Jun 2014 00:43:15 +0000 (10:43 +1000)]
arch/arm/mach-w90x900/cpu.c: replace obsolete strict_strto

Replace obsolete strict_strto with kstrto calls

Signed-off-by: Daniel Walter <dwalter@google.com>
Cc: Wan ZongShun <mcuos.com@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agoarch/arm/mach-s3c24xx/mach-jive.c: replace strict_strto* with kstrto*
Daniel Walter [Thu, 26 Jun 2014 00:43:14 +0000 (10:43 +1000)]
arch/arm/mach-s3c24xx/mach-jive.c: replace strict_strto* with kstrto*

Replace obsolete strict_strto call with kstrto

Signed-off-by: Daniel Walter <dwalter@google.com>
Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agoarch/arm/mach-pxa: replace strict_strto call with kstrto
Daniel Walter [Thu, 26 Jun 2014 00:43:14 +0000 (10:43 +1000)]
arch/arm/mach-pxa: replace strict_strto call with kstrto

Replace obsolete call to strict_strto with kstrto

Signed-off-by: Daniel Walter <dwalter@google.com>
Cc: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agoarch/arm/mach-omap2: replace strict_strto* with kstrto*
Daniel Walter [Thu, 26 Jun 2014 00:43:14 +0000 (10:43 +1000)]
arch/arm/mach-omap2: replace strict_strto* with kstrto*

Replace obsolete strict_strto call with kstrto calls.
Simplify copy_from_user/strict_strto by using kstrto_from_user

Signed-off-by: Daniel Walter <dwalter@google.com>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agoinit/main.c: code clean-up
Fabian Frederick [Thu, 26 Jun 2014 00:43:14 +0000 (10:43 +1000)]
init/main.c: code clean-up

Fixing some checkpatch warnings(remove global initialization, move
__initdata, coalesce formats ...)

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agodrivers/gpio/gpio-zevio.c: fix build
Andrew Morton [Thu, 26 Jun 2014 00:43:14 +0000 (10:43 +1000)]
drivers/gpio/gpio-zevio.c: fix build

Unbreak i386 allmodconfig.

This is a hack - please fix properly ;)

Cc: Fabian Vogt <fabian@ritter-vogt.de>
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 years agoMerge branch 'akpm-current/current'
Stephen Rothwell [Fri, 27 Jun 2014 04:08:28 +0000 (14:08 +1000)]
Merge branch 'akpm-current/current'

9 years agoMerge branch 'rd-docs/master'
Stephen Rothwell [Fri, 27 Jun 2014 03:46:56 +0000 (13:46 +1000)]
Merge branch 'rd-docs/master'

9 years agoMerge remote-tracking branch 'aio/master'
Stephen Rothwell [Fri, 27 Jun 2014 03:45:31 +0000 (13:45 +1000)]
Merge remote-tracking branch 'aio/master'

9 years agoMerge remote-tracking branch 'lzo-update/lzo-update'
Stephen Rothwell [Fri, 27 Jun 2014 03:43:54 +0000 (13:43 +1000)]
Merge remote-tracking branch 'lzo-update/lzo-update'

9 years agoMerge remote-tracking branch 'random/dev'
Stephen Rothwell [Fri, 27 Jun 2014 03:42:30 +0000 (13:42 +1000)]
Merge remote-tracking branch 'random/dev'