Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4193282imj; Tue, 12 Feb 2019 11:23:00 -0800 (PST) X-Google-Smtp-Source: AHgI3IZifmcK3jgI2VTAnqOvm58vd1B31EYEzWJ5LKYBniQBvbr0xH2Alkfl3gaqYlkOIJyR2hs+ X-Received: by 2002:a17:902:8e8b:: with SMTP id bg11mr5627107plb.332.1549999380596; Tue, 12 Feb 2019 11:23:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549999380; cv=none; d=google.com; s=arc-20160816; b=dF/uq6WS5+4IdbLYjjHVLjlpQcslENhdBknYtiE9HM8FcHhRrD94vdHJpfXpBy2uv2 dRsK2STxQCl58ZDmNuFx9FsKhNZorw4JM4abEbk+paTEjmFM3xDXG5pNK5zmZ5W2cJuG vvHp6IaNWXBguuCYIRzyHC2BWQYMnOOOQm9RNtJsSHTxH1qaZ2KLFAQ/C43PPboTHZt2 La6DDqsYYb2EgLdSmy9lVSYfaypakmUPcRTdE9a5GaxDeaxPDF8AzhMcebUlX41ufKiN dkPP5xfn2jqVYz5LqZtPdtWCkADyu9AKdzo3JS9PAspWegPIgytoGJzS4L6tEdQq0ABX E8TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QKSAfSW+HU+6g2ll6+7RIavzdY++Wxt612rO4JTZBm0=; b=kAoxhumvF+F4etjkhWzOtHKupe5TiC2NCQ5xR9oZrbuMKNlVykuWX6TljQHtf06IG3 R9TgYhaJ4lmZ7Pgty/mlZNVaXwpJk7vHHgb0WPUqdCmTUg4IesAyEdwaXB+WPmFzFHLQ 0c9dYriBVpHcDdJqtmpTUhhqeqgr8T6wybnsCoERPTelWx0kmoCnWEeeYLOsLYxJelMv Z6P4POixmzfzwrvbudpnqsrXjf1R6ZxF2q4gshyWPcIaOBxWpNobZ2lPvg34pbna/AMz Bg7jlZTSV2FyfVMXtUpnSNp14FxWA+U5mK0nVkASnYxrJ7D1fcEgxS0BmI35Fm+PBcR8 ZVRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=q+B21HlQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r7si13333657pfb.237.2019.02.12.11.22.44; Tue, 12 Feb 2019 11:23:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=q+B21HlQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730338AbfBLSeL (ORCPT + 99 others); Tue, 12 Feb 2019 13:34:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:37072 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726049AbfBLSeL (ORCPT ); Tue, 12 Feb 2019 13:34:11 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9BB9320842; Tue, 12 Feb 2019 18:34:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549996451; bh=+qQSxXleqR6YUtPP08TdpBONjqXTvc9GgGmMifSjOYI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=q+B21HlQXzPe1vj2AWgdcfGm2rob9dT/1LWzmcyYHlFcZxdKiHvDewwCyGGoaBUDK X7XXAsiKo4Dy8z1lG28L3sl36oX6W9jLUfTaZEGBa2iGVi9qcpiZYB0EWHeipMh/as Mf/ffXdolixd3SC+ry5r8v6lOP8ooRfBGEAoxt2s= Date: Tue, 12 Feb 2019 19:34:08 +0100 From: Greg KH To: Xiang Xiao Cc: alexander.shishkin@linux.intel.com, andriy.shevchenko@linux.intel.com, linux-kernel@vger.kernel.org, Xiang Xiao Subject: Re: [PATCH] lib/string: add memrchr function Message-ID: <20190212183408.GA14892@kroah.com> References: <1549994809-27479-1-git-send-email-xiaoxiang@xiaomi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1549994809-27479-1-git-send-email-xiaoxiang@xiaomi.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 13, 2019 at 02:06:49AM +0800, Xiang Xiao wrote: > Here is the detailed description for memrchr: > https://linux.die.net/man/3/memrchr Please put it in the changelog, as web pages move and go away :( > > Signed-off-by: Xiang Xiao > --- > include/linux/string.h | 1 + > lib/string.c | 21 +++++++++++++++++++++ > 2 files changed, 22 insertions(+) > > diff --git a/include/linux/string.h b/include/linux/string.h > index 7927b87..f380f4b 100644 > --- a/include/linux/string.h > +++ b/include/linux/string.h > @@ -167,6 +167,7 @@ static inline void memcpy_flushcache(void *dst, const void *src, size_t cnt) > memcpy(dst, src, cnt); > } > #endif > +void *memrchr(const void *s, int c, size_t n); Who is going to use this? thanks, greg k-h