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

Commit 9506057f authored by Ben Dooks's avatar Ben Dooks Committed by Russell King
Browse files

[ARM] 2924/3: taglist - postfix section with .init for `make buildcheck`



Patch from Ben Dooks

The `make buildcheck` is erroneously reporting that the taglist
is referencing items in the .init section as it is not itself
postfixed with .init

Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 676d55ae
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -29,7 +29,7 @@ SECTIONS
			*(.arch.info)
			*(.arch.info)
		__arch_info_end = .;
		__arch_info_end = .;
		__tagtable_begin = .;
		__tagtable_begin = .;
			*(.taglist)
			*(.taglist.init)
		__tagtable_end = .;
		__tagtable_end = .;
		. = ALIGN(16);
		. = ALIGN(16);
		__setup_start = .;
		__setup_start = .;
+1 −1
Original line number Original line Diff line number Diff line
@@ -171,7 +171,7 @@ struct tagtable {
	int (*parse)(const struct tag *);
	int (*parse)(const struct tag *);
};
};


#define __tag __attribute_used__ __attribute__((__section__(".taglist")))
#define __tag __attribute_used__ __attribute__((__section__(".taglist.init")))
#define __tagtable(tag, fn) \
#define __tagtable(tag, fn) \
static struct tagtable __tagtable_##fn __tag = { tag, fn }
static struct tagtable __tagtable_##fn __tag = { tag, fn }