Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2655431pxj; Mon, 31 May 2021 07:31:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmdjuhPFUCO7WFOlSPn7znlyIFV8869iqfa0paub00V1pwGzfNOwI99x17eZoDciP/Ix7C X-Received: by 2002:a05:6638:13cc:: with SMTP id i12mr20926268jaj.20.1622471480270; Mon, 31 May 2021 07:31:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622471480; cv=none; d=google.com; s=arc-20160816; b=W8vEDuLCIGo8xGeqt1AbLyP3krh5ePpA/LUkpFKzSS7/qbpFyCemzaAF6NViTnxgs/ 3iG8RXJxJ0o6wBwZkcSrlTJt83BRSIFNq/79utegKqX+g1GZATD+gAOi/dCE9Vx16wbZ ro0zmukWY3cFbHQ/3ifeNXzN/4/QklHXQLspO3U84ybPuiT9z1CVjPrHPLuA8OTTRmwp sJnavT4HU2cIFWzow5bT7RYTvs+zhp9/4Y132aihpEXDJN+HLAXQj4cjmghAx4394ZX/ djiuc90H0szIpIxCocpSzJggW3WFyDVqjLLeewyQNOQMDZEvebfWRxn6vraRCoha5AYm Q/Jw== 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=Q1OHOm+LfU/avxhBaN9GItJKaQ9SuVcV1jg9pCoI8IU=; b=mcf737unVdkG0Zu9Xygn1DtzeH9oDdmDcS0A85xgsKc833lrmhyDovHbScEDJAEm8Q 9Gi3JOmwxliVY6ReLFagPyqhwJiXMqEEacemIygSY1ZiRembo4Y/lnqqYS95AlE/Bb8b a2Tgpg+zyjGr5Dg9hHxPAYUnhsTeQPMQa/J7B0HftytC8Xr9R/OsNDoh57wTby92nmNa ne6RXwpENsxOB9eQTH9E8R9riI7ENbVOhgpss1UsFZJxxUD5soD4M6bWm02DVENId/fO tUukaGyuKkoEczVUEVKIZSoojIQIAPyWGsFtWiZ0ddIm3gnd+0BgoSTzHE8JJhlNNHNI Ao6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=t0ewnnWX; 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 p31si16130158jac.95.2021.05.31.07.31.04; Mon, 31 May 2021 07:31:20 -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=t0ewnnWX; 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 S232559AbhEaObr (ORCPT + 99 others); Mon, 31 May 2021 10:31:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:55360 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233038AbhEaNxw (ORCPT ); Mon, 31 May 2021 09:53:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0AD9661923; Mon, 31 May 2021 13:33:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468008; bh=5dzAZaF3jNkCs4YIymxVOVknmLLfcGgARbrOKFlsZD8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t0ewnnWXH+2dM90An6zeHYNkvErv0TKF7sAi8dZgI2B2v33UdchjzPxLFfo5uEs0I 0tiMU/RMrXceLs23f6ODF4mFrr2tzeHLW12mb1Ka6NgiZICbxv6EzjD47+xmDsO4zl aBtmNYheuUlUVF9rXvYUDntFDoMsQLxJdKrOybbI= 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.10 047/252] selftests/gpio: Use TEST_GEN_PROGS_EXTENDED Date: Mon, 31 May 2021 15:11:52 +0200 Message-Id: <20210531130659.581135576@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@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 32bdc978a711..c85fb5acf5f4 100644 --- a/tools/testing/selftests/gpio/Makefile +++ b/tools/testing/selftests/gpio/Makefile @@ -11,22 +11,20 @@ LDLIBS += $(VAR_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