Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2587262pxk; Mon, 14 Sep 2020 18:30:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwdHjafcg3KlwfR6tnRF8BggmUN/Xy2Xag48SmPFhLrrroVpF1Wr+PHCITzxVdNyzcBMzj X-Received: by 2002:a17:906:fb84:: with SMTP id lr4mr18395230ejb.282.1600133435723; Mon, 14 Sep 2020 18:30:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600133435; cv=none; d=google.com; s=arc-20160816; b=OGeOLSpeUt5VFzajRhvst9tcDPFociy73nDubYlu8GB80uPJ41XCAhLknUXJtsLtY2 L87jtQ79t9SHnKlkR/BTRQ7oKaP9Pm8wDXPWGLs14StywuPlwSURi7w5YDJFaL5ywBUY E5InJVZc8tI28C+FpaN2VvIq/XSQa3oUHFSFjM7fU3qbdhloT+O0+Iy74O89cikvRAcG ULyQiA0I9nHs5FjmWcpayNAdPlNIARHmZIRiEDr8kJOQg3bLOhmBmL5tbAiTZdjXN1kr nCDgz/ltwhk96HMWYx8ujzuPZc5n2A6f8BZhf/RvnGJiYezGIdSnaurigPBbVjsTV9MS pl8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=x5qALEIabmrvz75oOg/DIfroc5FkHi76HfQxR/yMV5M=; b=1C1o5FSM534hXKlHcygc9wZagQ6PXjgvESNdlM0Sg4watXLjFNTD5d+S2FYDq3h5DF RbmanxakmJe+qDti8/tBNhcyYYXkYu+J0NZ0d9svXa4XMC+SbAwIIJ6Yu/tmZrE8m6GV Up0d0BmCnl4ol0Xw2pu6krlZXHAGnCCQI1mswDYLKi5TswHiX0fwO5AvDwZVbkXAmh7D xN8poyxklabKb/URo65o9uTX5lVaUGOTuKmKL5rwEHGy4Q5WXOaL7cnwCwFUKkynvD+X n3py2QpXBotGUBujRny8f5GKJ2AEFzki7qARfT0PhTmVkzpwR9OxxuV73aKb0rIOcSOG 60vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=fzuigUMO; 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=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e6si7795120ejc.703.2020.09.14.18.30.13; Mon, 14 Sep 2020 18:30:35 -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=@nvidia.com header.s=n1 header.b=fzuigUMO; 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=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726079AbgIOB3S (ORCPT + 99 others); Mon, 14 Sep 2020 21:29:18 -0400 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:10924 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726183AbgIOB3D (ORCPT ); Mon, 14 Sep 2020 21:29:03 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 14 Sep 2020 18:26:42 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Mon, 14 Sep 2020 18:29:02 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Mon, 14 Sep 2020 18:29:02 -0700 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 15 Sep 2020 01:29:02 +0000 Received: from hqnvemgw03.nvidia.com (10.124.88.68) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 15 Sep 2020 01:29:02 +0000 Received: from sandstorm.nvidia.com (Not Verified[10.2.52.22]) by hqnvemgw03.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Mon, 14 Sep 2020 18:29:02 -0700 From: John Hubbard To: Andrew Morton CC: Shuah Khan , LKML , , , John Hubbard Subject: [PATCH 1/2] selftests/vm: fix false build success on the second and later attempts Date: Mon, 14 Sep 2020 18:29:00 -0700 Message-ID: <20200915012901.1655280-2-jhubbard@nvidia.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200915012901.1655280-1-jhubbard@nvidia.com> References: <20200915012901.1655280-1-jhubbard@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public Content-Transfer-Encoding: quoted-printable Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1600133202; bh=x5qALEIabmrvz75oOg/DIfroc5FkHi76HfQxR/yMV5M=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:X-NVConfidentiality: Content-Transfer-Encoding:Content-Type; b=fzuigUMOi4XuHMYL2JqDjqpHHqh+1Hn8/y7RSrLY+PziwtmntBZUtaor39QJCTqyj QzXfM1spGRgn4WmAWIO0dsY0nWXwO+il9Xq4iDBstgKadbuSU5tngCKo7W6vBg9C+5 kCtRFCgNpk5sIYNUuVuvGdbnhxQuSHfsXBff2E8jc/Tayx5+0pgXJ8Xi1/8LIWTYVE bqnfkdol+ENCS3euCQD+mZfSnW/K54S+tiHe5xcvNkSS06pZdLFGm3ibvXcdqhBc05 mk+c8kTuZ/1CMVUDrA48FfiqcoRavt/8v50NtOEVZsKr7kFuDVMxet8/7xSTqJala8 eNm3rHVUiEA1Q== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If one or more of these selftest fail to build, then after the first failure, subsequent invocations of "make" will make it appear that there are no build failures, after all. That's because the failed build products remain, with up-to-date timestamps, thus tricking Make (and you!) into believing that there's nothing else to build. Fix this by telling Make to delete targets that didn't completely succeed. Signed-off-by: John Hubbard --- tools/testing/selftests/vm/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/= vm/Makefile index a9026706d597..9f2625bebf07 100644 --- a/tools/testing/selftests/vm/Makefile +++ b/tools/testing/selftests/vm/Makefile @@ -3,6 +3,11 @@ uname_M :=3D $(shell uname -m 2>/dev/null || echo not) MACHINE ?=3D $(shell echo $(uname_M) | sed -e 's/aarch64.*/arm64/') =20 +# Without this, failed build products remain, with up-to-date timestamps, +# thus tricking Make (and you!) into believing that All Is Well, in subseq= uent +# make invocations: +.DELETE_ON_ERROR: + CFLAGS =3D -Wall -I ../../../../usr/include $(EXTRA_CFLAGS) LDLIBS =3D -lrt TEST_GEN_FILES =3D compaction_test --=20 2.28.0