Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7280678imu; Wed, 14 Nov 2018 14:47:45 -0800 (PST) X-Google-Smtp-Source: AJdET5dLLt/c9Aw2h03nr3IPzD8YAEfSsJK4mUNeATAJVWnDYLKCg41JKs9F6QC3TcoAWHYN4Gxb X-Received: by 2002:a65:4b82:: with SMTP id t2mr3502816pgq.189.1542235665679; Wed, 14 Nov 2018 14:47:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542235665; cv=none; d=google.com; s=arc-20160816; b=HoPpOd/Jl0aFyt8Sn5dHpyNV81NnuiZ3N04Rll8tHiqT+5f3BLriQ896hXS2x91HiB ien3DJZK5YKCCAfSm4FtgDYHtgkQxkNYwg3Zrn1pI7K+HSk8vtsbQa6prrHhTG7jxdM+ PMQbTu4TqM4DrSfl6Rx9ArsqPZ0z854AgQdWZ7bbwi4lDxJW46OoqAX4wE4n2xEE0nmU qXNLT+B9Re3/8wWeS9cmyYfEQ0p1qdnrwB7ws1zn24hoMglw1t+5WIa6ui5M3xcKUAXK vay2Ow/n7Cw4G/f7X5nLBhujKRKkJ2V8ovwx4mr6KlB6o5r1IYZ5k2thQo05PheqUw+S dmIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=2rVlTiULOCNklm2rOyLyLRaef7DcehUaczoZM+2b/5Y=; b=csgqEcmauOl4MxJuXMRnAEpTF1I5YCGCk0vzUK7lgYAuEMJF6I/mvDK6CXH5RA8QBo gptdbTyjs2HmrskgukMS5FYgcEje+F7NRZ7L/YKqd6jp1JW+4GHqQOsv8z1zkNqlBnFb DnXMIL8rK0n4UHQRbt3qXML0qIc4gAF8Tf7PS3DABokF4USb+3lZsU9dAtYAtqFWzl9+ tPXcNHaMCvosY9d8xVrtBGe1ifEKRqBDETXwMTDjpSbN3Ptss9pMjv1/eTOH3z2It/Kd 2qsnFeXXfq0xXjOkqQlj7C74PLw1U6HZrRHnsg+1GEsjFzkpTl61EadojMvoFsPX2bvS ogbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Z8PC2nCr; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m22-v6si23864904pgb.103.2018.11.14.14.47.31; Wed, 14 Nov 2018 14:47:45 -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=Z8PC2nCr; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728630AbeKOIvx (ORCPT + 99 others); Thu, 15 Nov 2018 03:51:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:34402 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726859AbeKOI1N (ORCPT ); Thu, 15 Nov 2018 03:27:13 -0500 Received: from sasha-vm.mshome.net (unknown [64.114.255.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9E0E222513; Wed, 14 Nov 2018 22:22:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542234129; bh=Ng4qShq3DvyRMhCPtwv+meg4imFtznRhAICxPLNsUGA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z8PC2nCrk6fdMoPmp66n62Zj619gDkjcCwQ0C6lqQVxHkspOmiGh6T+eyzUXJ5fwY t1ujTuJxLCWgpSGnsFjhBug5PJRqU+bn4uZUq5DOd2EE33xStBKcyvj4d4bjf+S1A9 9uE1RnkQGki8n7kKZp9iaoAHmsHL/0Z/bRJv4/Bw= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Vasily Gorbik , Martin Schwidefsky , Sasha Levin Subject: [PATCH AUTOSEL 4.19 05/73] s390/vdso: add missing FORCE to build targets Date: Wed, 14 Nov 2018 17:20:59 -0500 Message-Id: <20181114222207.98701-5-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181114222207.98701-1-sashal@kernel.org> References: <20181114222207.98701-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vasily Gorbik [ Upstream commit b44b136a3773d8a9c7853f8df716bd1483613cbb ] According to Documentation/kbuild/makefiles.txt all build targets using if_changed should use FORCE as well. Add missing FORCE to make sure vdso targets are rebuild properly when not just immediate prerequisites have changed but also when build command differs. Reviewed-by: Philipp Rudo Signed-off-by: Vasily Gorbik Signed-off-by: Martin Schwidefsky Signed-off-by: Sasha Levin --- arch/s390/kernel/vdso32/Makefile | 6 +++--- arch/s390/kernel/vdso64/Makefile | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/s390/kernel/vdso32/Makefile b/arch/s390/kernel/vdso32/Makefile index c5c856f320bc..04dd3e2c3bd9 100644 --- a/arch/s390/kernel/vdso32/Makefile +++ b/arch/s390/kernel/vdso32/Makefile @@ -36,7 +36,7 @@ UBSAN_SANITIZE := n $(obj)/vdso32_wrapper.o : $(obj)/vdso32.so # link rule for the .so file, .lds has to be first -$(obj)/vdso32.so.dbg: $(src)/vdso32.lds $(obj-vdso32) +$(obj)/vdso32.so.dbg: $(src)/vdso32.lds $(obj-vdso32) FORCE $(call if_changed,vdso32ld) # strip rule for the .so file @@ -45,12 +45,12 @@ $(obj)/%.so: $(obj)/%.so.dbg FORCE $(call if_changed,objcopy) # assembly rules for the .S files -$(obj-vdso32): %.o: %.S +$(obj-vdso32): %.o: %.S FORCE $(call if_changed_dep,vdso32as) # actual build commands quiet_cmd_vdso32ld = VDSO32L $@ - cmd_vdso32ld = $(CC) $(c_flags) -Wl,-T $^ -o $@ + cmd_vdso32ld = $(CC) $(c_flags) -Wl,-T $(filter %.lds %.o,$^) -o $@ quiet_cmd_vdso32as = VDSO32A $@ cmd_vdso32as = $(CC) $(a_flags) -c -o $@ $< diff --git a/arch/s390/kernel/vdso64/Makefile b/arch/s390/kernel/vdso64/Makefile index 15b1ceafc4c1..ddebc26cd949 100644 --- a/arch/s390/kernel/vdso64/Makefile +++ b/arch/s390/kernel/vdso64/Makefile @@ -36,7 +36,7 @@ UBSAN_SANITIZE := n $(obj)/vdso64_wrapper.o : $(obj)/vdso64.so # link rule for the .so file, .lds has to be first -$(obj)/vdso64.so.dbg: $(src)/vdso64.lds $(obj-vdso64) +$(obj)/vdso64.so.dbg: $(src)/vdso64.lds $(obj-vdso64) FORCE $(call if_changed,vdso64ld) # strip rule for the .so file @@ -45,12 +45,12 @@ $(obj)/%.so: $(obj)/%.so.dbg FORCE $(call if_changed,objcopy) # assembly rules for the .S files -$(obj-vdso64): %.o: %.S +$(obj-vdso64): %.o: %.S FORCE $(call if_changed_dep,vdso64as) # actual build commands quiet_cmd_vdso64ld = VDSO64L $@ - cmd_vdso64ld = $(CC) $(c_flags) -Wl,-T $^ -o $@ + cmd_vdso64ld = $(CC) $(c_flags) -Wl,-T $(filter %.lds %.o,$^) -o $@ quiet_cmd_vdso64as = VDSO64A $@ cmd_vdso64as = $(CC) $(a_flags) -c -o $@ $< -- 2.17.1