Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion tools: Pass the target in descend

Received: by 10.66.73.226 with SMTP id o2mr358195pav.12.1353617857469;
        Thu, 22 Nov 2012 12:57:37 -0800 (PST)
Path: s9ni5801pbb.0!nntp.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!news.mi.ras.ru!goblin2!goblin3!goblin.stu.neva.ru!usenet.pasdenom.info!aioe.org!bofh.it!news.nic.it!robomod
From: Arnaldo Carvalho de Melo <a...@infradead.org>
Newsgroups: linux.kernel
Subject: [PATCH 30/32] tools: Pass the target in descend
Date: Sun, 18 Nov 2012 15:40:03 +0100
Message-ID: <k7ecr-2fH-57@gated-at.bofh.it>
References: <k7ecq-2fH-9@gated-at.bofh.it>
X-Original-To: Ingo Molnar <mi...@kernel.org>
X-Mailer: git-send-email 1.7.9.2.358.g22243
MIME-Version: 1.0
X-MIME-Error: demime acl condition: double headers (content-type, content-disposition or content-transfer-encoding)
X-Srs-Rewrite: SMTP reverse-path rewritten from <a...@infradead.org> by canuck.infradead.org
	See http://www.infradead.org/rpr.html
Sender: robo...@news.nic.it
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org
Approved: robo...@news.nic.it
Lines: 68
Organization: linux.* mail to news gateway
X-Original-Cc: linux-ker...@vger.kernel.org, David Howells <dhowe...@redhat.com>,
	Borislav Petkov <b...@amd64.org>,
	Linus Torvalds <torva...@linux-foundation.org>,
	Namhyung Kim <namhy...@gmail.com>,
	Paul Mackerras <pau...@samba.org>,
	Thomas Gleixner <t...@linutronix.de>,
	Arnaldo Carvalho de Melo <a...@redhat.com>
X-Original-Date: Sun, 18 Nov 2012 11:29:55 -0300
X-Original-Message-ID: <1353248997-30763-31-git-send-email-acme@infradead.org>
X-Original-References: <1353248997-30763-1-git-send-email-a...@infradead.org>
X-Original-Sender: linux-kernel-ow...@vger.kernel.org
Bytes: 4804
X-Received-Bytes: 4852
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="utf-8"

From: David Howells <dhowe...@redhat.com>

 Fixing:

  [acme@sandy linux]$ cd tools
  [acme@sandy tools]$ make clean
      DESCEND power/cpupower
    CC       lib/cpufreq.o
    CC       lib/sysfs.o
    LD       libcpupower.so.0.0.0
    CC       utils/helpers/amd.o
  utils/helpers/amd.c:7:21: error: pci/pci.h: No such file or directory
  In file included from utils/helpers/amd.c:9:
  ./utils/helpers/helpers.h:137: warning: ‘struct pci_access’ declared inside parameter list
  ./utils/helpers/helpers.h:137: warning: its scope is only this definition or declaration, which is probably not what you want
  ./utils/helpers/helpers.h:139: warning: ‘struct pci_access’ declared inside parameter list
  utils/helpers/amd.c: In function ‘amd_pci_get_num_boost_states’:
  utils/helpers/amd.c:120: warning: passing argument 1 of ‘pci_slot_func_init’ from incompatible pointer type
  ./utils/helpers/helpers.h:138: note: expected ‘struct pci_access **’ but argument is of type ‘struct pci_access **’
  utils/helpers/amd.c:125: warning: implicit declaration of function ‘pci_read_byte’
  utils/helpers/amd.c:132: warning: implicit declaration of function ‘pci_cleanup’
  make[1]: *** [utils/helpers/amd.o] Error 1
  make: *** [cpupower_clean] Error 2
  [acme@sandy tools]$

Reported-by: Arnaldo Carvalho de Melo <a...@ghostprotocols.net>
Signed-off-by: David Howells <dhowe...@redhat.com>
Cc: Borislav Petkov <b...@amd64.org>
Cc: Ingo Molnar <mi...@kernel.org>
Cc: Linus Torvalds <torva...@linux-foundation.org>
Cc: Namhyung Kim <namhy...@gmail.com>
Cc: Paul Mackerras <pau...@samba.org>
Cc: Thomas Gleixner <t...@linutronix.de>
Link: http://lkml.kernel.org/n/tip-tviyimq6x6nm77sj5lt4t...@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <a...@redhat.com>
---
 tools/scripts/Makefile.include |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/scripts/Makefile.include b/tools/scripts/Makefile.include
index 87467b1..2964b96 100644
--- a/tools/scripts/Makefile.include
+++ b/tools/scripts/Makefile.include
@@ -51,7 +51,7 @@ endif
 #
 descend = \
 	+mkdir -p $(OUTPUT)$(1) && \
-	$(MAKE) $(COMMAND_O) subdir=$(if $(subdir),$(subdir)/$(1),$(1)) $(PRINT_DIR) -C $(1)
+	$(MAKE) $(COMMAND_O) subdir=$(if $(subdir),$(subdir)/$(1),$(1)) $(PRINT_DIR) -C $(1) $(2)
 
 QUIET_SUBDIR0  = +$(MAKE) $(COMMAND_O) -C # space to separate -C and subdir
 QUIET_SUBDIR1  =
@@ -72,6 +72,6 @@ ifndef V
 	descend = \
 		@echo '   ' DESCEND $(1); \
 		mkdir -p $(OUTPUT)$(1) && \
-		$(MAKE) $(COMMAND_O) subdir=$(if $(subdir),$(subdir)/$(1),$(1)) $(PRINT_DIR) -C $(1)
+		$(MAKE) $(COMMAND_O) subdir=$(if $(subdir),$(subdir)/$(1),$(1)) $(PRINT_DIR) -C $(1) $(2)
 endif
 endif
-- 
1.7.9.2.358.g22243

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/