Linux Media Controller development
 help / color / mirror / Atom feed
From: Hans Verkuil <hverkuil@xs4all.nl>
To: Prabhakar Lad <prabhakar.csengg@gmail.com>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: davinci compiler warnings
Date: Thu, 17 Jul 2014 21:54:45 +0200	[thread overview]
Message-ID: <53C82A05.4050202@xs4all.nl> (raw)
In-Reply-To: <CA+V-a8sAb4sO1-_R2mpcWYVMohwe1RsapWv+qMZn=B+zrySaYQ@mail.gmail.com>

On 07/17/2014 09:49 PM, Prabhakar Lad wrote:
> Hi Hans
> 
> On Thu, Jul 17, 2014 at 8:41 PM, Hans Verkuil <hverkuil@xs4all.nl> wrote:
>> Hi Prabhakar,
>>
>> Can you take a look at these new warnings? I've just upgraded my compiler for
>> the daily build to 4.9.1, so that's probably why they weren't seen before.
>>
> Ok will look at it. BTW are these errors from the media/master branch or
> from your tree ?

media/master

> 
> Thanks,
> --Prabhakar Lad
> 
>> Regards,
>>
>>         Hans
>>
>> /home/hans/work/build/media-git/drivers/media/platform/davinci/vpif_display.c: In function 'vpif_remove':
>> /home/hans/work/build/media-git/drivers/media/platform/davinci/vpif_display.c:1389:36: warning: iteration 1u invokes undefined behavior [-Waggressive-loop-optimizations]
>>    vb2_dma_contig_cleanup_ctx(common->alloc_ctx);
>>                                     ^
>> /home/hans/work/build/media-git/drivers/media/platform/davinci/vpif_display.c:1385:2: note: containing loop
>>   for (i = 0; i < VPIF_DISPLAY_MAX_DEVICES; i++) {
>>   ^
>> /home/hans/work/build/media-git/drivers/media/platform/davinci/vpif_capture.c: In function 'vpif_remove':
>> /home/hans/work/build/media-git/drivers/media/platform/davinci/vpif_capture.c:1581:36: warning: iteration 1u invokes undefined behavior [-Waggressive-loop-optimizations]
>>    vb2_dma_contig_cleanup_ctx(common->alloc_ctx);
>>                                     ^
>> /home/hans/work/build/media-git/drivers/media/platform/davinci/vpif_capture.c:1577:2: note: containing loop
>>   for (i = 0; i < VPIF_CAPTURE_MAX_DEVICES; i++) {
>>   ^
>> /home/hans/work/build/media-git/drivers/media/platform/davinci/vpif_capture.c:1580:23: warning: array subscript is above array bounds [-Warray-bounds]
>>    common = &ch->common[i];
>>                        ^
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


      reply	other threads:[~2014-07-17 19:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-17 19:41 davinci compiler warnings Hans Verkuil
2014-07-17 19:49 ` Prabhakar Lad
2014-07-17 19:54   ` Hans Verkuil [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53C82A05.4050202@xs4all.nl \
    --to=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    --cc=prabhakar.csengg@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox