]> git.kernelconcepts.de Git - karo-tx-linux.git/log
karo-tx-linux.git
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'

9 years agoMerge remote-tracking branch 'clk/clk-next'
Stephen Rothwell [Fri, 27 Jun 2014 03:41:17 +0000 (13:41 +1000)]
Merge remote-tracking branch 'clk/clk-next'

9 years agoMerge remote-tracking branch 'ktest/for-next'
Stephen Rothwell [Fri, 27 Jun 2014 03:40:20 +0000 (13:40 +1000)]
Merge remote-tracking branch 'ktest/for-next'

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

Conflicts:
fs/btrfs/ioctl.c
fs/dcache.c
fs/namei.c
fs/namespace.c

9 years agoMerge remote-tracking branch 'gpio/for-next'
Stephen Rothwell [Fri, 27 Jun 2014 03:29:02 +0000 (13:29 +1000)]
Merge remote-tracking branch 'gpio/for-next'

9 years agoMerge remote-tracking branch 'vhost/linux-next'
Stephen Rothwell [Fri, 27 Jun 2014 03:28:53 +0000 (13:28 +1000)]
Merge remote-tracking branch 'vhost/linux-next'

Conflicts:
drivers/vhost/net.c

9 years agoMerge remote-tracking branch 'pinctrl/for-next'
Stephen Rothwell [Fri, 27 Jun 2014 03:27:52 +0000 (13:27 +1000)]
Merge remote-tracking branch 'pinctrl/for-next'

9 years agoMerge remote-tracking branch 'scsi/for-next'
Stephen Rothwell [Fri, 27 Jun 2014 03:18:46 +0000 (13:18 +1000)]
Merge remote-tracking branch 'scsi/for-next'

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

9 years agoMerge remote-tracking branch 'char-misc/char-misc-next'
Stephen Rothwell [Fri, 27 Jun 2014 03:13:19 +0000 (13:13 +1000)]
Merge remote-tracking branch 'char-misc/char-misc-next'

Conflicts:
drivers/w1/masters/mxc_w1.c

9 years agoMerge remote-tracking branch 'staging/staging-next'
Stephen Rothwell [Fri, 27 Jun 2014 03:11:36 +0000 (13:11 +1000)]
Merge remote-tracking branch 'staging/staging-next'

9 years agoMerge remote-tracking branch 'usb/usb-next'
Stephen Rothwell [Fri, 27 Jun 2014 03:10:33 +0000 (13:10 +1000)]
Merge remote-tracking branch 'usb/usb-next'

9 years agoMerge remote-tracking branch 'driver-core/driver-core-next'
Stephen Rothwell [Fri, 27 Jun 2014 03:00:12 +0000 (13:00 +1000)]
Merge remote-tracking branch 'driver-core/driver-core-next'

9 years agoMerge remote-tracking branch 'workqueues/for-next'
Stephen Rothwell [Fri, 27 Jun 2014 02:58:40 +0000 (12:58 +1000)]
Merge remote-tracking branch 'workqueues/for-next'

9 years agoMerge remote-tracking branch 'percpu/for-next'
Stephen Rothwell [Fri, 27 Jun 2014 02:47:01 +0000 (12:47 +1000)]
Merge remote-tracking branch 'percpu/for-next'

9 years agoMerge remote-tracking branch 'kvm/linux-next'
Stephen Rothwell [Fri, 27 Jun 2014 02:37:35 +0000 (12:37 +1000)]
Merge remote-tracking branch 'kvm/linux-next'

9 years agoMerge remote-tracking branch 'rcu/rcu/next'
Stephen Rothwell [Fri, 27 Jun 2014 02:25:53 +0000 (12:25 +1000)]
Merge remote-tracking branch 'rcu/rcu/next'

9 years agoMerge remote-tracking branch 'irqchip/irqchip/for-next'
Stephen Rothwell [Fri, 27 Jun 2014 02:24:54 +0000 (12:24 +1000)]
Merge remote-tracking branch 'irqchip/irqchip/for-next'

9 years agoMerge remote-tracking branch 'edac-amd/for-next'
Stephen Rothwell [Fri, 27 Jun 2014 02:23:51 +0000 (12:23 +1000)]
Merge remote-tracking branch 'edac-amd/for-next'

9 years agoMerge remote-tracking branch 'edac/linux_next'
Stephen Rothwell [Fri, 27 Jun 2014 02:22:30 +0000 (12:22 +1000)]
Merge remote-tracking branch 'edac/linux_next'

9 years agoMerge remote-tracking branch 'tip/auto-latest'
Stephen Rothwell [Fri, 27 Jun 2014 02:10:38 +0000 (12:10 +1000)]
Merge remote-tracking branch 'tip/auto-latest'

