Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2039028imm; Mon, 16 Jul 2018 00:39:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfN/jV3AQyAoenW/KLBf03R1g36ufrDJ0gIlaUB4xDjEmnoiZ6wwA+UIDuXIrtWtFJNlnKV X-Received: by 2002:aa7:808f:: with SMTP id v15-v6mr17062045pff.38.1531726788345; Mon, 16 Jul 2018 00:39:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531726788; cv=none; d=google.com; s=arc-20160816; b=zVZv2PiMvUus+aT4ZTe/KpXapGQyGroSK2Ufik8VQ1HG0+392Ijo3zlth4aNXEvMZy NO5j6OlZfpAi+mWfABVkvwEPXqrzVqJkPSbw1l51Y0t/ceywJUih2PlXEvutmiEkZ058 iHOEGsvXBJkSiXmNh49SXZIayUnoI0yM8MjPF8HlXcWPtpXn2v4MGKsNOPLVtJtxF5XR Z09fTkzBTjVRHke3ui6gIczJcA4AY5oq1Cp9hQkVhDmj0+W7egsKEwPLTb3FUoh3y7lm kOzWpuHnmpcGbs/YhqdZQahXHNxq1HeTHquP7mrEqKrqUgWWDgn/sS0t3hEXSTTMoLQu 8tiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=v4pSAQGlSs/tFWvmm31zltulytdVblUseeFKhzFQSjw=; b=Z7VbxiIUnC5IbQoIrbtTIjnLH77rgvMgl1cVelg3GTzCtGaVpY6zvGJd5t/8zSKbKq yCF8O4q31FPcDwHmlt4GN2a1zDofJKuQULV596QCmiZIxqYFMtS92KonX+rdlwbnGQDC FYxZbNb8AAsA0156HYLhnZERVOZwxnJeQ9EOJpCmogggetQlQ/ZTtbNej0K6SCxeeoS4 J2krSHhF2ocWNQ9ecD66F9heZ8HJGQ1E7kgkmjReRI6PED82dKb0YXOrZYvMStf5HkPG s9nEpmydfWLGSUprlCqegl3/oEBoaFGysdm4Wz2jJZJT7J+/N3Qu+Jpah/tGptdfkINT +IzA== ARC-Authentication-Results: i=1; mx.google.com; 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 b2-v6si4358546plk.111.2018.07.16.00.39.33; Mon, 16 Jul 2018 00:39:48 -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; 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 S1733043AbeGPIEg (ORCPT + 99 others); Mon, 16 Jul 2018 04:04:36 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:46944 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732677AbeGPIEg (ORCPT ); Mon, 16 Jul 2018 04:04:36 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 81080CA1; Mon, 16 Jul 2018 07:38:34 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Philipp Rudo , Dave Young , Ingo Molnar , Thomas Gleixner , Andrew Morton , Linus Torvalds Subject: [PATCH 4.17 37/67] x86/purgatory: add missing FORCE to Makefile target Date: Mon, 16 Jul 2018 09:35:06 +0200 Message-Id: <20180716073448.956852449@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180716073443.294323458@linuxfoundation.org> References: <20180716073443.294323458@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Philipp Rudo commit fa8cbda88db12e632a8987c94b66f5caf25bcec4 upstream. - Build the kernel without the fix - Add some flag to the purgatories KBUILD_CFLAGS,I used -fno-asynchronous-unwind-tables - Re-build the kernel When you look at makes output you see that sha256.o is not re-build in the last step. Also readelf -S still shows the .eh_frame section for sha256.o. With the fix sha256.o is rebuilt in the last step. Without FORCE make does not detect changes only made to the command line options. So object files might not be re-built even when they should be. Fix this by adding FORCE where it is missing. Link: http://lkml.kernel.org/r/20180704110044.29279-2-prudo@linux.ibm.com Fixes: df6f2801f511 ("kernel/kexec_file.c: move purgatories sha256 to common code") Signed-off-by: Philipp Rudo Acked-by: Dave Young Cc: Ingo Molnar Cc: Thomas Gleixner Cc: [4.17+] Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- arch/x86/purgatory/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/purgatory/Makefile +++ b/arch/x86/purgatory/Makefile @@ -6,7 +6,7 @@ purgatory-y := purgatory.o stack.o setup targets += $(purgatory-y) PURGATORY_OBJS = $(addprefix $(obj)/,$(purgatory-y)) -$(obj)/sha256.o: $(srctree)/lib/sha256.c +$(obj)/sha256.o: $(srctree)/lib/sha256.c FORCE $(call if_changed_rule,cc_o_c) LDFLAGS_purgatory.ro := -e purgatory_start -r --no-undefined -nostdlib -z nodefaultlib