Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp321741imw; Fri, 8 Jul 2022 03:44:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vm6zyMhHck9z7TSGKIxjgwn7aJ+fgOa5ToxBaaplM12WuBaFfmx2RxL7sCDkxDu9a/cSoU X-Received: by 2002:a17:907:8a10:b0:726:afd8:f7af with SMTP id sc16-20020a1709078a1000b00726afd8f7afmr2967675ejc.298.1657277049507; Fri, 08 Jul 2022 03:44:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657277049; cv=none; d=google.com; s=arc-20160816; b=cryjz8OF3aiv5420bTDo9z19Ycv/s/C+ATTf3cOQeOZCqOHCExH6iThSRvAGWiRoB5 VS744OdJ0/mcdGxjntk7frnCet6MJWilG+slcKlJWwCI31o0/ctMqwVNthOpNdwTlErN zcgf9cjaiZUUG8MNZIH5/ppKU0XbaKOS8HHSWeWE/bpVEjGj4FzwVkX289jcWG6VrykI 6q7pGQiw1AKfiq6UsRNgC0HglKdMxrudd5v2ldkCT4LmoVOXrPQQLhadnD95vPHTNTrl +zeptRPwZulqjXXks0q2XvTkqnPzDsRDFxOTPKM+xGC3Bg7EXb6v9q++JOlBFIsCuXHr Fy7g== 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=XZ4IbpkhTt7N5QdvdcRfv0LETZPalI9AnqCWUmPEgog=; b=WpXZ8LTxe275v+o4hFd5cT7UHyWptuP6CR6byFnOc+vI6o+E/zq5Cc52DiKrOXNHZm b9dKv3uHmh0F4jz+R08X/iFB3TmEsTFeDQ+ldrIRH2z1B0donFP5KzTplLLLBNb31cLM gBaGz8mkg7zblf4+su47tMB8nKos3OPIyHMRoy3HGHs/Or2K2kuNxi2Ihm2dLuXzrURl rQtL2OhjjiZMVUIK6a5oY8KSFQLaQylv41LJX9+L+ZGHqSFjZKzPLtJO8AtWsLV0Ff8M 5he2A+FFDEuY+ps1UEl1UUP0IBkg+dVM56qNHAnibSKDYoInpNm0BYMcMK4KoyjI/9ig 6D1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=X3O0NXyh; 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 w26-20020a1709064a1a00b0072b1224ebf2si4627917eju.285.2022.07.08.03.43.39; Fri, 08 Jul 2022 03:44:09 -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=X3O0NXyh; 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 S237638AbiGHKWp (ORCPT + 99 others); Fri, 8 Jul 2022 06:22:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237345AbiGHKWo (ORCPT ); Fri, 8 Jul 2022 06:22:44 -0400 Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39FDC1C917 for ; Fri, 8 Jul 2022 03:22:43 -0700 (PDT) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-2ef5380669cso194039497b3.9 for ; Fri, 08 Jul 2022 03:22:43 -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=XZ4IbpkhTt7N5QdvdcRfv0LETZPalI9AnqCWUmPEgog=; b=X3O0NXyho2Ze70IR2+FhfW0cRMjUsjsmkHjyiiNZ2Ph1zTaLUx4Nz1WJ20nk9BBS8E Rr3plbtojjCdfENUItK5Ik0H64DQqJzGPLyJTWWnAWObahAwp+bpglbZBepGzeouMp0c cFPcoohMwZCTsbQn/gyLHeFmNaRqnxANrSF28HFe56kgUwVPGOj3A0mgeRB9TQv4ErKT zttGd0xDSPSXPTYLAA2rk/ZspSRi96vEp5Wl+VG/gjNep7XzG6pywaoUIFTH4rHLprAb bI7BExV8B83ZaROMgzzPQFAumDbnSrx90e5VP4Dkc1D89VpEZuPEI3ME5ANp0Haia8jG RY/w== 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=XZ4IbpkhTt7N5QdvdcRfv0LETZPalI9AnqCWUmPEgog=; b=2/GUDGuKzZyyZHpZBKxLjDwLNqYG6qOLOtomOYmm92ZJpUHrhUkzaGeUSTosgAhA6C ZX9iyfIsFmNDrRsOwDq0MGL/NCaltmQKGrVrlPDnqo5G+bGKFHLGyw26T7EpQYLEJCwk HYisx4W4Mnc6HqARTAOzJECosJ5zB4VVzEUEAz1sIUmW8pV0ihUBCLAcu50ODddj9fGI KFM0mPD2R9xGbFvaG/uH8ymCU0uYwMHPdHb1dEn+L1RiLEWrlErJRW3TGi2I1W8QYc+1 M6uGr5bsdzgxuWFq97Ma2Scy6NmHYt/ewWb2oZOI7pGwuJS+ktdS/8P4DUzEPUg9jXR8 AQBQ== X-Gm-Message-State: AJIora/ZNPztWUF44FxhdUiQa7dgw71NcO3jQ97gQhivwnEsllNjNXgD 2pYG2o3gntMQz848J52UzAFhK4MLRPhHn8vopU8= X-Received: by 2002:a81:72c4:0:b0:31c:b309:c4e8 with SMTP id n187-20020a8172c4000000b0031cb309c4e8mr3133190ywc.520.1657275762117; Fri, 08 Jul 2022 03:22:42 -0700 (PDT) MIME-Version: 1.0 References: <20220707091301.1282291-1-cezary.rojewski@intel.com> In-Reply-To: <20220707091301.1282291-1-cezary.rojewski@intel.com> From: Andy Shevchenko Date: Fri, 8 Jul 2022 12:22:05 +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 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. -- With Best Regards, Andy Shevchenko