Skip to contentSkip to conversation

mips-mark-local-function-static-if-possible.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Dec 11, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mips: mark local function static if possible
has been removed from the -mm tree. Its filename was
mips-mark-local-function-static-if-possible.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: mips: mark local function static if possible
Date: Mon, 4 Dec 2023 12:56:56 +0100

These two functions are global but have no extern prototypes or other callers, so it's best to mark them as static, avoiding these warnings:

arch/mips/kernel/mips-cm.c:204:13: error: no previous prototype for '__mips_cm_l2sync_phys_base' [-Werror=missing-prototypes] arch/mips/mm/c-r4k.c:1827:12: error: no previous prototype for 'r4k_cache_init_pm' [-Werror=missing-prototypes]

---

 arch/mips/kernel/mips-cm.c |    2 +-
 arch/mips/mm/c-r4k.c       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/mips/kernel/mips-cm.c renamed from arch/mips/kernel/mips-cm.c~mips-mark-local-function-static-if-possible +1 -1
@@ -201,7 +201,7 @@ phys_addr_t __mips_cm_phys_base(void)
 phys_addr_t mips_cm_phys_base(void)
 	__attribute__((weak, alias("__mips_cm_phys_base")));
 
-phys_addr_t __mips_cm_l2sync_phys_base(void)
+static phys_addr_t __mips_cm_l2sync_phys_base(void)
 {
 	u32 base_reg;
 
arch/mips/mm/c-r4k.c renamed from arch/mips/mm/c-r4k.c~mips-mark-local-function-static-if-possible +1 -1
@@ -1828,7 +1828,7 @@ static struct notifier_block r4k_cache_p
 	.notifier_call = r4k_cache_pm_notifier,
 };
 
-int __init r4k_cache_init_pm(void)
+static int __init r4k_cache_init_pm(void)
 {
 	return cpu_pm_register_notifier(&r4k_cache_pm_notifier_block);
 }

_

Patches currently in -mm which might be from [email protected] are

kexec-fix-kexec_file-dependencies.patch kexec-fix-kexec_file-dependencies-fix.patch kexec-select-crypto-from-kexec_file-instead-of-depending-on-it.patch makefileextrawarn-turn-on-missing-prototypes-globally.patch