gcov-shut-up-missing-prototype-warnings-for-internal-stubs.patch removed from -mm tree
The quilt patch titled
Subject: gcov: shut up missing prototype warnings for internal stubs
has been removed from the -mm tree. Its filename was
gcov-shut-up-missing-prototype-warnings-for-internal-stubs.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Arnd Bergmann <[email protected]>
Subject: gcov: shut up missing prototype warnings for internal stubs
Date: Tue, 25 Jul 2023 14:23:38 +0200
gcov uses global functions that are called from generated code, but these have no prototype in a header, which causes a W=1 build warning:
kernel/gcov/gcc_base.c:12:6: error: no previous prototype for '__gcov_init' [-Werror=missing-prototypes] kernel/gcov/gcc_base.c:40:6: error: no previous prototype for '__gcov_flush' [-Werror=missing-prototypes] kernel/gcov/gcc_base.c:46:6: error: no previous prototype for '__gcov_merge_add' [-Werror=missing-prototypes] kernel/gcov/gcc_base.c:52:6: error: no previous prototype for '__gcov_merge_single' [-Werror=missing-prototypes]
Just turn off these warnings unconditionally for the two files that contain them.
---
kernel/gcov/Makefile | 2 ++ 1 file changed, 2 insertions(+)
kernel/gcov/Makefile renamed from kernel/gcov/Makefile~gcov-shut-up-missing-prototype-warnings-for-internal-stubs +2 -0
@@ -3,4 +3,6 @@ ccflags-y := -DSRCTREE='"$(srctree)"' -D obj-y := base.o fs.o obj-$(CONFIG_CC_IS_GCC) += gcc_base.o gcc_4_7.o +CFLAGS_gcc_base.o += -Wno-missing-prototypes -Wno-missing-declarations obj-$(CONFIG_CC_IS_CLANG) += clang.o +CFLAGS_clang.o += -Wno-missing-prototypes -Wno-missing-declarations
_
Patches currently in -mm which might be from [email protected] are
radix-tree-remove-unused-variable.patch
iomem-remove-__weak-ioremap_cache-helper.patch