public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH v2 4/4] dynamic_debug: add jump label support
       [not found]   ` <5786613E.6010509@akamai.com>
@ 2016-07-13 16:03     ` Arnd Bergmann
  0 siblings, 0 replies; only message in thread
From: Arnd Bergmann @ 2016-07-13 16:03 UTC (permalink / raw)
  To: Jason Baron, kernel-build-reports; +Cc: linux-kernel, linux-media

On Wednesday, July 13, 2016 11:41:50 AM CEST Jason Baron wrote:
> 
> Hi Arnd,
> 
> Ok, this is back in linux-next now (with hopefully a fix for arm). I
> was never able to quite reproduce the arm failure you saw. So if
> you get the chance to test this it would be great.
> 

I've had a day's worth of randconfig tests without running into the problem
so far.

However, I did get one new compiler warning that I have just bisected
down to 21413cd0e4ed ("dynamic_debug: add jump label support"):

/git/arm-soc/drivers/media/dvb-frontends/cxd2841er.c: In function 'cxd2841er_tune_tc':
/git/arm-soc/drivers/media/dvb-frontends/cxd2841er.c:3253:40: error: 'carrier_offset' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    if (ret)
                                        ^
     return ret;
     ~~~~~~~~~                           
/git/arm-soc/drivers/media/dvb-frontends/cxd2841er.c:3209:11: note: 'carrier_offset' was declared here
  int ret, carrier_offset;
           ^~~~~~~~~~~~~~


It's clearly a false positive warning, the code is correct, but if this is
the only one that the dynamic_debug jump labels introduce, we may as well
just work around it in the driver.

I think this is caused by the "unlikely" annotation in dynamic_dev_dbg(),
which confuses the compiler trying to figure out whether the variable
is initialized or not.

	Arnd

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-13 16:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <cover.1463778029.git.jbaron@akamai.com>
     [not found] ` <10022037.rzjeY1zYxh@wuerfel>
     [not found]   ` <5786613E.6010509@akamai.com>
2016-07-13 16:03     ` [PATCH v2 4/4] dynamic_debug: add jump label support Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox