diff options
author | 2014-09-11 21:29:01 +0200 | |
---|---|---|
committer | 2014-09-11 12:34:36 -0700 | |
commit | 58cda01ed18945c17ad858dfcf4a9a74ba70157c (patch) | |
tree | 2d865efed4cb45c4422ce5c2528b04ad4a52039f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge branch 'pull/v3.18/powerdomain-fixes' of https://github.com/nmenon/linux-2.6-playground into omap-for-v3.18/fixes-not-urgent (diff) | |
download | wireguard-linux-58cda01ed18945c17ad858dfcf4a9a74ba70157c.tar.xz wireguard-linux-58cda01ed18945c17ad858dfcf4a9a74ba70157c.zip |
ARM: omap2: make arrays containing machine compatible strings const
The definition
static const char *omap3_boards_compat[] __initconst = {
defines a changable array of constant strings. That is you must not do:
*omap3_boards_compat[0] = 'f';
but
omap3_boards_compat[0] = "another string";
is fine. So the annotation __initconst is wrong and yields a compiler
error when other really const variables are added with __initconst.
As the struct machine_desc member dt_compat is declared as
const char *const *dt_compat;
making the arrays const is the better alternative over changing all
annotations to __initdata.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions