Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6A15C636CC for ; Wed, 8 Feb 2023 14:43:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231191AbjBHOnN (ORCPT ); Wed, 8 Feb 2023 09:43:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjBHOnK (ORCPT ); Wed, 8 Feb 2023 09:43:10 -0500 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1D9CF744 for ; Wed, 8 Feb 2023 06:43:09 -0800 (PST) Received: by mail-ed1-x52a.google.com with SMTP id l12so11866746edb.0 for ; Wed, 08 Feb 2023 06:43:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20210112.gappssmtp.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=MKHoWeZWs7NiJLRpEy7LvZgHUCoaDkqtAp1qmSHZ7Oo=; b=TmDoYGNQZQSCkJX0fXqdV6WQnyLKrGnmsRbOWLlw+2SNvU06zBA3oLrdqSj02345Fr GJjS61SpRxzf7z2uGOPzXE3HkEm1DBFXiXSBYd/XV5ETcgFw73gX2EjMklV6feztJRdt K0ufNGWBS89sH8KAxTFg+ngESHjS1BEV6cmUYGvF0vShuUbZNME36s5t4zAkmE8h0wdg +7Ly+QR6LoRSD2kr+fD1R8LsbJk8V7OPawidj5Xfab/jXfINTf7vYtNK7Ujp751yxueD +Sku641YrKoQgyzVPx1LiwrhDtYJFxkF3tK9bM6hBDTMniWARIPlKhZL3ErAZPFwCn3f SaOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=MKHoWeZWs7NiJLRpEy7LvZgHUCoaDkqtAp1qmSHZ7Oo=; b=FXlLwet+sCFMdWfzovU61Tp9DjNhCQhfFNOkKuPfOchE27EytYZGrF4FlRihb8Vn4K DVw8FnUrdfBbRTlnA/v/7JoE2xxvFI6PSIsFzsjzW6eWd/0oS0mhCVhhzIia9bJF3voQ p406+CbVVDvAYZ9eeQ2FxDtml9akSoPoPFGB4dUSVpONe2K3BQBdqgOEEB1YvKeCofkF H6UPERQgT/jYjyWAQHSKnd8nb5Y4+t6sIuW/wqfJP00agNlZEd/9lUWMF5p2QLm9+tCN QxTNrVkPSddObd7lst+TzgVmY/OjPPa1tvY/gQp1cspIkgQRgAmOytoEIEJlw1/V7G/r Imww== X-Gm-Message-State: AO0yUKXOzh3eHp5WBjtAPmjev6qLYUiXZPriQ1494VUP2G6ggFUgkyjB mSRloBD217qQPz/EA/4fcg8Fnw== X-Google-Smtp-Source: AK7set/bpf7e9aUKvSQRcvRBfG8qmWZwOhr+j9JI5dBi0DLWS3AlaY3I1mr1+RGewqtGBi3LY8G/xg== X-Received: by 2002:a50:ab0d:0:b0:4aa:a39f:65af with SMTP id s13-20020a50ab0d000000b004aaa39f65afmr7275537edc.42.1675867388414; Wed, 08 Feb 2023 06:43:08 -0800 (PST) Received: from localhost (host-213-179-129-39.customer.m-online.net. [213.179.129.39]) by smtp.gmail.com with ESMTPSA id u20-20020a056402111400b0049e1f167956sm7929366edv.9.2023.02.08.06.43.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 06:43:07 -0800 (PST) Date: Wed, 8 Feb 2023 15:43:06 +0100 From: Jiri Pirko To: Andy Shevchenko Cc: Jakub Kicinski , Xin Long , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, dev@openvswitch.org, tipc-discussion@lists.sourceforge.net, "David S. Miller" , Eric Dumazet , Paolo Abeni , Pravin B Shelar , Jon Maloy , Ying Xue , Simon Horman Subject: Re: [PATCH net-next v3 1/3] string_helpers: Move string_is_valid() to the header Message-ID: References: <20230208133153.22528-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230208133153.22528-1-andriy.shevchenko@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Wed, Feb 08, 2023 at 02:31:51PM CET, andriy.shevchenko@linux.intel.com wrote: >Move string_is_valid() to the header for wider use. > >While at it, rename to string_is_terminated() to be >precise about its semantics. While at it, you could drop the ternary operator and return memchr() directly. With or without it: Reviewed-by: Jiri Pirko