Received: by 10.192.165.156 with SMTP id m28csp1974137imm; Sat, 14 Apr 2018 10:33:50 -0700 (PDT) X-Google-Smtp-Source: AIpwx49hyHt2KqNVpEOOm5X/JfQW41CGRTLGzLWbfWn0GWt59lwFtkgryUzaqkiw9Pi4+JXEBJGZ X-Received: by 10.99.171.11 with SMTP id p11mr7615238pgf.176.1523727230367; Sat, 14 Apr 2018 10:33:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523727230; cv=none; d=google.com; s=arc-20160816; b=GuUmXWSs2nbYxLcVnAl/W+lNYS574SC1oUXn2s3gduAHBTU4ZUea8cnEyPavdkCXu6 Gl/plcmTtqWH55gCYgFwjMdxF+wJuqxT4I1sTb+pUsxTMaDj1vmddsXJHu8q2xuVFlXH yUuG6Y5X/eG/Q3jlVW+3/w/zYyDG3x3Y5pHzzdtCTeb06H+jyJxT+Sh8zvjTVPPoyJGU 7pGOy6gR+JC+Yl3VRHY/RWeVPSMxWlfWWiv51DoANGKNOShGlBnjm6E1xoQ1CzZkMI7b gTF/3qZVHGroCYXi2vnwQc2EpgGactUfKLAqHC2l//yOL8FDyNHPNkNOFJQYlYn37JAt RYtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:subject:cc:to:from:date:arc-authentication-results; bh=37q9bcs5eOz6VD6CSo75pHj0Zas4IRhPBftRfNXZOdo=; b=JzldxYS7C5afUXCvSyWb8mIvceljfI2QPHjWqDW1+7uTFyjB2G8/ZTcNbE1s4AuQTk l5Q5/aEYW4RyP7G7mfLUgCntuZHtYYR23yIwwy57NrAnk2DrVqSoXoimxjzjdMyq0TTD lyxMI4fh09T/3hOEllI/adrUTztcXfHM3encOAkatw4GPm+OcLeeG1QjDNNY6W9gEOeo YBTnP6Syjzvcgpaz/TPL3kGXJPSO4qjS0E4ODT+FQZ5vIuYyl2ghLuKPrBxWwKyypSdS F0bMUIibwZoy7nirX7x//iHuAnE2S5gnIon/2Rqhe0hvJvKnTb3MHo8HFphpkumARAEC ZXjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m65si7298119pfb.130.2018.04.14.10.32.30; Sat, 14 Apr 2018 10:33:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751257AbeDNR2h (ORCPT + 99 others); Sat, 14 Apr 2018 13:28:37 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:51076 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751138AbeDNR2g (ORCPT ); Sat, 14 Apr 2018 13:28:36 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3EHNq3i042629 for ; Sat, 14 Apr 2018 13:28:35 -0400 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0b-001b2d01.pphosted.com with ESMTP id 2hbak7b4vp-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Sat, 14 Apr 2018 13:28:35 -0400 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sat, 14 Apr 2018 18:28:33 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Sat, 14 Apr 2018 18:28:30 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3EHSUPi57540688; Sat, 14 Apr 2018 17:28:30 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9A72F11C04C; Sat, 14 Apr 2018 18:20:30 +0100 (BST) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AE3B611C04A; Sat, 14 Apr 2018 18:20:29 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.206.21]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Sat, 14 Apr 2018 18:20:29 +0100 (BST) Date: Sat, 14 Apr 2018 20:28:27 +0300 From: Mike Rapoport To: Peng Hao Cc: shuah@kernel.org, aarcange@redhat.com, akpm@linux-foundation.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] selftests:vm: add include file References: <1523732936-42546-1-git-send-email-peng.hao2@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1523732936-42546-1-git-send-email-peng.hao2@zte.com.cn> User-Agent: Mutt/1.5.24 (2015-08-30) X-TM-AS-GCONF: 00 x-cbid: 18041417-0008-0000-0000-000004EA8F5C X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18041417-0009-0000-0000-00001E7EA08E Message-Id: <20180414172826.GA3211@rapoport-lnx> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-14_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804140168 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 15, 2018 at 03:08:56AM +0800, Peng Hao wrote: > userfaultfd.c: In function ‘hugetlb_release_pages’: > userfaultfd.c:145:25: error: ‘FALLOC_FL_PUNCH_HOLE’ undeclared > (first use in this function) > > Signed-off-by: Peng Hao > --- > tools/testing/selftests/vm/userfaultfd.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/testing/selftests/vm/userfaultfd.c b/tools/testing/selftests/vm/userfaultfd.c > index de2f9ec..d8fe447 100644 > --- a/tools/testing/selftests/vm/userfaultfd.c > +++ b/tools/testing/selftests/vm/userfaultfd.c > @@ -68,6 +68,7 @@ > #include > #include > #include > +#include The FALLOC_FL_PUNCH_HOLE definition should come from #include . What are the versions of your kernel and the libc-development package? > #ifdef __NR_userfaultfd > > -- > 1.8.3.1 > -- Sincerely yours, Mike.