Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4228094imj; Tue, 12 Feb 2019 12:03:37 -0800 (PST) X-Google-Smtp-Source: AHgI3IYdDqferj8SA5J1x/ks4KVD7uIUOGyEI7rG8ZsFoUFyaNBQA0lkJCbERz9Bh8kTOIKZ13dZ X-Received: by 2002:aa7:8c8c:: with SMTP id p12mr897589pfd.0.1550001817718; Tue, 12 Feb 2019 12:03:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550001817; cv=none; d=google.com; s=arc-20160816; b=ShVNfCDG/RwdhftGG2tr1AFPT4+zyv5TEMkYUPHGjurN334oQ8tYWZaBHJJNL8CJR7 EWgjUpvDI0fmHDRI87D34vp7MFt+j3e77jnh15ymfmnqoXrMXKwYWeOKXjPI9abEeoCc 7eRttn3Chanqs1/2VbAvBX4IGyDMXnchKaks1BJIt778o5AeEb8rJxdw5FpU6GsDd/EH JQkHuzrZU/SbpSbfsXssdEH+E+SbhveROAYyNIIlHiqCZ+rUG4o7+H+dIA773Ru0r0Ag +4QW8Si3rtz1J3ZLgZwMFmGybFG/2oeimiCXO3/aa/Mb1Qtu10EZkhwNL5pv5uapmWjz 1AfQ== 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=tiG+mnYREtuBXpivdBaCdKDhBxQdqFVCyIgpyfzoKNA=; b=pbWZpVaZkGWYXOEsVfd/BrtTBoy90ZKa7Zt2+v6wiS08V0hd8p3XkqSqsp05dcwgy4 5aKRBm0u1/oe+HzxXwUj1+0BeolED3RZ9qicYq7kJWVaLVfR+XRSV28A4GJsX1sRJwFE wEhernQAwkdcdT8FOw1gotYScYbTytrc4CAVsl76IOrLVIOJ5r+nCWZAf6Qx/f6ooUeU 8qX3fGRQB5NnmF6UJOqvcL1AkPK7LZxG/dbTGPJ/NFaJbxDNQjNWzSGxElwdFtIPHzwA Fidfa/BOOCrARSjkje+76Ux3cjIhm8oOu++UqLjyM8LdBXbPskFqZHZs7wrtQh3JwRnx H5sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FMxTGlGv; 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 c7si13898154plr.157.2019.02.12.12.03.22; Tue, 12 Feb 2019 12:03:37 -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=FMxTGlGv; 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 S1729002AbfBLTLg (ORCPT + 99 others); Tue, 12 Feb 2019 14:11:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:57056 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726748AbfBLTLg (ORCPT ); Tue, 12 Feb 2019 14:11:36 -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 1E5E521905; Tue, 12 Feb 2019 19:11:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549998695; bh=IPJOsrQhcYA9nEJxppfXW5ekczl11u2uR+0+JhMOq7k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FMxTGlGvWh1C/nWUipnKtxd4uk0N6BkVyiPROheeO/ZEip0fRO9rL3/rPL1B6s/zW OVD033l0bbo6O7WtWzhz9tSQuVeGdRchj5giIbNlT/u5hKRXuSUvXmdJh/+R+zsoe7 jPWNzQGiX+KgeGWqdrVmUZFwE8Ns/LW2zD9glioY= Date: Tue, 12 Feb 2019 20:11:33 +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: [v2] lib/string: add memrchr function Message-ID: <20190212191133.GA22246@kroah.com> References: <1549994809-27479-1-git-send-email-xiaoxiang@xiaomi.com> <1549997683-27986-1-git-send-email-xiaoxiang@xiaomi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1549997683-27986-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:54:43AM +0800, Xiang Xiao wrote: > Here is the detailed description for memrchr: > > void *memrchr(const void *s, int c, size_t n); > > The memrchr() function is like the memchr() function, except > that it searches backward from the end of the n bytes pointed > to by s instead of forward from the beginning. > > The memrchr() functions return a pointer to the matching byte > or NULL if the character does not occur in the given memory > area. > > Signed-off-by: Xiang Xiao > --- > include/linux/string.h | 1 + > lib/string.c | 21 +++++++++++++++++++++ > 2 files changed, 22 insertions(+) Don't add new apis without any users. thanks, greg k-h