1. 29 10月, 2014 27 次提交
  2. 28 10月, 2014 1 次提交
  3. 24 10月, 2014 4 次提交
  4. 21 10月, 2014 2 次提交
  5. 16 10月, 2014 1 次提交
  6. 26 9月, 2014 5 次提交
    • M
      [media] exynos4-is: fix some warnings when compiling on arm64 · 7d4020c3
      Mauro Carvalho Chehab 提交于
      Got those warnings when compiling with gcc 4.9.1 for arm64:
      
      drivers/media/platform/exynos4-is/fimc-isp-video.c: In function ‘isp_video_capture_buffer_queue’:
      drivers/media/platform/exynos4-is/fimc-isp-video.c:221:4: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 7 has type ‘dma_addr_t’ [-Wformat=]
          isp_dbg(2, &video->ve.vdev,
          ^
      drivers/media/platform/exynos4-is/fimc-is.c: In function ‘fimc_is_load_firmware’:
      drivers/media/platform/exynos4-is/fimc-is.c:391:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=]
         dev_err(dev, "wrong firmware size: %d\n", fw->size);
         ^
      In file included from include/linux/printk.h:260:0,
                       from include/linux/kernel.h:13,
                       from include/linux/kernfs.h:10,
                       from include/linux/sysfs.h:15,
                       from include/linux/kobject.h:21,
                       from include/linux/device.h:17,
                       from drivers/media/platform/exynos4-is/fimc-is.c:15:
      include/linux/dynamic_debug.h:64:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=]
        static struct _ddebug  __aligned(8)   \
                      ^
      include/linux/dynamic_debug.h:84:2: note: in expansion of macro ‘DEFINE_DYNAMIC_DEBUG_METADATA’
        DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt);  \
        ^
      include/linux/device.h:1106:2: note: in expansion of macro ‘dynamic_dev_dbg’
        dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
        ^
      drivers/media/platform/exynos4-is/fimc-is.c:419:2: note: in expansion of macro ‘dev_dbg’
        dev_dbg(dev, "FW size: %d, paddr: %#x\n", fw->size, is->memory.paddr);
        ^
      include/linux/dynamic_debug.h:64:16: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘dma_addr_t’ [-Wformat=]
        static struct _ddebug  __aligned(8)   \
                      ^
      include/linux/dynamic_debug.h:84:2: note: in expansion of macro ‘DEFINE_DYNAMIC_DEBUG_METADATA’
        DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt);  \
        ^
      include/linux/device.h:1106:2: note: in expansion of macro ‘dynamic_dev_dbg’
        dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
        ^
      drivers/media/platform/exynos4-is/fimc-is.c:419:2: note: in expansion of macro ‘dev_dbg’
        dev_dbg(dev, "FW size: %d, paddr: %#x\n", fw->size, is->memory.paddr);
        ^
      drivers/media/platform/exynos4-is/fimc-is.c: In function ‘fimc_is_hw_initialize’:
      include/linux/dynamic_debug.h:64:16: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘dma_addr_t’ [-Wformat=]
        static struct _ddebug  __aligned(8)   \
                      ^
      include/linux/dynamic_debug.h:76:2: note: in expansion of macro ‘DEFINE_DYNAMIC_DEBUG_METADATA’
        DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt);  \
        ^
      include/linux/printk.h:266:2: note: in expansion of macro ‘dynamic_pr_debug’
        dynamic_pr_debug(fmt, ##__VA_ARGS__)
        ^
      drivers/media/platform/exynos4-is/fimc-is.c:696:2: note: in expansion of macro ‘pr_debug’
        pr_debug("shared region: %#x, parameter region: %#x\n",
        ^
      include/linux/dynamic_debug.h:64:16: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 6 has type ‘dma_addr_t’ [-Wformat=]
        static struct _ddebug  __aligned(8)   \
                      ^
      include/linux/dynamic_debug.h:76:2: note: in expansion of macro ‘DEFINE_DYNAMIC_DEBUG_METADATA’
        DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt);  \
        ^
      include/linux/printk.h:266:2: note: in expansion of macro ‘dynamic_pr_debug’
        dynamic_pr_debug(fmt, ##__VA_ARGS__)
        ^
      drivers/media/platform/exynos4-is/fimc-is.c:696:2: note: in expansion of macro ‘pr_debug’
        pr_debug("shared region: %#x, parameter region: %#x\n",
        ^
      Acked-by: NSylwester Nawrocki <s.nawrocki@samsung.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      7d4020c3
    • M
      [media] s5p-mfc: Fix several printk warnings · 03ce7816
      Mauro Carvalho Chehab 提交于
      drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c:192:3: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘dma_addr_t’ [-Wformat=]
      drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c:196:3: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘dma_addr_t’ [-Wformat=]
      drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c:196:3: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘dma_addr_t’ [-Wformat=]
      drivers/media/platform/s5p-mfc/s5p_mfc_dec.c:1206:4: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      drivers/media/platform/s5p-mfc/s5p_mfc_dec.c:1206:32: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      drivers/media/platform/s5p-mfc/s5p_mfc_enc.c:1757:3: warning: format ‘%zx’ expects argument of type ‘size_t’, but argument 6 has type ‘dma_addr_t’ [-Wformat=]
      drivers/media/platform/s5p-mfc/s5p_mfc_enc.c:1879:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ [-Wformat=]
      drivers/media/platform/s5p-mfc/s5p_mfc_dec.c:1206:4: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      drivers/media/platform/s5p-mfc/s5p_mfc_dec.c:1206:32: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      03ce7816
    • M
      [media] s5p_mfc_opr: Fix warnings · f1a0c185
      Mauro Carvalho Chehab 提交于
        CC      drivers/media//platform/s5p-mfc/s5p_mfc_opr.o
      drivers/media//platform/s5p-mfc/s5p_mfc_opr.c: In function ‘s5p_mfc_alloc_priv_buf’:
      drivers/media//platform/s5p-mfc/s5p_mfc_opr.c:44:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=]
        mfc_debug(3, "Allocating priv: %d\n", b->size);
        ^
      drivers/media//platform/s5p-mfc/s5p_mfc_opr.c:53:2: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘dma_addr_t’ [-Wformat=]
        mfc_debug(3, "Allocated addr %p %08x\n", b->virt, b->dma);
        ^
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      f1a0c185
    • M
      [media] ti-vpe: Fix typecast · 5b31d9e0
      Mauro Carvalho Chehab 提交于
      Addresses have the same size of unsigned long, and not u32.
      
      That removes a warning on 64 bits compilation:
      drivers/media//platform/ti-vpe/vpdma.c:332:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
        WARN_ON(((u32) buf->addr & VPDMA_DESC_ALIGN) != 0);
                 ^
      include/asm-generic/bug.h:86:25: note: in definition of macro ‘WARN_ON’
        int __ret_warn_on = !!(condition);    \
                               ^
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      5b31d9e0
    • M
      [media] s3c-camif: fix dma_addr_t printks · c0a566f3
      Mauro Carvalho Chehab 提交于
      drivers/media//platform/s3c-camif/camif-capture.c: In function ‘camif_prepare_addr’:
      include/linux/dynamic_debug.h:64:16: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘dma_addr_t’ [-Wformat=]
        static struct _ddebug  __aligned(8)   \
                      ^
      include/linux/dynamic_debug.h:76:2: note: in expansion of macro ‘DEFINE_DYNAMIC_DEBUG_METADATA’
        DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt);  \
        ^
      include/linux/printk.h:266:2: note: in expansion of macro ‘dynamic_pr_debug’
        dynamic_pr_debug(fmt, ##__VA_ARGS__)
        ^
      drivers/media//platform/s3c-camif/camif-capture.c:283:2: note: in expansion of macro ‘pr_debug’
        pr_debug("DMA address: y: %#x  cb: %#x cr: %#x\n",
        ^
      include/linux/dynamic_debug.h:64:16: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 6 has type ‘dma_addr_t’ [-Wformat=]
        static struct _ddebug  __aligned(8)   \
                      ^
      include/linux/dynamic_debug.h:76:2: note: in expansion of macro ‘DEFINE_DYNAMIC_DEBUG_METADATA’
        DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt);  \
        ^
      include/linux/printk.h:266:2: note: in expansion of macro ‘dynamic_pr_debug’
        dynamic_pr_debug(fmt, ##__VA_ARGS__)
        ^
      drivers/media//platform/s3c-camif/camif-capture.c:283:2: note: in expansion of macro ‘pr_debug’
        pr_debug("DMA address: y: %#x  cb: %#x cr: %#x\n",
        ^
      include/linux/dynamic_debug.h:64:16: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 7 has type ‘dma_addr_t’ [-Wformat=]
        static struct _ddebug  __aligned(8)   \
                      ^
      include/linux/dynamic_debug.h:76:2: note: in expansion of macro ‘DEFINE_DYNAMIC_DEBUG_METADATA’
        DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt);  \
        ^
      include/linux/printk.h:266:2: note: in expansion of macro ‘dynamic_pr_debug’
        dynamic_pr_debug(fmt, ##__VA_ARGS__)
        ^
      drivers/media//platform/s3c-camif/camif-capture.c:283:2: note: in expansion of macro ‘pr_debug’
        pr_debug("DMA address: y: %#x  cb: %#x cr: %#x\n",
        ^
      include/linux/dynamic_debug.h:64:16: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 6 has type ‘dma_addr_t’ [-Wformat=]
        static struct _ddebug  __aligned(8)   \
                      ^
      include/linux/dynamic_debug.h:76:2: note: in expansion of macro ‘DEFINE_DYNAMIC_DEBUG_METADATA’
        DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt);  \
        ^
      include/linux/printk.h:266:2: note: in expansion of macro ‘dynamic_pr_debug’
        dynamic_pr_debug(fmt, ##__VA_ARGS__)
        ^
      drivers/media//platform/s3c-camif/camif-regs.c:217:2: note: in expansion of macro ‘pr_debug’
        pr_debug("dst_buf[%d]: %#X, cb: %#X, cr: %#X\n",
        ^
      include/linux/dynamic_debug.h:64:16: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 7 has type ‘dma_addr_t’ [-Wformat=]
        static struct _ddebug  __aligned(8)   \
                      ^
      include/linux/dynamic_debug.h:76:2: note: in expansion of macro ‘DEFINE_DYNAMIC_DEBUG_METADATA’
        DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt);  \
        ^
      include/linux/printk.h:266:2: note: in expansion of macro ‘dynamic_pr_debug’
        dynamic_pr_debug(fmt, ##__VA_ARGS__)
        ^
      drivers/media//platform/s3c-camif/camif-regs.c:217:2: note: in expansion of macro ‘pr_debug’
        pr_debug("dst_buf[%d]: %#X, cb: %#X, cr: %#X\n",
        ^
      include/linux/dynamic_debug.h:64:16: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 8 has type ‘dma_addr_t’ [-Wformat=]
        static struct _ddebug  __aligned(8)   \
                      ^
      include/linux/dynamic_debug.h:76:2: note: in expansion of macro ‘DEFINE_DYNAMIC_DEBUG_METADATA’
        DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt);  \
        ^
      include/linux/printk.h:266:2: note: in expansion of macro ‘dynamic_pr_debug’
        dynamic_pr_debug(fmt, ##__VA_ARGS__)
        ^
      drivers/media//platform/s3c-camif/camif-regs.c:217:2: note: in expansion of macro ‘pr_debug’
        pr_debug("dst_buf[%d]: %#X, cb: %#X, cr: %#X\n",
        ^
      Acked-by: NSylwester Nawrocki <s.nawrocki@samsung.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      c0a566f3