ARM64: Fix bad cast in vc04_services
authorMichael Zoran <mzoran@crowfest.net>
Fri, 13 Jan 2017 02:56:54 +0000 (18:56 -0800)
committerJaechul Lee <jcsing.lee@samsung.com>
Fri, 18 Aug 2017 01:04:51 +0000 (10:04 +0900)
The function vchiq_copy_from_user contains a non-portable
cast to uint32_t.  Convert this to a cast to unsigned long
which is portable.

Signed-off-by: Michael Zoran <mzoran@crowfest.net>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c

index 706e7f9..c2108de 100644 (file)
@@ -235,7 +235,7 @@ remote_event_signal(REMOTE_EVENT_T *event)
 int
 vchiq_copy_from_user(void *dst, const void *src, int size)
 {
-       if ((uint32_t)src < TASK_SIZE) {
+       if ((unsigned long)src < TASK_SIZE) {
                return copy_from_user(dst, src, size);
        } else {
                memcpy(dst, src, size);