1. 12 8月, 2015 5 次提交
  2. 17 7月, 2015 3 次提交
  3. 22 6月, 2015 1 次提交
    • M
      [media] bdisp: prevent compiling on random arch · 1c8a866d
      Mauro Carvalho Chehab 提交于
      This driver requires support for DMA attrs function, and not
      just DMA. Change the options accordingly to remove those errors:
      
      /devel/v4l/to_next/drivers/media/platform/sti/bdisp/bdisp-hw.c: In function ‘bdisp_hw_free_nodes’:
      /devel/v4l/to_next/drivers/media/platform/sti/bdisp/bdisp-hw.c:132:3: error: implicit declaration of function ‘dma_free_attrs’ [-Werror=implicit-function-declaration]
         dma_free_attrs(ctx->bdisp_dev->dev,
         ^
      /devel/v4l/to_next/drivers/media/platform/sti/bdisp/bdisp-hw.c: In function ‘bdisp_hw_alloc_nodes’:
      /devel/v4l/to_next/drivers/media/platform/sti/bdisp/bdisp-hw.c:157:9: error: implicit declaration of function ‘dma_alloc_attrs’ [-Werror=implicit-function-declaration]
        base = dma_alloc_attrs(dev, node_size * MAX_NB_NODE, &paddr,
               ^
      /devel/v4l/to_next/drivers/media/platform/sti/bdisp/bdisp-hw.c:157:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
        base = dma_alloc_attrs(dev, node_size * MAX_NB_NODE, &paddr,
             ^
      /devel/v4l/to_next/drivers/media/platform/sti/bdisp/bdisp-hw.c: In function ‘bdisp_hw_alloc_filters’:
      /devel/v4l/to_next/drivers/media/platform/sti/bdisp/bdisp-hw.c:219:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
        base = dma_alloc_attrs(dev, size, &paddr, GFP_KERNEL | GFP_DMA, &attrs);
      
      Also, get rid of bogus, unused and duplicated symbol declaration
      for the config option done at bdisp/Kconfig.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      1c8a866d
  4. 11 6月, 2015 1 次提交
    • M
      [media] bdisp-debug: don't try to divide by s64 · 82d229cd
      Mauro Carvalho Chehab 提交于
      There are several warnings there, on some architectures, related
      to dividing a s32 by a s64 value:
      
      drivers/media/platform/sti/bdisp/bdisp-debug.c:594: warning: comparison of distinct pointer types lacks a cast
      drivers/media/platform/sti/bdisp/bdisp-debug.c:594: warning: right shift count >= width of type
      drivers/media/platform/sti/bdisp/bdisp-debug.c:594: warning: passing argument 1 of '__div64_32' from incompatible pointer type
      drivers/media/platform/sti/bdisp/bdisp-debug.c:595: warning: comparison of distinct pointer types lacks a cast
      drivers/media/platform/sti/bdisp/bdisp-debug.c:595: warning: right shift count >= width of type
      drivers/media/platform/sti/bdisp/bdisp-debug.c:595: warning: passing argument 1 of '__div64_32' from incompatible pointer type  CC [M]  drivers/media/tuners/mt2060.o
      drivers/media/platform/sti/bdisp/bdisp-debug.c:596: warning: comparison of distinct pointer types lacks a cast
      drivers/media/platform/sti/bdisp/bdisp-debug.c:596: warning: right shift count >= width of type
      drivers/media/platform/sti/bdisp/bdisp-debug.c:596: warning: passing argument 1 of '__div64_32' from incompatible pointer type
      drivers/media/platform/sti/bdisp/bdisp-debug.c:597: warning: comparison of distinct pointer types lacks a cast
      drivers/media/platform/sti/bdisp/bdisp-debug.c:597: warning: right shift count >= width of type
      drivers/media/platform/sti/bdisp/bdisp-debug.c:597: warning: passing argument 1 of '__div64_32' from incompatible pointer type
      
      That doesn't make much sense. What the driver is actually trying
      to do is to divide one second by a value. So, check the range
      before dividing. That warrants the right result and will remove
      the warnings on non-64 bits archs.
      
      Also fixes this warning:
      drivers/media/platform/sti/bdisp/bdisp-debug.c:588: warning: comparison of distinct pointer types lacks a cast
      
      by using div64_s64() instead of calling do_div() directly.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      82d229cd
  5. 10 6月, 2015 4 次提交