Received: by 10.192.165.148 with SMTP id m20csp2219158imm; Thu, 3 May 2018 12:25:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqnmMl8fdbqtjygs8fd0UoMNGmzfvhlznuW3WVt6C5XvVUArLjG4R4mcMUuj4XOldiNlMZ6 X-Received: by 10.98.225.7 with SMTP id q7mr24004772pfh.226.1525375519452; Thu, 03 May 2018 12:25:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525375519; cv=none; d=google.com; s=arc-20160816; b=rVSkapHrfBtwgCCgqw3NhzUTMN1lrKH8PCo6PZWQbuANa7EpKMi3T3V2QqBNmh6GTW B+mMdiLXeeaDu2SI3iO0JTITUVCEZLjyZk2W/5jNR/u85o4q+kx0cwvV5gYjcc1ffNPH pdZUDLR43CDOB+YkE8ziyT1Hr7m4YX/TGWdNWdR6c6uUsj3O/JkXPEav29MNKHU5cWIp oaDNBAO0r3nAQoTWzMav+cJp8Iocz0z2VOST3WAciSb8fKzze0j2zQFOTJb7j/KZkwVH oxWtZHF9q2DQj1f/mQTGhMT+LnzEqPpfwkjozR1c2c9d2bwGRqYGyn2wRmoeiSjVT2dI G3qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=i2UfmkJTHx7i/gjzcl0G126iCZf0PAmtU09v26BCGkw=; b=uy9HXTVEltp25OwGtMQhlolLmzgBcuRunCu0dzaRV3uceK6aaRQlHJvPpZNvgiXeVf ruK2b318QXrWLXxeaLxkYA54w3fHzvqfcRqFHE7CKkrPqmscaWMPqz8syxfengM2oB0D EfdnFnBAyHTHgjpUNypOsJ4pou/ftYRcH4v/QsDKXGmTN6QwLkf6e1A+hwrzYE6ZRMNv Xv84vHCXsOXXknVitxaOe5t/ZA2hE+eQ/zuTkk6i0Ik1L1TFI6r1wNhbAbnFbEwl90Y9 jFocHd3aHoeu4uv+Egk4Nz6GAaO7DuHoi6cvgflFyn9v7u/KGoWMQlQ1sxNa1i9nMB9C yz0g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e14-v6si528495pgv.516.2018.05.03.12.25.04; Thu, 03 May 2018 12:25:19 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751612AbeECTYm (ORCPT + 99 others); Thu, 3 May 2018 15:24:42 -0400 Received: from mga02.intel.com ([134.134.136.20]:8165 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751140AbeECTYf (ORCPT ); Thu, 3 May 2018 15:24:35 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 May 2018 12:24:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,359,1520924400"; d="scan'208";a="225573187" Received: from theros.lm.intel.com ([10.232.112.164]) by fmsmga005.fm.intel.com with ESMTP; 03 May 2018 12:24:34 -0700 From: Ross Zwisler To: Andrew Morton , linux-kernel@vger.kernel.org, Matthew Wilcox Cc: Ross Zwisler , Christoph Hellwig , Dan Williams , Dave Chinner , Jan Kara , linux-nvdimm@lists.01.org Subject: [PATCH 1/5] radix tree test suite: fix mapshift build target Date: Thu, 3 May 2018 13:24:26 -0600 Message-Id: <20180503192430.7582-2-ross.zwisler@linux.intel.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180503192430.7582-1-ross.zwisler@linux.intel.com> References: <20180503192430.7582-1-ross.zwisler@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit commit c6ce3e2fe3da ("radix tree test suite: Add config option for map shift") Introduced a phony makefile target called 'mapshift' that ends up generating the file generated/map-shift.h. This phony target was then added as a dependency of the top level 'targets' build target, which is what is run when you go to tools/testing/radix-tree and just type 'make'. Unfortunately, this phony target doesn't actually work as a dependency, so you end up getting: $ make make: *** No rule to make target 'generated/map-shift.h', needed by 'main.o'. Stop. make: *** Waiting for unfinished jobs.... Fix this by making the file generated/map-shift.h our real makefile target, and add this a dependency of the top level build target. Signed-off-by: Ross Zwisler --- tools/testing/radix-tree/Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/testing/radix-tree/Makefile b/tools/testing/radix-tree/Makefile index fa7ee369b3c9..db66f8a0d4be 100644 --- a/tools/testing/radix-tree/Makefile +++ b/tools/testing/radix-tree/Makefile @@ -17,7 +17,7 @@ ifeq ($(BUILD), 32) LDFLAGS += -m32 endif -targets: mapshift $(TARGETS) +targets: generated/map-shift.h $(TARGETS) main: $(OFILES) @@ -42,9 +42,7 @@ radix-tree.c: ../../../lib/radix-tree.c idr.c: ../../../lib/idr.c sed -e 's/^static //' -e 's/__always_inline //' -e 's/inline //' < $< > $@ -.PHONY: mapshift - -mapshift: +generated/map-shift.h: @if ! grep -qws $(SHIFT) generated/map-shift.h; then \ echo "#define RADIX_TREE_MAP_SHIFT $(SHIFT)" > \ generated/map-shift.h; \ -- 2.14.3