From mboxrd@z Thu Jan 1 00:00:00 1970 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 D2245C4332F for ; Thu, 17 Nov 2022 05:56:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234503AbiKQF4J (ORCPT ); Thu, 17 Nov 2022 00:56:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234427AbiKQF4I (ORCPT ); Thu, 17 Nov 2022 00:56:08 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49C3B40906; Wed, 16 Nov 2022 21:56:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=oYkLvPPkUUlFvOfLMkG1YO/c1AMDYnkpSXIR9noBSbs=; b=JERQWmzsatc0AhN0FUeVFlzFcz 5HN1sqTqGGj4/xDhC5WhgUofXX6ig9XC0b4tSyf5nVAYnoVHJA5zv3PobTRCPZAhOu0nYCN9cx7HQ fQsQGE9H/i5u3W/xw1oGIswcjSZU8lkmUxDbDJTLl8SKLnWUFEm5EX4yEmugDxU7p575t5fn2BN7k EcnV4UAD/OcxX0yFlDD19cba8mIQ/aMNs0WCByh571SXO7Yhp4xYK19wtmT7Mdps+AB6yyB46Up5Z ZJxbCI7bMezwxbYrN8zVQ6MBpXqo/lfwO4j4ANaw0907YtajLI4nfKv8qBYvuEZ+JyXkAV5qGiKxy BqXKL+SQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovXsR-00AZrQ-Nu; Thu, 17 Nov 2022 05:55:55 +0000 Date: Wed, 16 Nov 2022 21:55:55 -0800 From: Christoph Hellwig To: Daniel Golle Cc: Christoph Hellwig , Jens Axboe , "Martin K. Petersen" , Chaitanya Kulkarni , Wolfram Sang , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 1/4] init: move block device helpers from init/do_mounts.c Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Thu, Nov 17, 2022 at 12:42:43AM +0000, Daniel Golle wrote: > In init/do_mounts.c there are helper functions devt_from_partuuid, > devt_from_partlabel and devt_from_devname. In order to make these > functions available to other users, move them to block/bdev.c. Yes, they should be moved and I have an old patch to do this a bit smarter. But that doesn't mean anyone else should call them.