From patchwork Fri Aug 14 13:43:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bamvor Zhang Jian X-Patchwork-Id: 52444 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id F131E2031F for ; Fri, 14 Aug 2015 13:48:34 +0000 (UTC) Received: by lbbpd10 with SMTP id pd10sf3414748lbb.3 for ; Fri, 14 Aug 2015 06:48:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=GrBy+xH9UiNv3Jh11EDAl54frKBVZfg9COLa+1xToB4=; b=jOenQUi0+O1BAna5Hm9B/ufnV98WrXNtbM61zBwdiHYDK1WzlHpONJqi8V9k6DxCZR 7RiOturA7XBKGhWzSxv8+pjltU9cD3ExHULOkaDkpKvpTNb8K8Ox1uo4PqzW2itASH5F lvVzScKsCAGjy1n/0sWDTe9keZPH+seONoH9mt207oOWzOwCCf6xqSvdPeZZnu7jBP5a yFs+Q+DiiWmt36XefZS+hVfUydEWUFT08ydKlVrbq3o3FAdPqwoBkpjQZ+VxuqbqiKjq lmjTvY2blIPOiVrw3lowRHNV/Hca4azWLe39d2xf+8MihpuRRnbl1yZeykba1YGQP0y0 wmYg== X-Gm-Message-State: ALoCoQmghk6CnuV6LQbwpfC2nO8jmxY0pyauj0zobfz5o2Y2sgN5hHxyd8syj10+YiKmgxoRgnra X-Received: by 10.152.45.101 with SMTP id l5mr11267675lam.7.1439560113789; Fri, 14 Aug 2015 06:48:33 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.121.38 with SMTP id lh6ls315020lab.47.gmail; Fri, 14 Aug 2015 06:48:33 -0700 (PDT) X-Received: by 10.112.17.70 with SMTP id m6mr44626706lbd.113.1439560113354; Fri, 14 Aug 2015 06:48:33 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id y12si6008756lbm.75.2015.08.14.06.48.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Aug 2015 06:48:33 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by lahi9 with SMTP id i9so44050895lah.2 for ; Fri, 14 Aug 2015 06:48:32 -0700 (PDT) X-Received: by 10.112.166.2 with SMTP id zc2mr43887435lbb.29.1439560112931; Fri, 14 Aug 2015 06:48:32 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.7.198 with SMTP id l6csp1635110lba; Fri, 14 Aug 2015 06:48:31 -0700 (PDT) X-Received: by 10.70.20.5 with SMTP id j5mr88207436pde.40.1439560110991; Fri, 14 Aug 2015 06:48:30 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g11si9134982pdk.80.2015.08.14.06.48.29; Fri, 14 Aug 2015 06:48:30 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755352AbbHNNsZ (ORCPT + 28 others); Fri, 14 Aug 2015 09:48:25 -0400 Received: from mail-oi0-f49.google.com ([209.85.218.49]:35822 "EHLO mail-oi0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755328AbbHNNsV (ORCPT ); Fri, 14 Aug 2015 09:48:21 -0400 Received: by oiew67 with SMTP id w67so25593576oie.2 for ; Fri, 14 Aug 2015 06:48:21 -0700 (PDT) X-Received: by 10.202.175.143 with SMTP id y137mr36285600oie.22.1439560100981; Fri, 14 Aug 2015 06:48:20 -0700 (PDT) Received: from linux-j170.site ([107.191.45.96]) by smtp.gmail.com with ESMTPSA id fx10sm2844558obb.27.2015.08.14.06.48.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 14 Aug 2015 06:48:20 -0700 (PDT) From: Bamvor Jian Zhang To: linux-kernel@vger.kernel.org Cc: broonie@linaro.org, khilman@linaro.org, tyler.baker@linaro.org, bamvor.zhangjian@linaro.org, shuahkh@osg.samsung.com Subject: [PATCH 6/7] selftests: only compile userfaultfd for x86 and powperpc Date: Fri, 14 Aug 2015 21:43:37 +0800 Message-Id: <1439559818-21666-7-git-send-email-bamvor.zhangjian@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1439559818-21666-1-git-send-email-bamvor.zhangjian@linaro.org> References: <1439559818-21666-1-git-send-email-bamvor.zhangjian@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bamvor.zhangjian@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Bamvor Jian Zhang --- tools/testing/selftests/vm/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/vm/Makefile index bb888c6..4dd6e4f 100644 --- a/tools/testing/selftests/vm/Makefile +++ b/tools/testing/selftests/vm/Makefile @@ -1,5 +1,15 @@ # Makefile for vm selftests +uname_M := $(shell uname -m 2>/dev/null || echo not) +ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/i386/ -e s/ppc.*/powerpc/) + +ifeq ($(ARCH),powerpc) +support_userfaultfd = yes +endif +ifeq ($(ARCH),x86) +support_userfaultfd = yes +endif + CFLAGS = -Wall BINARIES = compaction_test BINARIES += hugepage-mmap @@ -9,7 +19,9 @@ BINARIES += mlock2-tests BINARIES += on-fault-limit BINARIES += thuge-gen BINARIES += transhuge-stress +ifdef support_userfaultfd BINARIES += userfaultfd +endif all: $(BINARIES) %: %.c