memblock tests: fix warning ‘struct seq_file’ declared inside parameter list
authorMike Rapoport (IBM) <rppt@kernel.org>
Thu, 14 Sep 2023 07:45:40 +0000 (10:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 12:56:56 +0000 (14:56 +0200)
commit1c88886587d306387abd2edcf12d9a0724461ce9
tree0cea6d0245dbaee4996afd340093234730c898bd
parent729757fe9718bcddae890b5f24949204fd61d2f7
memblock tests: fix warning ‘struct seq_file’ declared inside parameter list

[ Upstream commit 55122e0130e51eb71f5ec62d10525db0468f28e8 ]

Building memblock tests produces the following warning:

cc -I. -I../../include -Wall -O2 -fsanitize=address -fsanitize=undefined -D CONFIG_PHYS_ADDR_T_64BIT   -c -o main.o main.c
In file included from tests/common.h:9,
                 from tests/basic_api.h:5,
                 from main.c:2:
./linux/memblock.h:601:50: warning: ‘struct seq_file’ declared inside parameter list will not be visible outside of this definition or declaration
  601 | static inline void memtest_report_meminfo(struct seq_file *m) { }
      |                                                  ^~~~~~~~

Add declaration of 'struct seq_file' to tools/include/linux/seq_file.h
to fix it.

Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/include/linux/seq_file.h
tools/testing/memblock/tests/basic_api.c
tools/testing/memblock/tests/common.h