Skip to contentSkip to conversation

test_rhashtable: remove initdata annotation

PATCH Applied Florian Westphal 2 participants 2 messages Sep 21, 2017 – Sep 22, 2017

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test_rhashtable: remove initdata annotation

kbuild test robot reported a section mismatch warning w. gcc 4.x:
WARNING: lib/test_rhashtable.o(.text+0x139e):
Section mismatch in reference from the function rhltable_insert.clone.3() to the variable .init.data:rhlt

so remove this annotation.

Fixes cdd4de372ea06 ("test_rhashtable: add test case for rhl_table interface")

---
I don't see this warning with same .config and gcc 6.3.x; however the annotation isn't essential so just remove it.

lib/test_rhashtable.c +1 -1
index de4d0584631a..8e83cbdc049c 100644
@@ -251,7 +251,7 @@ static s64 __init test_rhashtable(struct rhashtable *ht, struct test_obj *array,
 }
 
 static struct rhashtable ht;
-static struct rhltable rhlt __initdata;
+static struct rhltable rhlt;
 
 static int __init test_rhltable(unsigned int entries)
 {
Signature · 1 line
2.13.5
maintainer Applied
#1 lore raw

From: Florian Westphal <[email protected]>
Date: Thu, 21 Sep 2017 17:36:08 +0200

Quoted 9 lines

kbuild test robot reported a section mismatch warning w. gcc 4.x:
WARNING: lib/test_rhashtable.o(.text+0x139e):
Section mismatch in reference from the function rhltable_insert.clone.3() to the variable .init.data:rhlt

so remove this annotation.

Fixes cdd4de372ea06 ("test_rhashtable: add test case for rhl_table interface")

Applied.