aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorFrank Rowand <frank.rowand@sonymobile.com>2015-03-14 03:04:24 -0400
committerGrant Likely <grant.likely@linaro.org>2015-03-29 03:56:19 -0400
commitc8547119ce54ef6d3c0685ef3837514fa6e11d28 (patch)
treee71780541755c4a515d799821ed9b99646b4697d /drivers/of
parent3db316d00bfa60c673c54f27cd5edc329a3b28b5 (diff)
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: Frank Rowand <frank.rowand@sonymobile.com> Signed-off-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/unittest.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
index 9ecf8529fe29..9e4e401ff21d 100644
--- a/drivers/of/unittest.c
+++ b/drivers/of/unittest.c
@@ -878,6 +878,10 @@ static int __init selftest_data_add(void)
878{ 878{
879 void *selftest_data; 879 void *selftest_data;
880 struct device_node *selftest_data_node, *np; 880 struct device_node *selftest_data_node, *np;
881 /*
882 * __dtb_testcases_begin[] and __dtb_testcases_end[] are magically
883 * created by cmd_dt_S_dtb in scripts/Makefile.lib
884 */
881 extern uint8_t __dtb_testcases_begin[]; 885 extern uint8_t __dtb_testcases_begin[];
882 extern uint8_t __dtb_testcases_end[]; 886 extern uint8_t __dtb_testcases_end[];
883 const int size = __dtb_testcases_end - __dtb_testcases_begin; 887 const int size = __dtb_testcases_end - __dtb_testcases_begin;