Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2629788pxb; Thu, 10 Feb 2022 01:49:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJy76PdRnseCNJryD/BU7jPMQrygh6pCnLD2SbXMG15AdImvbwm/uTECnLgSQtm2Ye5Rg4SO X-Received: by 2002:a05:6402:1757:: with SMTP id v23mr7495318edx.105.1644486570571; Thu, 10 Feb 2022 01:49:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644486570; cv=none; d=google.com; s=arc-20160816; b=i2LOrY6Nb9LsjoBctnCeON1rocdZ+eItgiySobetRMCO5Zs82sDw6ZauUWP754GvY8 XG6PTEaI9HNENEEDOxZdgf45Il/h9NCboICn/JGAQeqBfN8OM/Vd9EkRHt/DZ/xyDlMK cNj544NtlAm+T5RH2f1MftrcR63jJK2Q0JEViXpm313Llv1qed33MX9qDywIlsOTZqfz BXNF0pItf9vdU+XWHbGmDtRFvVDAg0XD0/fDXqFM66UPnkANIKHM+F+MA54+re5IhlJa B4TdfAvg8mqtRvMBcqAC5HPedtIEY/MApI1E6CCf7XqQPRmxa/JUQMVYr+R9W+rWf9d/ Qg3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=L7OGejZbRu+QgE+4KbqRy4msYJogVFzOR8WFdCl8/80=; b=GYPJ8o1kB2/0+SU06Bim7dH19l0n1UgcsU4Nu/dWboIqqjOO4ROLIKnSHQiycoE6h9 osbfW4jt+aw23S8c/nkpu82jQJU5EGaCWX+kxEopORmDiXL0OZ3cpjUDt0pcybRp+DYm mTlpsGCPIAGBXenb91jBp6i+Mgunvm1qLGZD98VBpxcdrI9gxUpG2q/aYDELKOpXdeHA ilDNgpQnTpn8iLUE00Gflwh+QEysSCyh3yQL3np9BeMp36ioIkevkLdYF8mZu+SZihqy H/5k/BBvOotcMrMqxxlaAUs63dghK5092iiZ8UVoDkPQ5vbdJA3740zEBz9+5OeYt26C eU8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=eKKKgKku; 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 o24si7623468ejh.678.2022.02.10.01.49.05; Thu, 10 Feb 2022 01:49:30 -0800 (PST) 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=bombadil.20210309 header.b=eKKKgKku; 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 S235995AbiBJH2s (ORCPT + 99 others); Thu, 10 Feb 2022 02:28:48 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:41820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235923AbiBJH2n (ORCPT ); Thu, 10 Feb 2022 02:28:43 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A8F2209 for ; Wed, 9 Feb 2022 23:28:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=L7OGejZbRu+QgE+4KbqRy4msYJogVFzOR8WFdCl8/80=; b=eKKKgKkuaE01+Nvoo8eKckwrla uHDvbQKsY1I+8rHUnmKTrANleI/peq39kFDeuY9tfC/pAUZX9+6Gh58/9sMa16SA31DFT/DHHENpA wB44giC+sRhFyvdNFVP150JQjHDq4ASoixuwQ+cJain6eH0Zdy5DudB1ke6SlJbIedExUtLO5vqmv qYigZr+KlRbUSfyG4YzU4u0fld+gt+XTEqror/Gjkqn5JzjKh6RYbq1mBq8PHl5lg0T0vZz0Cuoc/ b87JAs/e+UYwAe7PWl2Tn7sLUeRU+VtT8yM7wXK7xM+5cuAJK4WWiFz4DBXUjNTK06Z70+5fWunTx pmaHhCvw==; Received: from [2001:4bb8:188:3efc:8014:b2f2:fdfd:57ea] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nI3sY-002rl0-02; Thu, 10 Feb 2022 07:28:34 +0000 From: Christoph Hellwig To: Andrew Morton , Dan Williams Cc: Felix Kuehling , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , Ben Skeggs , Karol Herbst , Lyude Paul , Jason Gunthorpe , Alistair Popple , Logan Gunthorpe , Ralph Campbell , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, nvdimm@lists.linux.dev, linux-mm@kvack.org, Jason Gunthorpe , Chaitanya Kulkarni , Muchun Song Subject: [PATCH 01/27] mm: remove a pointless CONFIG_ZONE_DEVICE check in memremap_pages Date: Thu, 10 Feb 2022 08:28:02 +0100 Message-Id: <20220210072828.2930359-2-hch@lst.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220210072828.2930359-1-hch@lst.de> References: <20220210072828.2930359-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, 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 memremap.c is only built when CONFIG_ZONE_DEVICE is set, so remove the superflous extra check. Signed-off-by: Christoph Hellwig Reviewed-by: Logan Gunthorpe Reviewed-by: Jason Gunthorpe Reviewed-by: Chaitanya Kulkarni Reviewed-by: Muchun Song Reviewed-by: Dan Williams --- mm/memremap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/memremap.c b/mm/memremap.c index 6aa5f0c2d11fda..5f04a0709e436e 100644 --- a/mm/memremap.c +++ b/mm/memremap.c @@ -328,8 +328,7 @@ void *memremap_pages(struct dev_pagemap *pgmap, int nid) } break; case MEMORY_DEVICE_FS_DAX: - if (!IS_ENABLED(CONFIG_ZONE_DEVICE) || - IS_ENABLED(CONFIG_FS_DAX_LIMITED)) { + if (IS_ENABLED(CONFIG_FS_DAX_LIMITED)) { WARN(1, "File system DAX not supported\n"); return ERR_PTR(-EINVAL); } -- 2.30.2