9 years agoMerge remote-tracking branch 'spi/for-next'
Stephen Rothwell [Fri, 27 Jun 2014 02:09:23 +0000 (12:09 +1000)]
Merge remote-tracking branch 'spi/for-next'

9 years agoMerge remote-tracking branch 'devicetree/devicetree/next'
Stephen Rothwell [Fri, 27 Jun 2014 02:05:45 +0000 (12:05 +1000)]
Merge remote-tracking branch 'devicetree/devicetree/next'

9 years agoMerge remote-tracking branch 'audit/master'
Stephen Rothwell [Fri, 27 Jun 2014 02:03:56 +0000 (12:03 +1000)]
Merge remote-tracking branch 'audit/master'

Conflicts:
arch/mips/include/asm/syscall.h
arch/mips/kernel/ptrace.c
arch/x86/Kconfig
kernel/audit.c

9 years agoMerge remote-tracking branch 'trivial/for-next'
Stephen Rothwell [Fri, 27 Jun 2014 02:02:28 +0000 (12:02 +1000)]
Merge remote-tracking branch 'trivial/for-next'

Conflicts:
arch/arm/mach-msm/Kconfig

9 years agoMerge remote-tracking branch 'iommu/next'
Stephen Rothwell [Fri, 27 Jun 2014 02:01:07 +0000 (12:01 +1000)]
Merge remote-tracking branch 'iommu/next'

9 years agoMerge remote-tracking branch 'selinux/next'
Stephen Rothwell [Fri, 27 Jun 2014 01:59:49 +0000 (11:59 +1000)]
Merge remote-tracking branch 'selinux/next'

9 years agoMerge remote-tracking branch 'security/next'
Stephen Rothwell [Fri, 27 Jun 2014 01:59:40 +0000 (11:59 +1000)]
Merge remote-tracking branch 'security/next'

9 years agoMerge remote-tracking branch 'regulator/for-next'
Stephen Rothwell [Fri, 27 Jun 2014 01:58:25 +0000 (11:58 +1000)]
Merge remote-tracking branch 'regulator/for-next'

9 years agoMerge remote-tracking branch 'omap_dss2/for-next'
Stephen Rothwell [Fri, 27 Jun 2014 01:57:15 +0000 (11:57 +1000)]
Merge remote-tracking branch 'omap_dss2/for-next'

9 years agoMerge remote-tracking branch 'mfd-lj/for-mfd-next'
Stephen Rothwell [Fri, 27 Jun 2014 01:55:46 +0000 (11:55 +1000)]
Merge remote-tracking branch 'mfd-lj/for-mfd-next'

9 years agoMerge remote-tracking branch 'slab/for-next'
Stephen Rothwell [Fri, 27 Jun 2014 01:54:14 +0000 (11:54 +1000)]
Merge remote-tracking branch 'slab/for-next'

9 years agoMerge remote-tracking branch 'kgdb/kgdb-next'
Stephen Rothwell [Fri, 27 Jun 2014 01:53:55 +0000 (11:53 +1000)]
Merge remote-tracking branch 'kgdb/kgdb-next'

9 years agoMerge remote-tracking branch 'mmc-uh/next'
Stephen Rothwell [Fri, 27 Jun 2014 01:52:41 +0000 (11:52 +1000)]
Merge remote-tracking branch 'mmc-uh/next'

9 years agoMerge remote-tracking branch 'device-mapper/for-next'
Stephen Rothwell [Fri, 27 Jun 2014 01:50:27 +0000 (11:50 +1000)]
Merge remote-tracking branch 'device-mapper/for-next'

9 years agoMerge remote-tracking branch 'block/for-next'
Stephen Rothwell [Fri, 27 Jun 2014 01:50:24 +0000 (11:50 +1000)]
Merge remote-tracking branch 'block/for-next'

9 years agoMerge remote-tracking branch 'sound-asoc/for-next'
Stephen Rothwell [Fri, 27 Jun 2014 01:48:53 +0000 (11:48 +1000)]
Merge remote-tracking branch 'sound-asoc/for-next'

9 years agoMerge remote-tracking branch 'sound/for-next'
Stephen Rothwell [Fri, 27 Jun 2014 01:47:58 +0000 (11:47 +1000)]
Merge remote-tracking branch 'sound/for-next'

9 years agoMerge remote-tracking branch 'drm-intel/for-linux-next'
Stephen Rothwell [Fri, 27 Jun 2014 01:46:18 +0000 (11:46 +1000)]
Merge remote-tracking branch 'drm-intel/for-linux-next'

9 years agoMerge remote-tracking branch 'drm-panel/drm/panel/for-next'
Stephen Rothwell [Fri, 27 Jun 2014 01:45:23 +0000 (11:45 +1000)]
Merge remote-tracking branch 'drm-panel/drm/panel/for-next'