test_rhashtable: remove initdata annotation
authorFlorian Westphal <fw@strlen.de>
Thu, 21 Sep 2017 15:36:08 +0000 (17:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Sep 2017 03:40:55 +0000 (20:40 -0700)
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")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/test_rhashtable.c

index de4d0584631a1ca0b746483a45ae5402a3776e8b..8e83cbdc049c72a4665be30b8099c7c141d59ff0 100644 (file)
@@ -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)
 {