Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4949238pxu; Tue, 22 Dec 2020 05:01:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVW6NAkfLz5OkokLoNui9/8HgTBmkRkE46OlQHP0cO9xrgbNTM3DMqf9po4s+3yfYwUJxr X-Received: by 2002:a50:d685:: with SMTP id r5mr20584259edi.248.1608642118556; Tue, 22 Dec 2020 05:01:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608642118; cv=none; d=google.com; s=arc-20160816; b=dI//V5dWXlfcwv+WnG79uW9JjYfyBjf1TyXoTswnedEsXfCTDgc3t3cImrxPf+2rCA lnro9D2N1CyxihMDPqH9EBa64z8KfzmQyq/7po+Bn5vIglwvNydHvm6Kc/G55Z971OqJ eNqhY4u319na9oxY+BfyBnKD9oIJGLOwDF6nw/II3zBSnlcHtxflqh3q4v8Jn4ofKq4A UmpVh6hk17aiIqjZ3uTLOM1fL4jCcaZeOLT3OstVapqPPDcsou/6uWkOUuYtnhSWHxoo +jYUIcTHvCBxdWYhD3320kMStYntRjl2hxkQKhQ526Td3UHS+iu7CbsFp1C7iTW4Kpzk Crrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=fJyVygM9usbbscAGY5ErpD/5E8JGRMWrDOuSU55v38c=; b=h5VSx0WopoLwUFHY4NZpQCeJB82nsbhU4ZKnHK4ZhSX+9J5wMRWZnG8PC0/rLvgS3p XlCZgXilEYd0q879MlbbAb6ty4XWKfQ8kZiegIElOS2vHAv+amFaw2AADM0mepBU8ZRS xqT3U98BZaiIOYkd7mtyOwfopqmmcxBn0lZShIP2dX2i5OCb46GzpUxygMqEEUQ1MhMD XBIAa5BsJ9XKWELPpcD46c/FL+4rBuwWlvDgMBxGfM/k7F5fwMTuAGKxnyut/bNKNkys UQUBH0kU7AQuRZ9g4Ny4vozD2fWnsGs2yQipQUU0JPoTZww4Mf6EisdVNyfbGKAdQd1C 7YJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mEsUgJpn; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rn2si10538037ejb.251.2020.12.22.05.01.35; Tue, 22 Dec 2020 05:01:58 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mEsUgJpn; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726867AbgLVNAz (ORCPT + 99 others); Tue, 22 Dec 2020 08:00:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726631AbgLVNAy (ORCPT ); Tue, 22 Dec 2020 08:00:54 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23438C0613D3; Tue, 22 Dec 2020 05:00:14 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id w18so11940719iot.0; Tue, 22 Dec 2020 05:00:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fJyVygM9usbbscAGY5ErpD/5E8JGRMWrDOuSU55v38c=; b=mEsUgJpnnDf8lfTbqdSw+tbF4/6uf3qIGMxJIbSYNVQU7eE2AGUdL0/hms56wKhP5Y n/6kbkRfxz+9G47gxsl2A0GTMgM+Fm9+KzGpBdjvImmhOi9Di35PhjodY7BtWdSSCQpJ UzoA30DBVJppftRz3mIUrbkN+ibHJ5x7PyLk8rt6bINL+00cz9D9iRdVeL92IGsLRbKA gPVwSRalT44FTBr4oUWTk/eRgZoEVOUKNaV798Ij7i4PW0dqDwLwRBmBbvTE1QXAWpIQ pV7HeXV28uasXmHoCpz18BuMOD4I0Bc/AUZsL1Fx6wNnXwvavHKEUkw2qZlBW98p7uz3 Poow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fJyVygM9usbbscAGY5ErpD/5E8JGRMWrDOuSU55v38c=; b=WbzqYcBR9F+NTfQA0VhFFONPCBhGa4rnagdslrJ+4+tErLVzP0y6wy36xO9BxF64dB tlM8FiMGTjJX+yKJa53NRtkOGEJZfiVFdzYQY6Fzt1+p0+iRMVPKcbC9CQxQfoiK0teg mIZimCoxztZQbrVR3WfRvI3EB54IX3Tt/WtAt6yUccaDHiwZnS8nU7RF9PkwN5/Z9xwT kAkyPwDWzNd+Uf+Mqwm+GkFQ+282sDPlzUU9l6rQTs6Z2/SmVSNh1XapNAF24GC0Ob1D tqHhgA4ssnohFAf9iVxOitx2PZPo+l+KsCfWxT6SXx135cuj3pyr7u2/AhYYxw9xSKAr t0Zw== X-Gm-Message-State: AOAM532BDF+m1qaOk83Iak8yz+eJCD6C/1F2pLSq6h5rzy4+DDd1awP6 FPpDYz4gnCbkA6qKOaVg8fGDXDiIWx0bxggkNdaGqCSq9TU= X-Received: by 2002:a02:3f62:: with SMTP id c34mr19087118jaf.16.1608642013470; Tue, 22 Dec 2020 05:00:13 -0800 (PST) MIME-Version: 1.0 References: <20201222095210.61897-1-alexandru.ardelean@analog.com> In-Reply-To: From: Alexandru Ardelean Date: Tue, 22 Dec 2020 15:00:02 +0200 Message-ID: Subject: Re: [PATCH v5 1/2] lib/string.c: add __sysfs_match_string_with_gaps() helper To: Greg KH Cc: Alexandru Ardelean , linux-iio , LKML , Jonathan Cameron , Lars-Peter Clausen , akpm@linux-foundation.org, Andy Shevchenko Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 22, 2020 at 1:13 PM Greg KH wrote: > > On Tue, Dec 22, 2020 at 11:52:09AM +0200, Alexandru Ardelean wrote: > > The original docstring of the __sysfs_match_string() and match_string() > > helper, implied that -1 could be used to search through NULL terminated > > arrays, and positive 'n' can be used to go through arrays that may have > > NULL elements in the middle of the array. > > > > This isn't true. Regardless of the value of 'n', the first NULL element in > > the array. > > I can not parse this last sentence, is it missing something? oh, my bad; will fix this and send a new version > > thanks, > > greg k-h