The patch titled Subject: regset: make user_regset_copyin_ignore() *void* has been added to the -mm mm-nonmm-unstable branch. Its filename is regset-make-user_regset_copyin_ignore-void.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/regset-make-user_regset_copyin_ignore-void.patch This patch will later appear in the mm-nonmm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Sergey Shtylyov <s.shtylyov@xxxxxx> Subject: regset: make user_regset_copyin_ignore() *void* Date: Sat, 15 Oct 2022 00:22:35 +0300 user_regset_copyin_ignore() apparently cannot fail and so always returns 0. Let's make this function return *void* instead of *int*... Link: https://lkml.kernel.org/r/20221014212235.10770-14-s.shtylyov@xxxxxx Signed-off-by: Sergey Shtylyov <s.shtylyov@xxxxxx> Cc: Brian Cain <bcain@xxxxxxxxxxx> Cc: Catalin Marinas <catalin.marinas@xxxxxxx> Cc: Christophe Leroy <christophe.leroy@xxxxxxxxxx> Cc: David S. Miller <davem@xxxxxxxxxxxxx> Cc: Dinh Nguyen <dinguyen@xxxxxxxxxx> Cc: Helge Deller <deller@xxxxxx> Cc: James Bottomley <James.Bottomley@xxxxxxxxxxxxxxxxxxxxx> Cc: Jonas Bonn <jonas@xxxxxxxxxxxx> Cc: Michael Ellerman <mpe@xxxxxxxxxxxxxx> Cc: Nicholas Piggin <npiggin@xxxxxxxxx> Cc: Oleg Nesterov <oleg@xxxxxxxxxx> Cc: Rich Felker <dalias@xxxxxxxx> Cc: Russell King <linux@xxxxxxxxxxxxxxx> Cc: Stafford Horne <shorne@xxxxxxxxx> Cc: Stefan Kristiansson <stefan.kristiansson@xxxxxxxxxxxxx> Cc: Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx> Cc: Will Deacon <will@xxxxxxxxxx> Cc: Yoshinori Sato <ysato@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/regset.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) --- a/include/linux/regset.h~regset-make-user_regset_copyin_ignore-void +++ a/include/linux/regset.h @@ -275,15 +275,15 @@ static inline int user_regset_copyin(uns return 0; } -static inline int user_regset_copyin_ignore(unsigned int *pos, - unsigned int *count, - const void **kbuf, - const void __user **ubuf, - const int start_pos, - const int end_pos) +static inline void user_regset_copyin_ignore(unsigned int *pos, + unsigned int *count, + const void **kbuf, + const void __user **ubuf, + const int start_pos, + const int end_pos) { if (*count == 0) - return 0; + return; BUG_ON(*pos < start_pos); if (end_pos < 0 || *pos < end_pos) { unsigned int copy = (end_pos < 0 ? *count @@ -295,7 +295,6 @@ static inline int user_regset_copyin_ign *pos += copy; *count -= copy; } - return 0; } extern int regset_get(struct task_struct *target, _ Patches currently in -mm which might be from s.shtylyov@xxxxxx are arc-ptrace-user_regset_copyin_ignore-always-returns-0.patch arm-ptrace-user_regset_copyin_ignore-always-returns-0.patch arm64-ptrace-user_regset_copyin_ignore-always-returns-0.patch hexagon-ptrace-user_regset_copyin_ignore-always-returns-0.patch ia64-ptrace-user_regset_copyin_ignore-always-returns-0.patch mips-ptrace-user_regset_copyin_ignore-always-returns-0.patch nios2-ptrace-user_regset_copyin_ignore-always-returns-0.patch openrisc-ptrace-user_regset_copyin_ignore-always-returns-0.patch parisc-ptrace-user_regset_copyin_ignore-always-returns-0.patch powerpc-ptrace-user_regset_copyin_ignore-always-returns-0.patch sh-ptrace-user_regset_copyin_ignore-always-returns-0.patch sparc-ptrace-user_regset_copyin_ignore-always-returns-0.patch regset-make-user_regset_copyin_ignore-void.patch