Skip to content

Commit

Permalink
test_rhashtable: remove initdata annotation
Browse files Browse the repository at this point in the history
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: cdd4de3 ("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>
  • Loading branch information
Florian Westphal authored and David S. Miller committed Sep 22, 2017
1 parent a424120 commit 411d788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/test_rhashtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 411d788

Please sign in to comment.