Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2561565pxb; Tue, 13 Apr 2021 05:08:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdKrue/6KkdWcp2AR1e4JmM7vZxk3KPwhJbXYp/CcmghjFnPuYi2U3N3QOj6gFF5uRdTr+ X-Received: by 2002:aa7:cb89:: with SMTP id r9mr34946202edt.245.1618315697151; Tue, 13 Apr 2021 05:08:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618315697; cv=none; d=google.com; s=arc-20160816; b=Hc0npXBcZPcW2BVa+g3sL84a8Ni9EbzSCBywdFhHJTMThaZ44LscHDOOnV0IXq+fDc eZoNTx4x37p4xOmxuQ3O0vs7902R/L7kVt9Tez17i1bUqQQUeL3MepYtFEIL346mDnhv r1kMxMW/TVfHh5dIjI37z27jW+IxpTRemRLjGokvFJBKNasJ5aGYA7/Yw0A4IweFG7a7 OJ6l8zR2KrIbaBs7X7gpDxqD3GI1igqVGpL+Y1/uOFXK1QuBgYTZwa6BfCJDnz9x5yfC eDYHJY66P4/xcbDMySSSRQaZLFVqe8tVxSlmT1pUXUrCwCiGATp+10oWH7AU8JElq3A3 BtfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wOlYJ8gOWVcLmeEYE6eSkfjpllqClsrslpwu4Ap6W2U=; b=e/2a8S2X7XWi8OrPsJbMgrqPYtMn5KKMSYEhT0z6UQcJrCcF3p5+WVTPC+2u8HwdKT W+YO+PpwQOqr6KwWaj5GXCe1fp3acrFT6lvz6pqRxVjlS0uRYvVt2Hl47LgBzhWrC5xH MV3JpoIelTAs1IYr4/M98TKrur04myJ9Hz8nPsCgEgWXJyuuvX/s1xaGvrZu83DV/o+1 Pjgnb9MJYJHKtp/pNEm3eWmoKl+/KjoAI9fk7drKJgNpbI15vA9jNJtLH5wWp3H8ePDK /XLdYnVnGabIgZCrHwa/djMW0PhqPCTTxusIUUhLgFTMGbYk811SPcLQTOaf6yzUPR5t LnRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bHom31eb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b20si9023498eja.632.2021.04.13.05.07.53; Tue, 13 Apr 2021 05:08:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bHom31eb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237377AbhDLXre (ORCPT + 99 others); Mon, 12 Apr 2021 19:47:34 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:42225 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237250AbhDLXrd (ORCPT ); Mon, 12 Apr 2021 19:47:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618271234; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wOlYJ8gOWVcLmeEYE6eSkfjpllqClsrslpwu4Ap6W2U=; b=bHom31ebEqfmqM5zkPx1MAN8leARD+8pWSJRi1Ng2tS24P1m6Q5p/Cg10pSkL8tqZ/vEVO b2075k4i5mNkocrM7oYKGk4AO9BePa8meqlOxTitERCWZQMqxUPuTNg8Hsq0Bo97QrbiiJ neZaqQEmj1GqDLCRqi9aVuiouqBEfiM= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-404-UIKrXYAzO9WcL1cnoMAtew-1; Mon, 12 Apr 2021 19:47:12 -0400 X-MC-Unique: UIKrXYAzO9WcL1cnoMAtew-1 Received: by mail-qv1-f70.google.com with SMTP id e10so8978249qvr.17 for ; Mon, 12 Apr 2021 16:47:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=wOlYJ8gOWVcLmeEYE6eSkfjpllqClsrslpwu4Ap6W2U=; b=hoTKPq1MedrQS5qHryjiFLBJptNRvEtrC4PXpLl8bx291CUiY6s6Ha5kwV+QuvDLaP wy8SE7KmRhBI/4Ckux09PmpKJCepMDP/NSTIn+A1sD1ZAYREjKrDzicwpRTZ4YA+1GDG LkTRi/UsI/C3NEk9knQL1Z0cgqSKNKQH7Jkx7P2AkFj3wxfEpm+FzVYROfzJMLY2qnO2 CTm9LPLIKRwF/yjBEdvYBmrEK7sjiAceznMuwc3X/8TUqL+qWq7GX7Askv28//WM8AqS tyAHyRUekmgh8FPLYI5/+DnQeblLHPB/RrHjD9EEhE44hCFthtmUcUkrewgu2jppCIeN 8Kmw== X-Gm-Message-State: AOAM530792cCFjgiGS/98KRPZVbI64s6rU3jvBILECP0B+i6udjIA9VD AS4C1LJFdb7qrO+aByKdpRR6LZHOEJMbinXG0oIPGtCkyJU8GNer9GpF9cWvhMkNtc0pJQJmFpO UIzgt92VE10OCg2MVljOXILPx X-Received: by 2002:ac8:7eeb:: with SMTP id r11mr27318618qtc.386.1618271232161; Mon, 12 Apr 2021 16:47:12 -0700 (PDT) X-Received: by 2002:ac8:7eeb:: with SMTP id r11mr27318609qtc.386.1618271231937; Mon, 12 Apr 2021 16:47:11 -0700 (PDT) Received: from xz-x1 (bras-base-toroon474qw-grc-88-174-93-75-154.dsl.bell.ca. [174.93.75.154]) by smtp.gmail.com with ESMTPSA id b83sm3341647qkc.97.2021.04.12.16.47.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Apr 2021 16:47:11 -0700 (PDT) Date: Mon, 12 Apr 2021 19:47:07 -0400 From: Peter Xu To: Axel Rasmussen Cc: Alexander Viro , Andrea Arcangeli , Andrew Morton , Daniel Colascione , Hugh Dickins , Jerome Glisse , Joe Perches , Lokesh Gidra , Mike Kravetz , Mike Rapoport , Shaohua Li , Shuah Khan , Stephen Rothwell , Wang Qing , linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, Brian Geffon , "Dr . David Alan Gilbert" , Mina Almasry , Oliver Upton Subject: Re: [PATCH 1/9] userfaultfd/hugetlbfs: avoid including userfaultfd_k.h in hugetlb.h Message-ID: <20210412234707.GB1002612@xz-x1> References: <20210408234327.624367-1-axelrasmussen@google.com> <20210408234327.624367-2-axelrasmussen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210408234327.624367-2-axelrasmussen@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 08, 2021 at 04:43:19PM -0700, Axel Rasmussen wrote: > Minimizing header file inclusion is desirable. In this case, we can do > so just by forward declaring the enumeration our signature relies upon. > > Signed-off-by: Axel Rasmussen > --- > include/linux/hugetlb.h | 5 ++++- > mm/hugetlb.c | 1 + > 2 files changed, 5 insertions(+), 1 deletion(-) > > diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h > index 1d3246b31a41..dfb749eaf348 100644 > --- a/include/linux/hugetlb.h > +++ b/include/linux/hugetlb.h > @@ -11,7 +11,6 @@ > #include > #include > #include > -#include > > struct ctl_table; > struct user_struct; > @@ -136,6 +135,8 @@ unsigned long hugetlb_total_pages(void); > vm_fault_t hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma, > unsigned long address, unsigned int flags); > #ifdef CONFIG_USERFAULTFD > +enum mcopy_atomic_mode; (I'm not 100% sure, but.. maybe this can be moved even out of ifdef? Then you can define it once at the top rather than twice?) Reviewed-by: Peter Xu -- Peter Xu