Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2743017pxb; Thu, 10 Feb 2022 04:44:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAXT6RRQUbWmbRBKz9JC7uuM94AHzbgh7DQOgXl+xGfJ8ANWeRK/ZzzxFQS3wFNRzMiH6h X-Received: by 2002:a05:6402:4304:: with SMTP id m4mr8094033edc.67.1644497075033; Thu, 10 Feb 2022 04:44:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644497075; cv=none; d=google.com; s=arc-20160816; b=TWKqkSwQmrlx7zlxHy66GbV64o5M45exLW5gIctXKuluSoThcH3x2IwT/zE7y0/WOB VFNooTAGP5te9wCW+Fn091yVw/oMtJkNneDW852uXjGc7M0h9723rt5T0wjwZIRTkxbo F6pwT3791IEHO6PWoA4wp0PAyedYyuUdc0ESphKlL3Qz8dNmzPCJhj7jJuej5G++F4KJ x/4O4kzPkbHZKXChDdealPuAy1jOg+2d7RbRwagArZAtvxi7OmkGcK5IYnspokUC7Lvq MCAWo3MqK3PPDsjK2yqPBwpDfH/EW2hIxge/Z8zB+MK9Tu3iK8tZimR28LSQnr7aOxU6 w6xQ== 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=kwsvzUopQYmLEvfJMWiUtpLaBV1PgK/k5zUYKi0uPVU=; b=b/jd/HBlcac/MT6/DG8gUYpVMDZeLz5bhHyQ3Z0mXyNMyj9/Ec3W0TqayNoRtAbMqZ yza2W67a6HoPdxCOqqVHDupB5mCK5nhLlMUU1d79ZWnI4VCQdQlxICWFtEKHqz2zrDTh XLQPU1ZBt2v4mz4kVYl+seuhQBB+mm8uJl60yeKFJMsFAgJLiDJ+r+O8V7Pzi54KD587 nhhSYguDlSDRJvWBrJWp1ykRJcYMDQWpSNOGpMzJ65rUCNTjWf6NX6ngxgmzSnJVvq3a /G9kSOmAAndV+DQqHfJSdY09OI3PJAvULudLhH1WdXm/co5flsfcOgG6vR3Fs5/dZ25L l2WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=4pvndCL1; 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 13si13876888ejg.306.2022.02.10.04.44.10; Thu, 10 Feb 2022 04:44:35 -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=4pvndCL1; 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 S236029AbiBJH2y (ORCPT + 99 others); Thu, 10 Feb 2022 02:28:54 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:41868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235980AbiBJH2q (ORCPT ); Thu, 10 Feb 2022 02:28:46 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81B25275 for ; Wed, 9 Feb 2022 23:28:47 -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=kwsvzUopQYmLEvfJMWiUtpLaBV1PgK/k5zUYKi0uPVU=; b=4pvndCL1lsKtjRKUxsi/J7Dxvo nVmiNGk6UXupKHW1OLXR+4B82dW07jzHZuBVo0KXBKlc1qNmC8wL4iAMhe88kOdH+ywDPbwwF9isJ zbF7vyHcH7ZB+oAO5RJzYzy8W71AUbpN1yu6LoRPEFGk3WGoUPuwiizHeTv5+Dxm5s9U8hzEyCOt8 I8EI2xE1INgu5bUL41ku3jeeQ+CB/t+j7R8IMGT6MS1jG+SWAmjnYIKA+e1oWVu8ukLRztAFH6T7V 8EjsqXGdggi7lWnCIIbd6CMvnXjnA8fpTkgrBHYPiQATMsskbuYK1ZK5kbfbgLh9UO0N1uGxviSbZ SSBDKEhw==; 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 1nI3sa-002rlD-Of; Thu, 10 Feb 2022 07:28:37 +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 02/27] mm: remove the __KERNEL__ guard from Date: Thu, 10 Feb 2022 08:28:03 +0100 Message-Id: <20220210072828.2930359-3-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 __KERNEL__ ifdefs don't make sense outside of include/uapi/. 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 --- include/linux/mm.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index 213cc569b19223..7b46174989b086 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -3,9 +3,6 @@ #define _LINUX_MM_H #include - -#ifdef __KERNEL__ - #include #include #include @@ -3381,5 +3378,4 @@ madvise_set_anon_name(struct mm_struct *mm, unsigned long start, } #endif -#endif /* __KERNEL__ */ #endif /* _LINUX_MM_H */ -- 2.30.2