mirror-linux/tools/include/linux
Mike Rapoport (IBM) 1c88886587 memblock tests: fix warning ‘struct seq_file’ declared inside parameter list
[ Upstream commit 55122e0130 ]

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>
2023-10-06 14:56:56 +02:00
..
sched
unaligned
arm-smccc.h
atomic.h
bitmap.h
bitops.h
bits.h
btf_ids.h
bug.h
build_bug.h
cache.h
compiler-gcc.h
compiler.h
compiler_types.h
const.h
coresight-pmu.h
ctype.h
debugfs.h
delay.h
err.h
export.h
filter.h
find.h
ftrace.h
gfp.h
gfp_types.h
hash.h
hashtable.h
interrupt.h
io.h
jhash.h
kallsyms.h
kconfig.h
kern_levels.h
kernel.h
linkage.h
list.h
list_sort.h
log2.h
math.h
math64.h
mm.h
module.h
mutex.h
nmi.h
numa.h
objtool.h
overflow.h
pfn.h
poison.h
rbtree.h
rbtree_augmented.h
rcu.h
refcount.h
ring_buffer.h
seq_file.h
sizes.h
slab.h
spinlock.h
static_call_types.h
string.h
stringify.h
time64.h
types.h
zalloc.h