Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp923444pxb; Tue, 8 Feb 2022 05:40:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJxzVEJZuj/stOSVnRk4jwfN1V4ZY3uAIzCNDeCijVHcN9pK+iJPVA/Y4QNhV4LZHC/m7eV9 X-Received: by 2002:a63:9044:: with SMTP id a65mr3562699pge.594.1644327618521; Tue, 08 Feb 2022 05:40:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644327618; cv=none; d=google.com; s=arc-20160816; b=pAMPnGH4suZlnojB2o/42F8ICnoRrM5bFCA1BAdIr6ZW7PybK+J1DfadrIxZUV0YQP C9Fwc6jxsRtltZMIldTHC7E67WcKWo02m9O6oRKU6AqPAtNjYFbtEKSrShaghB5N6pgi zXvtyIUL+QqmXGr/uG/2Dt0niFLek18yXrz9wxvrT1WrS0iLzt6mN3dZx3f65M6J4b9g 4IYEjpp85W/FoLAvJpzSrYtdTkxK69j0EY8awWDBZRTZ3tQAFNNsaInOhHMVNfHb8WFt JPBAYNBlJSz1WmY6TEY0p6gUWK5JgxZjBC6FyXBGMsQGujjVIQVUdIQ2/3482lSJOSjj 2VDw== 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=WofxUCZiATU1kpjAffXWYlHs1O9R63dP0KIEP8T6lOA=; b=If4NXL+rtiUDz5e6T/NxSS5hYZi0+/DOECpq9F8Eo2qHVb5txHlFD4OSTgalO6gOqf VKLRQcQ+euvf15B9ORlXHr0SV/xNAcOBGEOv5mA/18+LSwuXTDkE8lMUozJ5JoEXe5ox IJGx+n+pSM90bZvV5KFaJZdaMU6Oqvine1cQUfP9QR2fTZLlgozW8bU+RN70hWnnivP/ e/pbzlQGNJOqiwWVlg2yjmdSDIaLkIVB675SJTiclh4XJMvW72AWUwHKypu/io4JCAe5 yMs+8oMNUQTOc4gyhPRCyfB0FWsNsvhDyBrn/7DF/46eWWiALy2jOgM5hoQZJ102hebF aIhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=XJHVb3iW; 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 h16si12984916pfv.189.2022.02.08.05.40.05; Tue, 08 Feb 2022 05:40:18 -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=XJHVb3iW; 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 S242895AbiBGGgG (ORCPT + 99 others); Mon, 7 Feb 2022 01:36:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232278AbiBGGdH (ORCPT ); Mon, 7 Feb 2022 01:33:07 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7182AC043184 for ; Sun, 6 Feb 2022 22:33:06 -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=WofxUCZiATU1kpjAffXWYlHs1O9R63dP0KIEP8T6lOA=; b=XJHVb3iW+vRrzF9+OySIruHUHn Sa6JPCczwpkeGE/buqDc+PYoIxMi8hFrFYyLseWB5aeyxAWFEuDdds4wgKz8ZRPCvCdr33rP9O0HF v/pVQbdEr6bY5vfFVJrYIljpa4P0n6HzT5Jui1ak7lXKG5STjVikrsaXojUen8cqn8eYWCWs17mpr iW8tBBjck+jMijGUGKCf/NKpYzo0UDqScPKpzOg/jRnU8FoVS5rJH0cx8lmOJ+IaEsF5tNnX6TI55 Pm5wt1la8xBFuylMyrlyQRL5aDyAZSR1a7njqGPtVv9wYqYTiF2n9Vei2jCPBt1Np6YFvt/aQ66Y+ bA8/QOuA==; Received: from [2001:4bb8:188:3efc:2cbe:55d7:bb63:46d2] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nGxa1-0099Gj-VV; Mon, 07 Feb 2022 06:32:54 +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 Subject: [PATCH 1/8] mm: remove a pointless CONFIG_ZONE_DEVICE check in memremap_pages Date: Mon, 7 Feb 2022 07:32:42 +0100 Message-Id: <20220207063249.1833066-2-hch@lst.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220207063249.1833066-1-hch@lst.de> References: <20220207063249.1833066-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 --- 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