diff options
author | Tom Rini <trini@konsulko.com> | 2016-03-20 10:10:28 -0400 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-04-14 11:51:39 -0600 |
commit | f09144a220ce71d628830f7ccadeacd0cfdf6d76 (patch) | |
tree | 2244154c8e27ac1a064c2913ef9909509dac4426 /test | |
parent | 7b3dc45ea5179b377c01c8f878c1633d707186c8 (diff) |
test/dm/core.c: Make pre-reloc test use pre-reloc struct
LLVM 3.5 noted:
test/dm/core.c:41:35: warning: unused variable 'test_pdata_pre_reloc' [-Wunused-const-variable]
static const struct dm_test_pdata test_pdata_pre_reloc = {
And the correct fix here is that the driver_info_pre_reloc test should
use the test_pdata_pre_reloc not test_pdata_manual variable
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/dm/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dm/core.c b/test/dm/core.c index 9fbc70d3ed5..70bf4d0605a 100644 --- a/test/dm/core.c +++ b/test/dm/core.c @@ -64,7 +64,7 @@ static struct driver_info driver_info_manual = { static struct driver_info driver_info_pre_reloc = { .name = "test_pre_reloc_drv", - .platdata = &test_pdata_manual, + .platdata = &test_pdata_pre_reloc, }; void dm_leak_check_start(struct unit_test_state *uts) |