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

Commit c8547119 authored by Frank Rowand's avatar Frank Rowand Committed by Grant Likely
Browse files

of/unittest: breadcrumbs to reduce pain of future maintainers



Fix warnings pointed out by checkpatch.

Checkpatch warns: externs should be avoided in .c files

Reducing pain for future maintainers - adding a comment so that anyone trying
to find where the extern data is created will be able to find it.
(grep will not find that location)

Signed-off-by: default avatarFrank Rowand <frank.rowand@sonymobile.com>
Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
parent 3db316d0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -878,6 +878,10 @@ static int __init selftest_data_add(void)
{
	void *selftest_data;
	struct device_node *selftest_data_node, *np;
	/*
	 * __dtb_testcases_begin[] and __dtb_testcases_end[] are magically
	 * created by cmd_dt_S_dtb in scripts/Makefile.lib
	 */
	extern uint8_t __dtb_testcases_begin[];
	extern uint8_t __dtb_testcases_end[];
	const int size = __dtb_testcases_end - __dtb_testcases_begin;