Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f5f264b authored by Rasmus Villemoes's avatar Rasmus Villemoes Committed by Tejun Heo
Browse files

libata: finally use __initconst in ata_parse_force_one()



Just six days after this FIXME was added seven years ago, Sam Ravnborg
added the missing feature (37c514e3 "Add missing init section
definitions"), though it ended up being called __initconst.

Let's use it; better late than never.

Signed-off-by: default avatarRasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent a73ed350
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -6456,12 +6456,7 @@ static int __init ata_parse_force_one(char **cur,
				      struct ata_force_ent *force_ent,
				      const char **reason)
{
	/* FIXME: Currently, there's no way to tag init const data and
	 * using __initdata causes build failure on some versions of
	 * gcc.  Once __initdataconst is implemented, add const to the
	 * following structure.
	 */
	static struct ata_force_param force_tbl[] __initdata = {
	static const struct ata_force_param force_tbl[] __initconst = {
		{ "40c",	.cbl		= ATA_CBL_PATA40 },
		{ "80c",	.cbl		= ATA_CBL_PATA80 },
		{ "short40c",	.cbl		= ATA_CBL_PATA40_SHORT },