Skip to contentSkip to conversation

test/dm/core.c: Make pre-reloc test use pre-reloc struct

PATCH New Tom Rini 2 participants 3 messages Mar 20, 2016 – Apr 9, 2016

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 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

---
 test/dm/core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
test/dm/core.c +1 -1
index 9fbc70d..70bf4d0 100644
@@ -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)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 test/dm/core.c: Make pre-reloc test use pre-reloc struct

Quoted 5 lines · Tom Rini

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 = {

Quoted 8 lines

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

---
 test/dm/core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Unfortunately it seems there is no test that actually uses this.

#2 lore raw

PATCH 1/1 test/dm/core.c: Make pre-reloc test use pre-reloc struct

Quoted 15 lines · Simon Glass
Quoted 5 lines · Tom Rini

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 = {

Quoted 8 lines

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

---
 test/dm/core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 3 lines

Unfortunately it seems there is no test that actually uses this.

Applied to u-boot-dm, thanks!