Commit 6d56b9d65813dd6a184efc5e7955d7e181a853c0
Committed by
David Woodhouse
1 parent
ce4bbeeddb
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
mtd: mark const init data with __initconst instead of __initdata
As long as there is no other non-const variable marked __initdata in the same compilation unit it doesn't hurt. If there were one however compilation would fail with error: $variablename causes a section type conflict because a section containing const variables is marked read only and so cannot contain non-const variables. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/mtd/maps/wr_sbc82xx_flash.c