summaryrefslogtreecommitdiffstats
path: root/lib/iomap_copy.c
diff options
context:
space:
mode:
authorStephen Boyd2016-01-20 23:58:32 +0100
committerLinus Torvalds2016-01-21 02:09:18 +0100
commitef5c16b85b2a6d55ae12a8d7125f3908c8d271d4 (patch)
tree0941c8d187141a432314f7ea5d25dc678ded465b /lib/iomap_copy.c
parentstring_helpers: fix precision loss for some inputs (diff)
downloadkernel-qcow2-linux-ef5c16b85b2a6d55ae12a8d7125f3908c8d271d4.tar.gz
kernel-qcow2-linux-ef5c16b85b2a6d55ae12a8d7125f3908c8d271d4.tar.xz
kernel-qcow2-linux-ef5c16b85b2a6d55ae12a8d7125f3908c8d271d4.zip
arch/frv/include/asm/io.h: accept const void pointers for read{b,w,l}()
The SMD driver is reading and writing chunks of data to iomem, and there's an __iowrite32_copy() function for the writing part, but no __ioread32_copy() function for the reading part. This series adds __ioread32_copy() and uses it in two places. This patch (of 4): The frv port uses compiler builtins, __builtin_read*(), for the I/O read routines. Unfortunately, these don't accept const void pointers although the generic ASM implementations do, so generic code passing const pointers to these APIs cause compilers to emit warnings. Add wrapper functions that cast away the const to avoid the warnings. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Cc: David Howells <dhowells@redhat.com> Cc: <zajec5@gmail.com> Cc: Bjorn Andersson <bjorn.andersson@sonymobile.com> Cc: Hauke Mehrtens <hauke@hauke-m.de> Cc: Paul Walmsley <paul@pwsan.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/iomap_copy.c')
0 files changed, 0 insertions, 0 deletions