Re: [cron job] v4l-dvb daily build: ERRORS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sylwester, Pawel,

The daily build reports this warning when building for i686:

media_build/v4l/videobuf2-dma-contig.c: In function 'vb2_dma_contig_cookie':
media_build/v4l/videobuf2-dma-contig.c:81:9: warning: cast to pointer from integer of different size

This refers to the void * cast in this function:

static void *vb2_dma_contig_cookie(void *buf_priv)
{
        struct vb2_dc_buf *buf = buf_priv;

        return (void *)buf->paddr;
}

buf->paddr is of type dma_addr_t.

The reason for the warning is that for this build CONFIG_ARCH_DMA_ADDR_T_64BIT
is set to 'y'. A dma_addr_t address can be 64 bit on a 32 bit architecture (and
vice versa). See the comments in include/asm-generic/types.h.

Can you take a look at this? This is potentially dangerous.

Regards,

	Hans

On Friday, March 11, 2011 20:31:35 Hans Verkuil wrote:
> This message is generated daily by a cron job that builds v4l-dvb for
> the kernels and architectures in the list below.
> 
> Results of the daily build of v4l-dvb:
> 
> date:        Fri Mar 11 19:00:45 CET 2011
> git hash:    97c6bc5e15e60c0c15ff028c03af2cf42ad9a07e
> gcc version:      i686-linux-gcc (GCC) 4.5.1
> host hardware:    x86_64
> host os:          2.6.32.5
> 
> linux-git-armv5: OK
> linux-git-armv5-davinci: OK
> linux-git-armv5-ixp: OK
> linux-git-armv5-omap2: OK
> linux-git-i686: OK
> linux-git-m32r: OK
> linux-git-mips: WARNINGS
> linux-git-powerpc64: OK
> linux-git-x86_64: OK
> linux-2.6.31.12-i686: WARNINGS
> linux-2.6.32.6-i686: WARNINGS
> linux-2.6.33-i686: WARNINGS
> linux-2.6.34-i686: WARNINGS
> linux-2.6.35.3-i686: WARNINGS
> linux-2.6.36-i686: WARNINGS
> linux-2.6.37-i686: WARNINGS
> linux-2.6.31.12-x86_64: WARNINGS
> linux-2.6.32.6-x86_64: WARNINGS
> linux-2.6.33-x86_64: WARNINGS
> linux-2.6.34-x86_64: WARNINGS
> linux-2.6.35.3-x86_64: WARNINGS
> linux-2.6.36-x86_64: WARNINGS
> linux-2.6.37-x86_64: WARNINGS
> spec-git: ERRORS
> sparse: ERRORS
> 
> Detailed results are available here:
> 
> http://www.xs4all.nl/~hverkuil/logs/Friday.log
> 
> Full logs are available here:
> 
> http://www.xs4all.nl/~hverkuil/logs/Friday.tar.bz2
> 
> The V4L-DVB specification failed to build, but the last compiled spec is here:
> 
> http://www.xs4all.nl/~hverkuil/spec/media.html
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-- 
Hans Verkuil - video4linux developer - sponsored by Cisco
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux