Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2690137pxj; Mon, 31 May 2021 08:19:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9THVy6bdkUEcrT421k9/oDK+tsEu1qg31p8yGQbRYWYKlpKxar3lLm3Xqm0wgB04U16/P X-Received: by 2002:aa7:d284:: with SMTP id w4mr17340008edq.347.1622474387864; Mon, 31 May 2021 08:19:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622474387; cv=none; d=google.com; s=arc-20160816; b=YOeEHmL3ndEPEQ4TOcTdTT7W6/qOhz6Y4tT+p2kPvyWnr/ydl+BgSop73cvHkbLPC8 yYjwlVbXwEuMK511jI4L5BP5n4GxYYa4g/BMLxNp7PgOi0XiRQNEPxHI/+ReBOEevTUk cPiOaRePnRlA6Y6Wb5GZ12kptTBt7DP/1MnYIKb/fN66gwGbnYgz5G0YuXK45fOoeNiV ztRpH9UkUGYv5UP1bqmyU8s0EuvhA1Dpl578eKZvMtnYY7BIad1ON7/Fcgt1zz/yGcIe 537y0zLJBzkrPDwUu8jJmCTbZZxALIAI3EgyoQo8luGKEqhbV2iW0K6mGdJsoBkhnGJF qyyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cYdE0XIESwbjdLiGIYFR7Vv/8MyOyWmuy7SjEEqr7U0=; b=X8VRU+Bnn0OuHB7jSexawsEC2YK5ZdO0Ik2rsJFRYQBs/y6tTSuYI+67J8pTXXnKHN CcXdpJyyD9RpgKCMa/rju5B/eb8xiZxKBAe6nYofZu+k1PDpsZJGAYHotXuzYOdnVSS7 VJtBVEAtlc52FNliH/Q7VJkJbtX+8oq1LG1z0JCwNsVPtlkAj1XHu+PwC8JhBpMG3vEv CPDbj1hjjU+3s3Ry7n1mgELJ2/eN6/btqEgJ3GV73QuO7CUPWTGGWFDSJL/ceXJF0LCK HwX7A4nSmhjGn94Qci6KwgqEBWNkPoFdtwytvjayV4OTOTUT6eXEGOvrDJ4cHQBoydK3 N31g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UmNU4D2Q; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u23si7217740edi.175.2021.05.31.08.19.25; Mon, 31 May 2021 08:19:47 -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=@linuxfoundation.org header.s=korg header.b=UmNU4D2Q; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234078AbhEaPTO (ORCPT + 99 others); Mon, 31 May 2021 11:19:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:43918 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233663AbhEaOOv (ORCPT ); Mon, 31 May 2021 10:14:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0301161998; Mon, 31 May 2021 13:42:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468554; bh=2wdmI9euo9vh7MfQzEJXIK8fqET7cFT2uBvxIfaEyNI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UmNU4D2QIcVnmoIYkBhl1lf1yyzhAYckg2Rc/cr1amrf3OSKGYIV80lK+R4EK/9GG OloQeKxtJmckd95L1FnAPoCwpxrhWpTd6zklhp1sbFVpFPbMmkc/qdwOhnJByEZhRJ KVQ4tXpRIxELohGCirI8VNbSLPqGU+EZ5wrm+bdc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Ellerman , Shuah Khan , Sasha Levin Subject: [PATCH 5.4 034/177] selftests/gpio: Use TEST_GEN_PROGS_EXTENDED Date: Mon, 31 May 2021 15:13:11 +0200 Message-Id: <20210531130649.109397942@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130647.887605866@linuxfoundation.org> References: <20210531130647.887605866@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Ellerman [ Upstream commit ff2c395b9257f0e617f9cd212893f3c72c80ee6c ] Use TEST_GEN_PROGS_EXTENDED rather than TEST_PROGS_EXTENDED. That tells the lib.mk logic that the files it references are to be generated by the Makefile. Having done that we don't need to override the all rule. Signed-off-by: Michael Ellerman Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- tools/testing/selftests/gpio/Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tools/testing/selftests/gpio/Makefile b/tools/testing/selftests/gpio/Makefile index 0bb80619db58..1963beaf5119 100644 --- a/tools/testing/selftests/gpio/Makefile +++ b/tools/testing/selftests/gpio/Makefile @@ -11,22 +11,20 @@ LDLIBS += $(MOUNT_LDLIBS) TEST_PROGS := gpio-mockup.sh TEST_FILES := gpio-mockup-sysfs.sh -TEST_PROGS_EXTENDED := gpio-mockup-chardev +TEST_GEN_PROGS_EXTENDED := gpio-mockup-chardev GPIODIR := $(realpath ../../../gpio) GPIOOBJ := gpio-utils.o -all: $(TEST_PROGS_EXTENDED) - override define CLEAN - $(RM) $(TEST_PROGS_EXTENDED) + $(RM) $(TEST_GEN_PROGS_EXTENDED) $(MAKE) -C $(GPIODIR) OUTPUT=$(GPIODIR)/ clean endef KSFT_KHDR_INSTALL := 1 include ../lib.mk -$(TEST_PROGS_EXTENDED): $(GPIODIR)/$(GPIOOBJ) +$(TEST_GEN_PROGS_EXTENDED): $(GPIODIR)/$(GPIOOBJ) $(GPIODIR)/$(GPIOOBJ): $(MAKE) OUTPUT=$(GPIODIR)/ -C $(GPIODIR) -- 2.30.2