Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF758C8300C for ; Sat, 10 Jun 2023 00:45:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232557AbjFJApl (ORCPT ); Fri, 9 Jun 2023 20:45:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231133AbjFJAph (ORCPT ); Fri, 9 Jun 2023 20:45:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34D203AA1 for ; Fri, 9 Jun 2023 17:45:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C6E67651B5 for ; Sat, 10 Jun 2023 00:45:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24997C433EF; Sat, 10 Jun 2023 00:45:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1686357924; bh=oiEIGpi5+ePwf158leq2/kfFF2AJGig2D13QfcLGL/Y=; h=Date:To:From:Subject:From; b=BWGPkwevPzKhj7fPajdwfnyqtr2GdJZr6iXfXzciKpu2yD0b7mW0wrdVe/jJAQbM5 8ctPs2OJLzX3zKNJ8YGlgUZGkHO/2gqTfjZJERhYtMHJL2PuAuayFPqeJqeok/kwWZ 9Lxti37StWmuJ1uuHXcuP4BNwG5mPNvU17VhNeCE= Date: Fri, 09 Jun 2023 17:45:23 -0700 To: mm-commits@vger.kernel.org, will@kernel.org, tsbogend@alpha.franken.de, tj@kernel.org, tglx@linutronix.de, rafael@kernel.org, peterz@infradead.org, pavel@ucw.cz, paul@paul-moore.com, palmer@dabbelt.com, mpe@ellerman.id.au, monstr@monstr.eu, mingo@redhat.com, longman@redhat.com, linux@armlinux.org.uk, hca@linux.ibm.com, eparis@redhat.com, dennis@kernel.org, deller@gmx.de, cl@linux.com, catalin.marinas@arm.com, boqun.feng@gmail.com, arnd@arndb.de, akpm@linux-foundation.org From: Andrew Morton Subject: [merged mm-nonmm-stable] thread_info-move-function-declarations-to-linux-thread_infoh.patch removed from -mm tree Message-Id: <20230610004524.24997C433EF@smtp.kernel.org> Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org The quilt patch titled Subject: thread_info: move function declarations to linux/thread_info.h has been removed from the -mm tree. Its filename was thread_info-move-function-declarations-to-linux-thread_infoh.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 Subject: thread_info: move function declarations to linux/thread_info.h Date: Wed, 17 May 2023 15:11:01 +0200 There are a few __weak functions in kernel/fork.c, which architectures can override. If there is no prototype, the compiler warns about them: kernel/fork.c:164:13: error: no previous prototype for 'arch_release_task_struct' [-Werror=missing-prototypes] kernel/fork.c:991:20: error: no previous prototype for 'arch_task_cache_init' [-Werror=missing-prototypes] kernel/fork.c:1086:12: error: no previous prototype for 'arch_dup_task_struct' [-Werror=missing-prototypes] There are already prototypes in a number of architecture specific headers that have addressed those warnings before, but it's much better to have these in a single place so the warning no longer shows up anywhere. Link: https://lkml.kernel.org/r/20230517131102.934196-14-arnd@kernel.org Signed-off-by: Arnd Bergmann Cc: Boqun Feng Cc: Catalin Marinas Cc: Christoph Lameter Cc: Dennis Zhou Cc: Eric Paris Cc: Heiko Carstens Cc: Helge Deller Cc: Ingo Molnar Cc: Michael Ellerman Cc: Michal Simek Cc: Palmer Dabbelt Cc: Paul Moore Cc: Pavel Machek Cc: Peter Zijlstra Cc: Rafael J. Wysocki Cc: Russell King Cc: Tejun Heo Cc: Thomas Bogendoerfer Cc: Thomas Gleixner Cc: Waiman Long Cc: Will Deacon Signed-off-by: Andrew Morton --- arch/arm64/include/asm/thread_info.h | 4 ---- arch/s390/include/asm/thread_info.h | 3 --- arch/sh/include/asm/thread_info.h | 3 --- arch/x86/include/asm/thread_info.h | 3 --- include/linux/thread_info.h | 5 +++++ 5 files changed, 5 insertions(+), 13 deletions(-) --- a/arch/arm64/include/asm/thread_info.h~thread_info-move-function-declarations-to-linux-thread_infoh +++ a/arch/arm64/include/asm/thread_info.h @@ -55,10 +55,6 @@ struct thread_info { void arch_setup_new_exec(void); #define arch_setup_new_exec arch_setup_new_exec -void arch_release_task_struct(struct task_struct *tsk); -int arch_dup_task_struct(struct task_struct *dst, - struct task_struct *src); - #endif #define TIF_SIGPENDING 0 /* signal pending */ --- a/arch/s390/include/asm/thread_info.h~thread_info-move-function-declarations-to-linux-thread_infoh +++ a/arch/s390/include/asm/thread_info.h @@ -52,9 +52,6 @@ struct thread_info { struct task_struct; -void arch_release_task_struct(struct task_struct *tsk); -int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src); - void arch_setup_new_exec(void); #define arch_setup_new_exec arch_setup_new_exec --- a/arch/sh/include/asm/thread_info.h~thread_info-move-function-declarations-to-linux-thread_infoh +++ a/arch/sh/include/asm/thread_info.h @@ -84,9 +84,6 @@ static inline struct thread_info *curren #define THREAD_SIZE_ORDER (THREAD_SHIFT - PAGE_SHIFT) -extern void arch_task_cache_init(void); -extern int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src); -extern void arch_release_task_struct(struct task_struct *tsk); extern void init_thread_xstate(void); #endif /* __ASSEMBLY__ */ --- a/arch/x86/include/asm/thread_info.h~thread_info-move-function-declarations-to-linux-thread_infoh +++ a/arch/x86/include/asm/thread_info.h @@ -232,9 +232,6 @@ static inline int arch_within_stack_fram current_thread_info()->status & TS_COMPAT) #endif -extern void arch_task_cache_init(void); -extern int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src); -extern void arch_release_task_struct(struct task_struct *tsk); extern void arch_setup_new_exec(void); #define arch_setup_new_exec arch_setup_new_exec #endif /* !__ASSEMBLY__ */ --- a/include/linux/thread_info.h~thread_info-move-function-declarations-to-linux-thread_infoh +++ a/include/linux/thread_info.h @@ -256,6 +256,11 @@ check_copy_size(const void *addr, size_t static inline void arch_setup_new_exec(void) { } #endif +void arch_task_cache_init(void); /* for CONFIG_SH */ +void arch_release_task_struct(struct task_struct *tsk); +int arch_dup_task_struct(struct task_struct *dst, + struct task_struct *src); + #endif /* __KERNEL__ */ #endif /* _LINUX_THREAD_INFO_H */ _ Patches currently in -mm which might be from arnd@arndb.de are time_namespace-always-provide-arch_get_vdso_data-prototype-for-vdso.patch kcov-add-prototypes-for-helper-functions.patch decompressor-provide-missing-prototypes.patch syscalls-add-sys_ni_posix_timers-prototype.patch