linux-next: build warnings after merge of the origin tree
From: Stephen Rothwell
Date: Mon Jul 29 2024 - 18:22:26 EST
Hi all,
After merging the origin tree, today's linux-next build (powerpc
ppc64_defconfig) produced these warnings:
In file included from include/asm-generic/percpu.h:7,
from arch/powerpc/include/asm/percpu.h:28,
from include/linux/irqflags.h:19,
from include/linux/spinlock.h:59,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:7,
from include/linux/mm.h:7,
from include/linux/memblock.h:12,
from kernel/profile.c:20:
kernel/profile.c:52:28: warning: 'cpu_profile_flip' defined but not used [-Wunused-variable]
52 | static DEFINE_PER_CPU(int, cpu_profile_flip);
| ^~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:104:44: note: in definition of macro 'DEFINE_PER_CPU_SECTION'
104 | __PCPU_ATTRS(sec) __typeof__(type) name
| ^~~~
kernel/profile.c:52:8: note: in expansion of macro 'DEFINE_PER_CPU'
52 | static DEFINE_PER_CPU(int, cpu_profile_flip);
| ^~~~~~~~~~~~~~
kernel/profile.c:51:48: warning: 'cpu_profile_hits' defined but not used [-Wunused-variable]
51 | static DEFINE_PER_CPU(struct profile_hit *[2], cpu_profile_hits);
| ^~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:104:44: note: in definition of macro 'DEFINE_PER_CPU_SECTION'
104 | __PCPU_ATTRS(sec) __typeof__(type) name
| ^~~~
kernel/profile.c:51:8: note: in expansion of macro 'DEFINE_PER_CPU'
51 | static DEFINE_PER_CPU(struct profile_hit *[2], cpu_profile_hits);
| ^~~~~~~~~~~~~~
Introduced by commit
2accfdb7eff6 ("profiling: attempt to remove per-cpu profile flip buffer")
--
Cheers,
Stephen Rothwell
Attachment:
pgp32S7AX154U.pgp
Description: OpenPGP digital signature