diff options
author | Ken Cox | 2014-03-13 21:39:18 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2014-03-17 22:42:40 +0100 |
commit | a1d842e84f049ffa29d0a633649ab2779750b2a3 (patch) | |
tree | 4d4357c725ee2b2da30c1a942582efbe95ec2698 /drivers/staging/unisys/include/commontypes.h | |
parent | staging: unisys: remove incorrect error handling after queue_delayed_work (diff) | |
download | kernel-qcow2-linux-a1d842e84f049ffa29d0a633649ab2779750b2a3.tar.gz kernel-qcow2-linux-a1d842e84f049ffa29d0a633649ab2779750b2a3.tar.xz kernel-qcow2-linux-a1d842e84f049ffa29d0a633649ab2779750b2a3.zip |
Staging: unisys: channels: Cleanup sparse warnings
Clean up multiple sparse warnings mostly due to different address spaces
when accessing I/O memory.
Also, remove SignalRemoveAll(), SignalQueueHasOneElement(),
SignalQueueIsFull(), because they were never called.
Signed-off-by: Ken Cox <jkc@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/unisys/include/commontypes.h')
-rw-r--r-- | drivers/staging/unisys/include/commontypes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/unisys/include/commontypes.h b/drivers/staging/unisys/include/commontypes.h index ae46bed71431..ef12af4a72db 100644 --- a/drivers/staging/unisys/include/commontypes.h +++ b/drivers/staging/unisys/include/commontypes.h @@ -23,6 +23,7 @@ #ifdef __KERNEL__ #include <linux/types.h> #include <linux/version.h> +#include <linux/io.h> #else #include <stdint.h> #include <syslog.h> @@ -72,6 +73,7 @@ typedef U64 GUEST_PHYSICAL_ADDRESS; #define MEMSET(ptr, val, len) memset(ptr, val, len) #define MEMCMP(m1, m2, len) memcmp(m1, m2, len) +#define MEMCMP_IO(m1, m2, len) memcmp((void __force *)m1, m2, len) #define STRLEN(s) ((UINTN)strlen((const char *)s)) #define STRCPY(d, s) (strcpy((char *)d, (const char *)s)) @@ -81,6 +83,8 @@ typedef U64 GUEST_PHYSICAL_ADDRESS; #ifdef __KERNEL__ #define MEMORYBARRIER mb() #define MEMCPY(dest, src, len) memcpy(dest, src, len) +#define MEMCPY_TOIO(dest, src, len) memcpy_toio(dest, src, len) +#define MEMCPY_FROMIO(dest, src, len) memcpy_fromio(dest, src, len) #define CHANNEL_GUID_MISMATCH(chType, chName, field, expected, actual, fil, \ lin, logCtx) \ |