drivers: dma-contiguous: remove build warnings caused by product patch 63/158463/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 1 Nov 2017 05:56:14 +0000 (14:56 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 1 Nov 2017 06:00:14 +0000 (15:00 +0900)
There are build warnings caused by product patch. Remove the build
warnings including incompatible-pointer-types, discarded-qualifiers,
and unused-variable.

Change-Id: I24ee1c977c7f93c09b36067bd8032a0777a3b465
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/base/dma-contiguous.c

index 3fe0acc..ee0d417 100644 (file)
@@ -207,9 +207,9 @@ int __init cma_fdt_scan(unsigned long node, const char *uname,
                                int depth, void *data)
 {
        phys_addr_t base, size;
-       unsigned long len;
-       __be32 *prop;
-       char *name;
+       int len;
+       const __be32 *prop;
+       const char *name;
 
        if (!of_get_flat_dt_prop(node, "linux,contiguous-region", NULL))
                return 0;
@@ -386,7 +386,6 @@ int __init dma_contiguous_add_device(struct device *dev, phys_addr_t base)
 #ifdef CONFIG_OF
 void cma_assign_device_from_dt(struct device *dev)
 {
-       struct device_node *node;
        struct cma *cma;
        const char *name;
        int ret;