Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3414186pxb; Tue, 20 Apr 2021 07:51:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxumeuRydjYpfMPJ3ixKvUNOoBC3ROSd849hmYxN3y0/n1xeR2TRzvrqmvBYPu6GBKBbrpr X-Received: by 2002:a05:6402:4242:: with SMTP id g2mr32529330edb.329.1618930272867; Tue, 20 Apr 2021 07:51:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618930272; cv=none; d=google.com; s=arc-20160816; b=eCTY4QfDXc6I+V7kwXw+EPNYrvW3K0y6wYmtMsB4dc6W98GYnGdAnABrQ8CDsdHgWF v0/jdgsNt714XsfI6GKhqdIOdkt/vanq+pPvDj/5ceRjXKBHmVnWVei737+KxluMXgAj /5Yf10W4Q3243/hZdiRuWOtRhcRlBFbcsv7/sk/UpfPFA+ZlRBqVW+yryTELLFCfdW3/ wty+osmLnVDeYdkjJ3JZz8LRX0YamdkBDZTD6dIy1PoIK6rq5fT2iZqSs1lGJ0JkXceT Olocw1N/dI/h7EVTmAYf0jvuvURQs4i4IFDP2CKOp5+zeEgCTGL0bL93xGwAqtrygzW9 fIqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=69c/suhHotwW+t4b4S1e0Clny1EowO9TJIKA0LoMQqI=; b=XXz7yjK8yg2PG2xkRnyef6A0RtK0UGdoucrmYaLKNjfXDMHrQqJtvIehwsLxD++yeV nb2ibtwR2pFqMXrBtDkqUU86aMaib7X7JopLIAe4l5ZcRa2cGC/lHXCZXiMWUnQB5exs K/6luvuc2AJUh7cI5AKygU/OdLsnRnSzLJQU6ELlN5ml4r6mky8738VpPNiKzMgTryc5 QDsbtq5tBV3JaL50c8l2+9EWciodwFsQVlJ6nV8efO4ixI5nqV5Gb+Q15aHLAjJubXBa f7DlavrqJT3o+QjD5RrAmmhNUJ6iHwxVXXykfITrR/3d6hnud2qgaafZAQS/JfvCnxF0 OSdA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t18si14666629ejj.437.2021.04.20.07.50.48; Tue, 20 Apr 2021 07:51:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232473AbhDTOu0 (ORCPT + 99 others); Tue, 20 Apr 2021 10:50:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231682AbhDTOuX (ORCPT ); Tue, 20 Apr 2021 10:50:23 -0400 Received: from zeniv-ca.linux.org.uk (zeniv-ca.linux.org.uk [IPv6:2607:5300:60:148a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B981C06174A; Tue, 20 Apr 2021 07:49:51 -0700 (PDT) Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94 #2 (Red Hat Linux)) id 1lYrh8-006oXm-Sg; Tue, 20 Apr 2021 14:49:43 +0000 Date: Tue, 20 Apr 2021 14:49:42 +0000 From: Al Viro To: Arnd Bergmann Cc: Guo Ren , linux-riscv , Linux Kernel Mailing List , linux-csky@vger.kernel.org, linux-arch , Guo Ren Subject: Re: [PATCH 2/3] nios2: Cleanup deprecated function strlen_user Message-ID: References: <1618925829-90071-1-git-send-email-guoren@kernel.org> <1618925829-90071-2-git-send-email-guoren@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 20, 2021 at 04:32:33PM +0200, Arnd Bergmann wrote: > On Tue, Apr 20, 2021 at 3:37 PM wrote: > > > > From: Guo Ren > > > > $ 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); > > I would suggest using "grep strlen_user * -rw", to let the whole-word match > filter out the irrelevant ones for the changelog. > > > See grep result, nobody uses it. > > > > Signed-off-by: Guo Ren > > Cc: Arnd Bergmann > > All three patches > > Reviewed-by: Arnd Bergmann > > Do you want me to pick them up in the asm-generic tree? Might make sense to check -next from time to time... See a0d8d552783b "whack-a-mole: kill strlen_user() (again)" in there