linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* New build warnings
@ 2012-07-30 16:44 Russell King - ARM Linux
  2012-07-30 17:40 ` Mark Brown
  2012-09-08  8:38 ` Russell King - ARM Linux
  0 siblings, 2 replies; 11+ messages in thread
From: Russell King - ARM Linux @ 2012-07-30 16:44 UTC (permalink / raw)
  To: linux-omap, Liam Girdwood, Mark Brown, Uwe Kleine-König

Okay, so last night's build run shows some new warnings...

drivers/regulator/twl-regulator.c: In function 'twlreg_probe':
drivers/regulator/twl-regulator.c:1151: warning: assignment discards qualifiers from pointer target type
drivers/regulator/twl-regulator.c:1160: warning: assignment discards qualifiers from pointer target type

These two look like missing const - looks like they were introduced by:

commit 98d7bbb9929bcc14e11ac8a55245a4f2dc174e17
Author: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Date:   Thu Jun 7 12:20:14 2012 +0200

    of: add const to struct *of_device_id.data

    Drivers should never need to modify the data of a device id. So it can
    be const which in turn allows more consts in the driver.

    Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>




drivers/regulator/twl-regulator.c: At top level:
drivers/regulator/twl-regulator.c:1051: warning: 'TWLRES_INFO_CLK32KG' defined but not used

This one looks like it was caused by:

commit 0e8e5c34cf1a8beaaf0a6a05c053592693bf8cb4
Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
Date:   Mon Jun 4 17:23:13 2012 +0100

    regulator: twl: Remove references to 32kHz clock from DT bindings

    Due to the lack of a generic clock API we'd had the 32kHz clock in the
    regulator driver but this is definitely a Linux-specific thing and now
    we have a clock API hopefully the code can be moved elsewhere. Try to
    avoid getting DTs deployed relying on the 32kHz clock by removing it
    from the bindings, grep seems to tell me it's not currently used anyway.

    Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

which removes:

-#define TWLRES_OF_MATCH(comp, label) TWL_OF_MATCH(comp, TWLRES, label)
-       TWLRES_OF_MATCH("ti,twl6030-clk32kg", CLK32KG),

but completely forgets that this:

TWL6030_FIXED_RESOURCE(CLK32KG, 0x8C, 0);

defines a structure that it was using.  (Welcome to why macros are horrid
when they hide the names of stuff they create.)
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-09-10  7:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-30 16:44 New build warnings Russell King - ARM Linux
2012-07-30 17:40 ` Mark Brown
2012-07-30 18:06   ` Russell King - ARM Linux
2012-07-30 18:40     ` Mark Brown
2012-09-08  8:38 ` Russell King - ARM Linux
2012-09-09 19:12   ` Uwe Kleine-König
2012-09-09 23:33     ` Mark Brown
2012-09-10  6:40       ` Uwe Kleine-König
2012-09-10  6:42         ` Mark Brown
2012-09-10  7:05           ` Uwe Kleine-König
2012-09-10  7:43             ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).