]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
fix incompatible ptr type
authorJoe Korty <joe.korty@ccur.com>
Wed, 25 May 2016 09:12:26 +0000 (14:42 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Mon, 4 Jul 2016 19:20:38 +0000 (12:20 -0700)
The '&length' argument must be a long*, not an int*.

drivers/of/of_reserved_mem.c:215:54: warning:
passing argument 3 of 'of_get_flat_dt_prop' from
incompatible pointer type [-Wincompatible-pointer-types]
drivers/of/of_reserved_mem.c:215:54: warning:
passing argument 3 of 'of_get_flat_dt_prop' from
incompatible pointer type [-Wincompatible-pointer-types]
prop = of_get_flat_dt_prop(node, "linux,phandle", &len);

In file included from drivers/of/of_reserved_mem.c:18:0:
include/linux/of_fdt.h:88:14: note:
expected 'long unsigned int *' but argument is of type 'int *'
extern void *of_get_flat_dt_prop(unsigned long node,
const char *name,

Bug 200187768

Change-Id: Iaa3a60a9fbae620d21fb21d779ccd3e2c1229d6f
Signed-off-by: Joe Korty <joe.korty@ccur.com>
Signed-off-by: Gaurav Singh <gaursingh@nvidia.com>
Reviewed-on: http://git-master/r/1163920
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
drivers/of/of_reserved_mem.c

index 2275432ab090f2a0714de981e21a533fe61f6fdb..eeadecf9009637d1debc31b12350388b0880ec5d 100644 (file)
@@ -206,7 +206,7 @@ void __init fdt_init_reserved_mem(void)
        for (i = 0; i < reserved_mem_count; i++) {
                struct reserved_mem *rmem = &reserved_mem[i];
                unsigned long node = rmem->fdt_node;
-               int len;
+               long len;
                const __be32 *prop;
                int err = 0;