Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5549707yba; Mon, 13 May 2019 12:50:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2r+HqCAlPLTeMZDl6ozbiKYXmmA0og1OZHsAQ+W9U7driGJ765eHKVWlQUjBhPjl7dFzh X-Received: by 2002:a17:902:d24:: with SMTP id 33mr32786695plu.148.1557777029027; Mon, 13 May 2019 12:50:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557777029; cv=none; d=google.com; s=arc-20160816; b=omkZZ88j/gSOLI5WPrDoXHNvEnjQNQtimk1Aidj+PSBhigKBE7iKNlNmZjuq28MttP MLo2ZNzaNxFh8vgejA2jJgi1kHSO/dGMkS/gNbQfDecLGMxcStSvmHo1cmuaDgRPoM3d Y+hM8EioeMZ6xdHf1R8H6ypeeZB171V5EGZgOg4LxSfp5R74xDpUcOMZnqzrwfqZAbCy yq3AL1Ir5i4bSZ8/R/i3hBcLZ09tYUMGzMXZAfqa4OlKTnGI04dWp6CxttkXVY7Qna2a KZ9s1tjQMTjo663j1+zVcEeBFXPI2R9W0+CT55wHys1Btiuv4Z3d1DGsEACYSi+l8kzt KJbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:date:from :dkim-signature; bh=7cRI9hSN0zogiJSS2xRa8So0qxBTCCyndYlONZH7Wq8=; b=rBPZgQMIJ2ny474w0uj4UpwTXQs2uSc/XfJv84/ltdTNnhCo9vRrG3pm3/UDpKLAm4 IN6Ju+aVX/+bFPp3RdX8vyND4QdBMJeyIu7oTHms0Rgn2OiIc+xJWCqYp57aF9Jb+Z3e w+LbVD/sIYF7voeJq38pzDCllnoKiEM3+/odfJewRzgUl0nHSNxlNi+kvzj5AKtPTumO 6CL+rCu6+HhyxE3knl62F+J3cOxMiK86tTZRHqkjK3Vwh+4KITqostgLohhuCiy1dsIs /USbL+gPYF6TsJo2ge/AFRchlOR4OkeBbkbRcrfxPmQhZtKNp5jdC7a+IlRDpndbCXRq f6RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CvAcvFbP; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d18si17754829pgi.335.2019.05.13.12.50.12; Mon, 13 May 2019 12:50:29 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CvAcvFbP; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726991AbfEMShh (ORCPT + 99 others); Mon, 13 May 2019 14:37:37 -0400 Received: from mail-qk1-f182.google.com ([209.85.222.182]:41031 "EHLO mail-qk1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726888AbfEMShe (ORCPT ); Mon, 13 May 2019 14:37:34 -0400 Received: by mail-qk1-f182.google.com with SMTP id g190so6551347qkf.8 for ; Mon, 13 May 2019 11:37:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=7cRI9hSN0zogiJSS2xRa8So0qxBTCCyndYlONZH7Wq8=; b=CvAcvFbPGhrAsprSS4I8lBGMxt2xTN8vizowUYQqW4WaZgyywyAcH8ybBtOrJ135X2 GlbMaUd6sAjJ4/imb6BEhzlHkLonpvpmK4dSqdGT+b7AE3T5E9sj9GdhTiSdZFm8KKOU uarMN6HfB0ZVI48ZfIne0wPDHw1EQ4j9DhBQ2uSr2DdDQVY7V6iY19L6Iea/mC69UWe+ GohKfyVYxWmNZuPBX2LwEtYZ/OX0QyhFSy465eWmpc0VRT1SKitRLy+5KV2NoFIHAr4l EJQVQGsqc8EnpKEbuCaWAIw+5RWMrtqEqiQQhE9IBy5JMaCju1BH13ZiqzZ0Dmperm5n J4Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=7cRI9hSN0zogiJSS2xRa8So0qxBTCCyndYlONZH7Wq8=; b=bjxRxBgFIkCtGEFHfRPBh6X8LbprmZUtDP0g0cXCop0ASWfDHMUvX6fERwQl4ueWl/ JxZaNqmvp5M5ED1ph6dRGQMNvNmulSIHYMa4KZVGxJqJz2/hsGskd6tIbGPGVOx3C0wm +DHGU+8Ds7dh7dELhcUm4M1402UfimHmdFjRdFCCCoOVRsXSsp+oUrdhnXm5X22tDr1H mAIs67wRBjSs8PdyEbB5/E8VvWTPiruYnXX53lzki4m+guxW1+t3NgZ/QPVAUUEafOg9 gpFD+cvmi038pGBxOd4agi/eb5fZuv/TI+PFmx3ak+sJnWvRvZsPB/nV1fnOHPKbFdJH OEHw== X-Gm-Message-State: APjAAAWw0lSL3zKPmPhB+dK696J0c9JNmq/XahtZCLwgfl3tQb2XT2ke 7Lqpn00qmXxaSors/mP6iKx1G4ge X-Received: by 2002:a37:de19:: with SMTP id h25mr22749837qkj.289.1557772652620; Mon, 13 May 2019 11:37:32 -0700 (PDT) Received: from quaco.ghostprotocols.net ([190.15.121.82]) by smtp.gmail.com with ESMTPSA id n7sm6996140qtl.43.2019.05.13.11.37.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 May 2019 11:37:31 -0700 (PDT) From: Arnaldo Carvalho de Melo X-Google-Original-From: Arnaldo Carvalho de Melo Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id BEAFF403AD; Mon, 13 May 2019 15:37:28 -0300 (-03) Date: Mon, 13 May 2019 15:37:28 -0300 To: Gustavo Pimentel Cc: Kishon Vijay Abraham I , Lorenzo Pieralisi , Jiri Olsa , Namhyung Kim , Linux Kernel Mailing List Subject: [PATCH] tools pci: Do not delete pcitest.sh in 'make clean' Message-ID: <20190513175955.GB8003@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I have this in my local perf/core branch, lined up for 5.2, please let me know if you're ok with it. - Arnaldo commit 4dfe8f59156382b7695fe5c10bddd5c97c84289a Author: Arnaldo Carvalho de Melo Date: Mon May 13 13:53:20 2019 -0400 tools pci: Do not delete pcitest.sh in 'make clean' When running 'make -C tools clean' I noticed that a revision controlled file was being deleted: $ git diff diff --git a/tools/pci/pcitest.sh b/tools/pci/pcitest.sh deleted file mode 100644 index 75ed48ff2990..000000000000 --- a/tools/pci/pcitest.sh +++ /dev/null @@ -1,72 +0,0 @@ -#!/bin/sh -# SPDX-License-Identifier: GPL-2.0 - -echo "BAR tests" -echo So I changed the make variables to fix that, testing it should produce the same intended result while not deleting revision controlled files. $ make O=/tmp/build/pci -C tools/pci install make: Entering directory '/home/acme/git/perf/tools/pci' make -f /home/acme/git/perf/tools/build/Makefile.build dir=. obj=pcitest install -d -m 755 /usr/bin; \ for program in /tmp/build/pci/pcitest pcitest.sh; do \ install $program /usr/bin; \ done install: cannot change permissions of ‘/usr/bin’: Operation not permitted install: cannot create regular file '/usr/bin/pcitest': Permission denied install: cannot create regular file '/usr/bin/pcitest.sh': Permission denied make: *** [Makefile:46: install] Error 1 make: Leaving directory '/home/acme/git/perf/tools/pci' $ ls -la /tmp/build/pci/pcitest -rwxrwxr-x. 1 acme acme 27152 May 13 13:52 /tmp/build/pci/pcitest $ /tmp/build/pci/pcitest can't open PCI Endpoint Test device: No such file or directory $ Cc: Adrian Hunter Cc: Gustavo Pimentel Cc: Jiri Olsa Cc: Kishon Vijay Abraham I Cc: Lorenzo Pieralisi Cc: Namhyung Kim Fixes: 1ce78ce09430 ("tools: PCI: Change pcitest compiling process") Link: https://lkml.kernel.org/n/tip-9re6bd7eh9epi3koslkv3ocn@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo diff --git a/tools/pci/Makefile b/tools/pci/Makefile index 46e4c2f318c9..f64da817bc03 100644 --- a/tools/pci/Makefile +++ b/tools/pci/Makefile @@ -14,7 +14,7 @@ MAKEFLAGS += -r CFLAGS += -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include -ALL_TARGETS := pcitest pcitest.sh +ALL_TARGETS := pcitest ALL_PROGRAMS := $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS)) all: $(ALL_PROGRAMS) @@ -44,7 +44,7 @@ clean: install: $(ALL_PROGRAMS) install -d -m 755 $(DESTDIR)$(bindir); \ - for program in $(ALL_PROGRAMS); do \ + for program in $(ALL_PROGRAMS) pcitest.sh; do \ install $$program $(DESTDIR)$(bindir); \ done