From: guoren@kernel.org To: guoren@kernel.org, arnd@arndb.de Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, linux-arch@vger.kernel.org, Guo Ren <guoren@linux.alibaba.com> Subject: [PATCH 2/3] nios2: Cleanup deprecated function strlen_user Date: Tue, 20 Apr 2021 13:37:08 +0000 [thread overview] Message-ID: <1618925829-90071-2-git-send-email-guoren@kernel.org> (raw) In-Reply-To: <1618925829-90071-1-git-send-email-guoren@kernel.org> From: Guo Ren <guoren@linux.alibaba.com> $ grep strlen_user * -r arch/csky/include/asm/uaccess.h:#define strlen_user(str) strnlen_user(str, 32767) arch/csky/lib/usercopy.c: * strlen_user: - Get the size of a string in user space. arch/ia64/lib/strlen.S: // Please note that in the case of strlen() as opposed to strlen_user() arch/mips/lib/strnlen_user.S: * make strlen_user and strnlen_user access the first few KSEG0 arch/nds32/include/asm/uaccess.h:extern __must_check long strlen_user(const char __user * str); arch/nios2/include/asm/uaccess.h:extern __must_check long strlen_user(const char __user *str); arch/riscv/include/asm/uaccess.h:extern long __must_check strlen_user(const char __user *str); kernel/trace/trace_probe_tmpl.h:static nokprobe_inline int fetch_store_strlen_user(unsigned long addr); kernel/trace/trace_probe_tmpl.h: ret += fetch_store_strlen_user(val + code->offset); kernel/trace/trace_uprobe.c:fetch_store_strlen_user(unsigned long addr) kernel/trace/trace_kprobe.c:fetch_store_strlen_user(unsigned long addr) kernel/trace/trace_kprobe.c: return fetch_store_strlen_user(addr); See grep result, nobody uses it. Signed-off-by: Guo Ren <guoren@linux.alibaba.com> Cc: Arnd Bergmann <arnd@arndb.de> --- arch/nios2/include/asm/uaccess.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/nios2/include/asm/uaccess.h b/arch/nios2/include/asm/uaccess.h index a741abb..ba9340e 100644 --- a/arch/nios2/include/asm/uaccess.h +++ b/arch/nios2/include/asm/uaccess.h @@ -83,7 +83,6 @@ raw_copy_to_user(void __user *to, const void *from, unsigned long n); extern long strncpy_from_user(char *__to, const char __user *__from, long __len); -extern __must_check long strlen_user(const char __user *str); extern __must_check long strnlen_user(const char __user *s, long n); /* Optimized macros */ -- 2.7.4
WARNING: multiple messages have this Message-ID (diff)
From: guoren@kernel.org To: guoren@kernel.org, arnd@arndb.de Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, linux-arch@vger.kernel.org, Guo Ren <guoren@linux.alibaba.com> Subject: [PATCH 2/3] nios2: Cleanup deprecated function strlen_user Date: Tue, 20 Apr 2021 13:37:08 +0000 [thread overview] Message-ID: <1618925829-90071-2-git-send-email-guoren@kernel.org> (raw) In-Reply-To: <1618925829-90071-1-git-send-email-guoren@kernel.org> From: Guo Ren <guoren@linux.alibaba.com> $ grep strlen_user * -r arch/csky/include/asm/uaccess.h:#define strlen_user(str) strnlen_user(str, 32767) arch/csky/lib/usercopy.c: * strlen_user: - Get the size of a string in user space. arch/ia64/lib/strlen.S: // Please note that in the case of strlen() as opposed to strlen_user() arch/mips/lib/strnlen_user.S: * make strlen_user and strnlen_user access the first few KSEG0 arch/nds32/include/asm/uaccess.h:extern __must_check long strlen_user(const char __user * str); arch/nios2/include/asm/uaccess.h:extern __must_check long strlen_user(const char __user *str); arch/riscv/include/asm/uaccess.h:extern long __must_check strlen_user(const char __user *str); kernel/trace/trace_probe_tmpl.h:static nokprobe_inline int fetch_store_strlen_user(unsigned long addr); kernel/trace/trace_probe_tmpl.h: ret += fetch_store_strlen_user(val + code->offset); kernel/trace/trace_uprobe.c:fetch_store_strlen_user(unsigned long addr) kernel/trace/trace_kprobe.c:fetch_store_strlen_user(unsigned long addr) kernel/trace/trace_kprobe.c: return fetch_store_strlen_user(addr); See grep result, nobody uses it. Signed-off-by: Guo Ren <guoren@linux.alibaba.com> Cc: Arnd Bergmann <arnd@arndb.de> --- arch/nios2/include/asm/uaccess.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/nios2/include/asm/uaccess.h b/arch/nios2/include/asm/uaccess.h index a741abb..ba9340e 100644 --- a/arch/nios2/include/asm/uaccess.h +++ b/arch/nios2/include/asm/uaccess.h @@ -83,7 +83,6 @@ raw_copy_to_user(void __user *to, const void *from, unsigned long n); extern long strncpy_from_user(char *__to, const char __user *__from, long __len); -extern __must_check long strlen_user(const char __user *str); extern __must_check long strnlen_user(const char __user *s, long n); /* Optimized macros */ -- 2.7.4 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2021-04-20 13:38 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-04-20 13:37 [PATCH 1/3] nds32: Cleanup deprecated function strlen_user guoren 2021-04-20 13:37 ` guoren 2021-04-20 13:37 ` guoren [this message] 2021-04-20 13:37 ` [PATCH 2/3] nios2: " guoren 2021-04-20 14:32 ` Arnd Bergmann 2021-04-20 14:32 ` Arnd Bergmann 2021-04-20 14:49 ` Al Viro 2021-04-20 14:49 ` Al Viro 2021-04-21 8:28 ` Guo Ren 2021-04-21 8:28 ` Guo Ren 2021-04-20 13:37 ` [PATCH 3/3] riscv: " guoren 2021-04-20 13:37 ` guoren 2021-04-20 14:38 ` [PATCH 1/3] nds32: " Christoph Hellwig 2021-04-20 14:38 ` Christoph Hellwig 2021-04-20 15:20 ` Greentime Hu 2021-04-20 15:20 ` Greentime Hu
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1618925829-90071-2-git-send-email-guoren@kernel.org \ --to=guoren@kernel.org \ --cc=arnd@arndb.de \ --cc=guoren@linux.alibaba.com \ --cc=linux-arch@vger.kernel.org \ --cc=linux-csky@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-riscv@lists.infradead.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.