OSDN Git Service

greybus: loopback: fix 64bit printf format error
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Mon, 13 Jul 2015 23:53:13 +0000 (00:53 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 14 Jul 2015 00:08:06 +0000 (17:08 -0700)
Last patchset missed compilation on 64 bit contained warning.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/loopback.c

index b92232b..f07fc0a 100644 (file)
@@ -34,7 +34,7 @@ struct gb_loopback {
 
        int type;
        u32 size;
-       u32 size_max;
+       size_t size_max;
        int ms_wait;
 
        struct gb_loopback_stats latency;
@@ -254,7 +254,7 @@ static int gb_loopback_request_recv(u8 type, struct gb_operation *operation)
        struct gb_loopback *gb = connection->private;
        struct gb_loopback_transfer_request *request;
        struct gb_loopback_transfer_response *response;
-       u32 len;
+       size_t len;
 
        /* By convention, the AP initiates the version operation */
        switch (type) {