Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6022649ybc; Wed, 27 Nov 2019 13:33:57 -0800 (PST) X-Google-Smtp-Source: APXvYqyVy5lrenBB3wjaXaDMu3kifKJro/p4fAT6bUSN62W7yF83l0LxYwASTDdhh+MzY1BtFcOs X-Received: by 2002:a17:906:958b:: with SMTP id r11mr51859423ejx.332.1574890437770; Wed, 27 Nov 2019 13:33:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574890437; cv=none; d=google.com; s=arc-20160816; b=PYyvnfTQ6MTFwTaq6YegHfefgayfa+SLJda1d3jIDNUKB6fa2Lga93g65FLcSWI1Ak g4EJlSXkOf8CGgyPLnWmTSAFWrkrcODzs+7dBQs24koJ4z1u5gRs4SQ3IJd3YFr6T3wp Xo08TpwpeUn5QaVKtCfWYJtJnpSRwPWrK4Ifumm6ELRGjvu2LJVszVgoAZ8yLlSOThrM nbjFaQsMRQikBN8g1arQOqF+HjP4+IUcowZnEXlDxY31Tlkx7uX+qzNyVEQD0okezVot n2BwfYdyadB+sn+FQUzzOGQCDrToQjDLzwzhhGYdCECgGvVLXuGkAF05T25natKPvnSn ZjhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4hiByyt+YznQzgOouxvEGXXjndtOqixK8TZIyrGFgbU=; b=hWYOYIFMCKqYgyfNzuJPYm4tj1fSH4X/Aw1vkOCjdLMoqHdalx7KQJ359J/EOZC3f3 G2ZLphTwdVAFYtrZCiNVoV+xT6zwhTqQ4s7q63RbuP3+91v8f7NiobAUxbTs4ESuZOr7 2VuLOelTJYziBXJ83NsUEw3L7PaF6UQ6YKmkzyVO0rXeg0a5T0TPvRnlMaCRnquvNToX FY/vLsndcmYp2Fg/8lqXIzGDf4tftFvQZzlxSCXwM8fHqAKcTayDG+IPCDZVeVPS6eTq VYzs4vBNNSCOK5HPtKbZ2830ryFO5FyB3xncjJ+8IcqNimFNGBfduJMHd1vOTyIJ84XJ bhhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qe6e4CjU; 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 m4si10525539ejr.90.2019.11.27.13.33.33; Wed, 27 Nov 2019 13:33:57 -0800 (PST) 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=@kernel.org header.s=default header.b=qe6e4CjU; 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 S1730608AbfK0U5T (ORCPT + 99 others); Wed, 27 Nov 2019 15:57:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:48162 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731160AbfK0U5P (ORCPT ); Wed, 27 Nov 2019 15:57:15 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A9DED21582; Wed, 27 Nov 2019 20:57:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888233; bh=zvYRrz4rzu32n8VzU68nDZUGzYohu/DbbQ7Rr99+HhM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qe6e4CjUUY/vGm2IZf4NCw1OYWqM+5S4VQZIeZn26fm0yjHLl/DYjMpciCmeF/R0j SEqSfN3w3aACrJPg0s5RjfszJ6wjFLseQU07h+b0o44NcPX78QC0MD9C9PTN4pmNiQ MhxLxQ/QNEzp3kTF+2WY9+JbjBMLUv7+pMsON0u4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Laura Abbott , Bartosz Golaszewski Subject: [PATCH 4.19 013/306] tools: gpio: Correctly add make dependencies for gpio_utils Date: Wed, 27 Nov 2019 21:27:43 +0100 Message-Id: <20191127203115.684001568@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Laura Abbott commit 0161a94e2d1c713bd34d72bc0239d87c31747bf7 upstream. gpio tools fail to build correctly with make parallelization: $ make -s -j24 ld: gpio-utils.o: file not recognized: file truncated make[1]: *** [/home/labbott/linux_upstream/tools/build/Makefile.build:145: lsgpio-in.o] Error 1 make: *** [Makefile:43: lsgpio-in.o] Error 2 make: *** Waiting for unfinished jobs.... This is because gpio-utils.o is used across multiple targets. Fix this by making gpio-utios.o a proper dependency. Cc: Signed-off-by: Laura Abbott Signed-off-by: Bartosz Golaszewski Signed-off-by: Greg Kroah-Hartman --- tools/gpio/Build | 1 + tools/gpio/Makefile | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) --- a/tools/gpio/Build +++ b/tools/gpio/Build @@ -1,3 +1,4 @@ +gpio-utils-y += gpio-utils.o lsgpio-y += lsgpio.o gpio-utils.o gpio-hammer-y += gpio-hammer.o gpio-utils.o gpio-event-mon-y += gpio-event-mon.o gpio-utils.o --- a/tools/gpio/Makefile +++ b/tools/gpio/Makefile @@ -35,11 +35,15 @@ $(OUTPUT)include/linux/gpio.h: ../../inc prepare: $(OUTPUT)include/linux/gpio.h +GPIO_UTILS_IN := $(output)gpio-utils-in.o +$(GPIO_UTILS_IN): prepare FORCE + $(Q)$(MAKE) $(build)=gpio-utils + # # lsgpio # LSGPIO_IN := $(OUTPUT)lsgpio-in.o -$(LSGPIO_IN): prepare FORCE +$(LSGPIO_IN): prepare FORCE $(OUTPUT)gpio-utils-in.o $(Q)$(MAKE) $(build)=lsgpio $(OUTPUT)lsgpio: $(LSGPIO_IN) $(QUIET_LINK)$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ @@ -48,7 +52,7 @@ $(OUTPUT)lsgpio: $(LSGPIO_IN) # gpio-hammer # GPIO_HAMMER_IN := $(OUTPUT)gpio-hammer-in.o -$(GPIO_HAMMER_IN): prepare FORCE +$(GPIO_HAMMER_IN): prepare FORCE $(OUTPUT)gpio-utils-in.o $(Q)$(MAKE) $(build)=gpio-hammer $(OUTPUT)gpio-hammer: $(GPIO_HAMMER_IN) $(QUIET_LINK)$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ @@ -57,7 +61,7 @@ $(OUTPUT)gpio-hammer: $(GPIO_HAMMER_IN) # gpio-event-mon # GPIO_EVENT_MON_IN := $(OUTPUT)gpio-event-mon-in.o -$(GPIO_EVENT_MON_IN): prepare FORCE +$(GPIO_EVENT_MON_IN): prepare FORCE $(OUTPUT)gpio-utils-in.o $(Q)$(MAKE) $(build)=gpio-event-mon $(OUTPUT)gpio-event-mon: $(GPIO_EVENT_MON_IN) $(QUIET_LINK)$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@