]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
firewire: core: make address handler length 64 bits
authorClemens Ladisch <clemens@ladisch.de>
Thu, 24 May 2012 17:28:17 +0000 (19:28 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 27 May 2012 10:31:11 +0000 (12:31 +0200)
The type of the length field of the fw_address_handler structure was
size_t, which restricted it to 32 bits on 32-bit architectures.

While making it u32 would match the userspace API, all calculations on
this field use 64 bits anyway, and the ability to use 4 GB or larger
address ranges is useful in the kernel.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
include/linux/firewire.h

index 584826ba2eb70be61ea91eff0d999a9f196915af..d77f60c6d1edf753e646e6604ada288a251b06e3 100644 (file)
@@ -307,7 +307,7 @@ struct fw_transaction {
 
 struct fw_address_handler {
        u64 offset;
-       size_t length;
+       u64 length;
        fw_address_callback_t address_callback;
        void *callback_data;
        struct list_head link;