Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp363877imw; Fri, 8 Jul 2022 04:32:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tcDTvZ81xLEvgBwdEGF5ixXesNjz0uKxJ9+RrwWtfHc6sesFXmWi3RD5X250zI3SK3yPxh X-Received: by 2002:a17:907:b06:b0:72a:faf3:3e05 with SMTP id h6-20020a1709070b0600b0072afaf33e05mr3089740ejl.124.1657279923643; Fri, 08 Jul 2022 04:32:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657279923; cv=none; d=google.com; s=arc-20160816; b=juzvtOdYt0zJyCABw7plkPEokypAXQDSdC1We0TiiMtKMBntna6qM5/Vm024wR5+hV qELYJ8ymZ7hKsSBUFHsTeFdi97TI0D1lmf+KXpeVDDoHNrzQ2hz+PrwXR6Ua+9z8QRiu DCJ7Om50FNyfC4Quo0zvSHvKFAfsRR4BEAuBjFiy6fkqVy7zrSNHSK9qcTUdnZ/bRJTy I01zB264KPWWxJWUlgCsUzOE1PM1Wx5Op3Rum8zSWaVET2LTWTz6oV2gocDQ1u4lSmOk a7Zvz7s5BH2+4PeC0TH1RlukD3tno9jtjPZDBt3CfEtbmheW0nl5Vif3fFbfSkxCS4f+ Th5A== 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=Znf5kwic3swsEPm/VX1nhdtTQ2a4clPVk80deBD+g1Y=; b=qWA2b9Qq57rtohNz39vDQchHDzy0QnHWsP4sYop3ueXfTirpduMGW/jNbHMONP0DKD yPLTyYW+3jav16vRmA++IHBE3I4X/QrNYuX4KU1frnHvEmeoBTy/QnqVOiIMNdlBvQm4 B+lmlPaFVIuhjxBJ/sxr/U55HBqVX8cC5CwSaVQUigcvaopmyobaHRlvznOC7RhIcSI1 hDNt4qqJS0Skhtz2IBUhkXVIoS2415JJ1YtFh/9MxG+ysH0itpr/t9HfSI/9oo4uXb6G iS5ujEoilNVTn3VUrgdRCsT3Kmr9J8HJKD/sLktbSKbpbKuP79ReKOpRMc0MsQDBC77e yIlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aIrhRPwm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fb19-20020a1709073a1300b007101a8a5b89si5147641ejc.943.2022.07.08.04.31.32; Fri, 08 Jul 2022 04:32:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aIrhRPwm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S237952AbiGHLaB (ORCPT + 99 others); Fri, 8 Jul 2022 07:30:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237958AbiGHLaA (ORCPT ); Fri, 8 Jul 2022 07:30:00 -0400 Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 986CCBCA8 for ; Fri, 8 Jul 2022 04:29:58 -0700 (PDT) Received: by mail-yb1-xb2a.google.com with SMTP id h132so6588056ybb.4 for ; Fri, 08 Jul 2022 04:29:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Znf5kwic3swsEPm/VX1nhdtTQ2a4clPVk80deBD+g1Y=; b=aIrhRPwmtS7jdp+GoA5OzkTK3M2lsGW6uVDvlhCzP8iYXs1ude3Id9tbr5pcjY977+ jpRPa2RfavV4pWJCowLsDzp8HoW5uEgN8R7Mf+fxOi7RnfNaNZvl/CvdsUG0sEub924t YXyVKXunoXH1Xxb0qisdSklipYjZcmf9eIbezhgr07vJ7kH+n8QuJz8fMptrcgAiYnro g6Fr7rKNuh7cK685D9oy+BSU4PtxTMLYNtavOrAS5OuPNRkolH99tC+sII8fTyAhB/UY Uhn8bMuF3e8dpWNr9an9pOTm8DPW81x56aOBQ3FVLyK8SClPN4sKno90TFuwf1P2L31Y 4FYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Znf5kwic3swsEPm/VX1nhdtTQ2a4clPVk80deBD+g1Y=; b=LS4bjH/6ZIWrhyUNDYmmLGVDdaBNZMsV3omQGhN7HCk/RvfJVPVyywRTzNdbPPuBNP eArPvsZ6RulbAb6paxtA60+FooWDu9/ML6DEkuvG5d4LzTJayTp6cfDwLxjZ3hpPirQp c4SHrGin5euOD0ChH7MMGX95bB5FEIeTfxMlMDjf+azmR2RpkMrbxO/Yxsmu59a9CWWI dciJrIcwRUln3HEktJFtIr3lDb83/O+bjmWPwmVpv1eyZtRVD7pip7rVE6WMaQVQwKZJ mh18h6gwU1F1zjpJxoCStiYtCd86QQqIq6aDMKNTVrzvaPxiwszCAR2ig6u+1Ip3c3+e JBXQ== X-Gm-Message-State: AJIora9b3LGpTPXh7C7/+9uZ5AkBAyCVKU92nq0cSUJjHuq7ScibB78A UzAT1Tfw0V0kLXMqo+TeSPyfPuOkgNHtUTWv/J73a4uN+Qk= X-Received: by 2002:a05:6902:c4:b0:64b:4677:331b with SMTP id i4-20020a05690200c400b0064b4677331bmr2961375ybs.93.1657279797818; Fri, 08 Jul 2022 04:29:57 -0700 (PDT) MIME-Version: 1.0 References: <20220707091301.1282291-1-cezary.rojewski@intel.com> In-Reply-To: From: Andy Shevchenko Date: Fri, 8 Jul 2022 13:29:21 +0200 Message-ID: Subject: Re: [PATCH 1/2] lib/string_helpers: Introduce strsplit_u32() To: Cezary Rojewski Cc: Andy Shevchenko , Mark Brown , ALSA Development Mailing List , Takashi Iwai , Jaroslav Kysela , amadeuszx.slawinski@linux.intel.com, Pierre-Louis Bossart , Hans de Goede , =?UTF-8?Q?P=C3=A9ter_Ujfalusi?= , Ranjani Sridharan , Linux Kernel Mailing List , Liam Girdwood , Kai Vehmanen , Bard Liao Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 8, 2022 at 12:22 PM Andy Shevchenko wrote: > > On Thu, Jul 7, 2022 at 11:03 AM Cezary Rojewski > wrote: > > > > Add strsplit_u32() and its __user variant to allow for splitting > > specified string into array of u32 tokens. > > And I believe we have more of this done in old code. > Since all callers use ',' as a delimiter, have you considered using > get_options()? > > > Originally this functionality was added for the SOF sound driver. As > > more users are on the horizon, relocate it so it becomes a common good. > > Maybe it can be fixed just there. Forgot to add that we (trying to) don't accept new code in the lib w.o. test cases. get_options() is somehow covered. If you have different test cases in mind, do not hesitate to add! -- With Best Regards, Andy Shevchenko