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 X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB28AC2D0E4 for ; Tue, 24 Nov 2020 17:38:59 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 50890206C0 for ; Tue, 24 Nov 2020 17:38:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="qMRMh73o" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 50890206C0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id D2C626B0073; Tue, 24 Nov 2020 12:38:58 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D05A06B0075; Tue, 24 Nov 2020 12:38:58 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BF2976B0078; Tue, 24 Nov 2020 12:38:58 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0090.hostedemail.com [216.40.44.90]) by kanga.kvack.org (Postfix) with ESMTP id A67076B0073 for ; Tue, 24 Nov 2020 12:38:58 -0500 (EST) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 69D8B82499A8 for ; Tue, 24 Nov 2020 17:38:58 +0000 (UTC) X-FDA: 77520022356.16.rod91_220f8f92736f Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin16.hostedemail.com (Postfix) with ESMTP id 43955100E690B for ; Tue, 24 Nov 2020 17:38:58 +0000 (UTC) X-HE-Tag: rod91_220f8f92736f X-Filterd-Recvd-Size: 3984 Received: from mail-qv1-f66.google.com (mail-qv1-f66.google.com [209.85.219.66]) by imf18.hostedemail.com (Postfix) with ESMTP for ; Tue, 24 Nov 2020 17:38:57 +0000 (UTC) Received: by mail-qv1-f66.google.com with SMTP id u23so11012386qvf.1 for ; Tue, 24 Nov 2020 09:38:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Km12pVmBeWPgkRcOQAU5l84XavjRPJ4jqz28aKaNPFE=; b=qMRMh73o0YdpLAudiX8NPmCDY1bWM9OqQpg0RgHiyT+mlhnf0MZE5Czy8Qf5TqqFXj rj0mrD0ci08BBaP1QvOdQSlNYqt4OJVZLsc2rhNHZGmlnQEUH2P7sLZGRMA7ZcG7MS17 yG8VIyxJ1lw+SyIO+IffHqOfCRSVn1pBmEJnkOVku1COq8LlNZb39TrX/RGHB52cYbib i+ykMchrdGixNcqG6wF1woJvO40gLVLsETP5ex6q4w5pbpO9xSAgvvJXfB6Yw0WWCqLF nDEPDCAPTAHfrqXDPn19OFx798DWMB961lVkvHrRd6Il2RPmsuogUvJSPGip8MEuWX9g QyWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=Km12pVmBeWPgkRcOQAU5l84XavjRPJ4jqz28aKaNPFE=; b=Y7kFTZyB8pG7LML2p4F6yk3zddTolkAa1bPLdgp+0i/Fzv0vvvsozA697p/DOzbLmc WRziPHzCLUo0LHd33qr5ygUoSJToHMY26LbcquEhViPFJTr62VlBDKAXj7zR1jYerKsS xvH1ZvMMbtVfSxjbdVPim1tj4At+zHUMhAf1qaNOVBUSBoHVgPkj5TFA/kFdnr/Wzob/ EiYbK9b5+ACGeHm6j6H9kATdTzIiU4KAlG5UCACYgMU073J6sSNVNQxQOCFVuZ4EZXoK X9Mmm1TNMSDckN5lVafx/9QtyIJ1ncgtj7Tcn1KIVFoBvIsMtwAcRiiNU92abD7NdA7W Ob+A== X-Gm-Message-State: AOAM530KHhWJp+V76KWXtmr8I7Vul8C/FP7vrect88+giHuLCzC83bgd svtD2rtSamOQAjYixZjTS0Y= X-Google-Smtp-Source: ABdhPJx2viG2YUIcT9pxnUmh9SMKJ+iaGPuLa9sp1d1smXeKSZjMmg4Jo+Hs7YyRPHzhOtS6yXj/uA== X-Received: by 2002:a0c:f7cc:: with SMTP id f12mr5949753qvo.0.1606239537123; Tue, 24 Nov 2020 09:38:57 -0800 (PST) Received: from localhost (dhcp-6c-ae-f6-dc-d8-61.cpe.echoes.net. [72.28.8.195]) by smtp.gmail.com with ESMTPSA id b3sm13138042qte.85.2020.11.24.09.38.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2020 09:38:56 -0800 (PST) Date: Tue, 24 Nov 2020 12:38:34 -0500 From: Tejun Heo To: Christoph Hellwig Cc: Jens Axboe , Josef Bacik , Konrad Rzeszutek Wilk , Coly Li , Mike Snitzer , Greg Kroah-Hartman , Jan Kara , Johannes Thumshirn , dm-devel@redhat.com, Richard Weinberger , Jan Kara , linux-block@vger.kernel.org, xen-devel@lists.xenproject.org, linux-bcache@vger.kernel.org, linux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 17/45] init: refactor name_to_dev_t Message-ID: References: <20201124132751.3747337-1-hch@lst.de> <20201124132751.3747337-18-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201124132751.3747337-18-hch@lst.de> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Nov 24, 2020 at 02:27:23PM +0100, Christoph Hellwig wrote: > Split each case into a self-contained helper, and move the block > dependent code entirely under the pre-existing #ifdef CONFIG_BLOCK. > This allows to remove the blk_lookup_devt stub in genhd.h. > > Signed-off-by: Christoph Hellwig > Reviewed-by: Greg Kroah-Hartman > Reviewed-by: Jan Kara > Reviewed-by: Johannes Thumshirn Acked-by: Tejun Heo -- tejun