Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4556032rwe; Tue, 30 Aug 2022 12:17:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR4E+146t05jYiax1rHka7GHu2vk9axyhFJK7nRQ3mQq1yhymxplh1h9QgYxmHraS/aro8Md X-Received: by 2002:aa7:d4d8:0:b0:447:a745:4b18 with SMTP id t24-20020aa7d4d8000000b00447a7454b18mr22509315edr.174.1661887023975; Tue, 30 Aug 2022 12:17:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661887023; cv=none; d=google.com; s=arc-20160816; b=fHjJjXTTEKsAG/v7T6O/G2zwCPXMT7EwuaBadpDUgkrEfzaqJxjQ2zwig8/Dgj3CV0 v55YzixW9z3hS6lWmTUJU/BLydA8MvXHZgNJxvObU0uxb215nAZqklOsxD/tmhivZXa8 IeEeQEeGWq1qPse51vyZfIRNs9HNjTQ32d26wKW2dXtY9DxawLo4ADMxBbD5kZvhtDtW G45VARXv9wkt/O/lztr5LqfdFAGK6tO85raB+aEjaojIMpZrg1yr9Fd5rAkk24YewGQi UjuxWVofSIa9lYTH33+VkSIyKaoPCwXVm0HmI6hIBkv5G8np6Im+tmS/KDOfc9JWJPVW o9lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WEmQN+6Nw20owgW81yaoQaqKOSVpiLyZb3sg8Y1rIiw=; b=UjXtV29iXMhR3b4viQO4jw9OdJXp58eh13MRBzvHizIsupZtHjYPGuYNKi///afZPL ZVYbkBI1oxj8BfmeaJ2Ugb5ugO78jA31aggLMoQg3FqCuud54onVjfjV5Yolp14rOLYO 3qkRBKtXcnPMfyXBhiJCRb9l16DxsFtC3x3QV2Ea+gmJlqCtB7ambhl7XJh66+h2GC1M VmA0raXU5ySX/7/TeChukaMDa0Gz7TUxLk/pxgOZ+YrIpL1xVMeXYuV+JfF0NcsqcRnw HNPPFy3U6IjOrMYITk632/SUyclqx9yrKhz7Kr49guwgeRcj0ZPFcT2ZZOwNaRG21HFh yToQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=oPO8HBOu; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eb7-20020a0564020d0700b00447bc383d6fsi10824299edb.180.2022.08.30.12.16.37; Tue, 30 Aug 2022 12:17: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=@infradead.org header.s=casper.20170209 header.b=oPO8HBOu; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231231AbiH3Sda (ORCPT + 99 others); Tue, 30 Aug 2022 14:33:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231246AbiH3Sd2 (ORCPT ); Tue, 30 Aug 2022 14:33:28 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A740F6C768; Tue, 30 Aug 2022 11:33:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=WEmQN+6Nw20owgW81yaoQaqKOSVpiLyZb3sg8Y1rIiw=; b=oPO8HBOuU4ELWQw0nJ93ViKWT0 yyEf9j8EVAGjU+Mgm+4W3xATroP2LLFq3ZKBZuyRF6optEsL1uplSH+28bKdhvJeYLA2rlqBMq/ia UHgOtVLzm96UdmYim94H1rxEVddp4xubb2i7gP7XLO2qhyY4KI+tBQzWTAoH0BON0glx7myauqHSX jTl/6HdQKyk/d+hJXlzDczGI4fVjsm2rq/8c4JM897q+so9IHHkDwm2YYRvB5aVQjLPrkrwte9Pd7 0mL9I+sXyk7T2oxLx1T92EC7F2OkVuWAzFoFkex93tsvPDYpOht8dqkfsLQhf/aaSTUxVda7QbFMN 0WSFEzww==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oT62p-004K31-S7; Tue, 30 Aug 2022 18:33:03 +0000 Date: Tue, 30 Aug 2022 19:33:03 +0100 From: Matthew Wilcox To: Cezary Rojewski Cc: alsa-devel@alsa-project.org, broonie@kernel.org, tiwai@suse.com, perex@perex.cz, amadeuszx.slawinski@linux.intel.com, pierre-louis.bossart@linux.intel.com, hdegoede@redhat.com, lgirdwood@gmail.com, kai.vehmanen@linux.intel.com, peter.ujfalusi@linux.intel.com, ranjani.sridharan@linux.intel.com, yung-chuan.liao@linux.intel.com, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, andy.shevchenko@gmail.com Subject: Re: [PATCH v2 1/2] libfs: Introduce tokenize_user_input() Message-ID: References: <20220825164833.3923454-1-cezary.rojewski@intel.com> <20220825164833.3923454-2-cezary.rojewski@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220825164833.3923454-2-cezary.rojewski@intel.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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, Aug 25, 2022 at 06:48:32PM +0200, Cezary Rojewski wrote: > Add new helper function to allow for splitting specified user string > into a sequence of integers. Internally it makes use of get_options() so > the returned sequence contains the integers extracted plus an additional > element that begins the sequence and specifies the integers count. > > Suggested-by: Andy Shevchenko > Signed-off-by: Cezary Rojewski > --- > fs/libfs.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ > include/linux/fs.h | 1 + This really has nothing to do with filesystems. Surely string_helpers.[ch] is the appropriate place for this code? Also get_options() should probably move its prototype from kernel.h to string_helpers.h.