From patchwork Mon Sep 17 03:01:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Levin X-Patchwork-Id: 146825 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3269122ljw; Sun, 16 Sep 2018 20:02:47 -0700 (PDT) X-Google-Smtp-Source: ANB0VdamfkczeyBGttUlz7uKM3AGDZsuQ6GkexAspHDTKCiPUSRlxMKLmwhy9a+nsNnKDdcjajZL X-Received: by 2002:a17:902:d808:: with SMTP id a8-v6mr22885571plz.68.1537153367844; Sun, 16 Sep 2018 20:02:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537153367; cv=none; d=google.com; s=arc-20160816; b=DTcX9Snjo4V6aSZNtEvV0N7S6rwe/jwzaCxyBtUCvq/ZSigbCdrHM0Z+PLTdrkVWcL lwwPd7N0MkB/Bst3DmFBHbGn/WY25s+Km93WfiXvE85XNhqCXWbYVo2Mo5UMkVqYnSI1 8zZHWqmj6KeNsQhWauXoa04OE3pmU1bxRIwVCo/QKQ9e3imTlR56tsuyMzY9U73DFTN6 7v6UtKnnVbzCNJa3qMiZTE7XL1TRz4kIOTvA/ZxAz3WsseOFaJ+X3RTvtcusWn0TQf7i oTwPpS6EEG7qZj1Hmm/j1bTdAsSQlqPpfUBsHjWMBzSOlR6BOZvxp4+viHh+yS9r4ydc T7Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=40EZXziYlPlrJFV7rMzAsBF/USvmDzs+gAtcNDr2CKM=; b=wUAtO5HmU3zq4Mt0M3TLFNpDXSLHhruJKi2Dt8IHn7JY9ns0Flb9l0o2VW+7m3j8tp e61eglEfsyfd36J7G6OQ/f2Pze9LCuSMISoqHjIEKl7lPX+Q05W8IqMu3SSejCOjsm62 2zF6rQDBUXbh8H3TiMmjeK8SYIxd5XnIJySw2c/SEntfVzPJ59NZqpHMaYr2gHN22kFq q6iP7ccFSjCb1m+NiawCdqJhx/lBYK1x0WSNV+K9nplGmRxQqqvCGioJ/RuawO1EQIY3 a9k/8KMOaDBtEmky6Gmy6iHdidAYkeHCPGk4mtcc4AwzUdOwxG2gkQ1L2+2QzucS+1bl wK2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=bFh0JjtF; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a3-v6si12137378pgq.438.2018.09.16.20.02.47; Sun, 16 Sep 2018 20:02:47 -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=@microsoft.com header.s=selector1 header.b=bFh0JjtF; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729544AbeIQI17 (ORCPT + 32 others); Mon, 17 Sep 2018 04:27:59 -0400 Received: from mail-by2nam03on0117.outbound.protection.outlook.com ([104.47.42.117]:22121 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729493AbeIQI16 (ORCPT ); Mon, 17 Sep 2018 04:27:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=40EZXziYlPlrJFV7rMzAsBF/USvmDzs+gAtcNDr2CKM=; b=bFh0JjtFyxS8itQbDsyWl6VOYmOve6sBFk1vHNgS2zVmZPzJlaoIAE7ZVngHrJcWJYw+5W9Ic1D3xhDCEjTGTXvqRahZ2UgIi6/AVjwcRgwtpD2SiMRVGWpony9Hlot98zK1OYQo4sFNGzYg1M211l6D5m2PcGGYVzin8qq9N3A= Received: from CY4PR21MB0776.namprd21.prod.outlook.com (10.173.192.22) by CY4PR21MB0168.namprd21.prod.outlook.com (10.173.192.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1164.12; Mon, 17 Sep 2018 03:02:40 +0000 Received: from CY4PR21MB0776.namprd21.prod.outlook.com ([fe80::54e2:88e0:b622:b36]) by CY4PR21MB0776.namprd21.prod.outlook.com ([fe80::54e2:88e0:b622:b36%5]) with mapi id 15.20.1185.003; Mon, 17 Sep 2018 03:02:40 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Masahiro Yamada , Paul Burton , Kees Cook , Sasha Levin Subject: [PATCH AUTOSEL 4.18 104/136] MIPS: boot: fix build rule of vmlinux.its.S Thread-Topic: [PATCH AUTOSEL 4.18 104/136] MIPS: boot: fix build rule of vmlinux.its.S Thread-Index: AQHUTjK0cLS3e4wxGEGLVeIkhuESDQ== Date: Mon, 17 Sep 2018 03:01:17 +0000 Message-ID: <20180917030006.245495-104-alexander.levin@microsoft.com> References: <20180917030006.245495-1-alexander.levin@microsoft.com> In-Reply-To: <20180917030006.245495-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; CY4PR21MB0168; 6:dlsAe/dPzq4A6WkIFs/Bsy5bEz5zHk/MUWsrQ4d/8l3wzRNewzptOZM20UVyIfCiaDuf0omHrs1OSG3nrIVa3cWUjp00PczXvBi1Kj8ejz/eiw5DMXPzNH78oF5drIK9yAlgnaXf/bUNJNiE3fESjQlsrg/1LGosl1pY1WDIzU18A6BptiXCQBqxy9GjvJcqpDTU2VkVdOCNb3S2P42llizDuXMjPrHnM6ixFYrlWUgLpHt3JRk45HjOfhLC6ZW6iKZ9jb9oAzCeRUoEE98HWRPM5i3qbjXXFZ7sm+XsDK1XugGcLGJz4HvnaF8ylFVwHkJxUVNLBcnBPBiVdGv0ZboWRqefqNQ9AdzetR5SjLJ9zON1is802oe6nPKsJtEuoqLCQMtKjWCUnng0SCWD1Kj7F+Z4R9kyKkX6FDMXEegX/5RIpaTfMdX2TF03eTq3rdwPYgcHYcAIZ5UVGCmX/w==; 5:2PrAWWrL87ZN3P7qvVkhmVAYVRTUwxjC1y8zV7MYwBvsp+l5fjvCJ1vV5+4/bh8VXeECncaMK5IZEl9fM9PcZACD5/N2Cue1ndQ5qsS3jp5mEYFtxZK2tPUXCiS81Z3AEdx/gMPeDuITCOm1WwIZwZv5T0jNzJh1qNTnAP/n+wY=; 7:PHeVdf7vqx+0iPhtlnGTLiRlCUGwsVlvW8sQpZWYyzFTRyuwzcwPZDF3Btx4UyWtKj4lEQMa2G0iNE6/lrYgLRtY101GjD9cNnrDl6B7XLxEh2AbarALjgxaY/OiH/vbFX24yKVU21jYbgN3lyjjpVJghCZh5iI1zYYdnggjatg6w3gzuYsiUyrZmjzb67dXyDkNvXpaW5LefQf4WIbO97Adv/ljSh/n6UI0NBwKaN6pVXOkw0LMM4nyETIlvbBV x-ms-office365-filtering-correlation-id: 118095b9-e590-45e8-78cc-08d61c4a0798 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7193020); SRVR:CY4PR21MB0168; x-ms-traffictypediagnostic: CY4PR21MB0168: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(28532068793085)(89211679590171); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231355)(944501410)(52105095)(2018427008)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123560045)(201708071742011)(7699050)(76991041); SRVR:CY4PR21MB0168; BCL:0; PCL:0; RULEID:; SRVR:CY4PR21MB0168; x-forefront-prvs: 0798146F16 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(376002)(396003)(366004)(39860400002)(346002)(136003)(199004)(189003)(11346002)(4326008)(105586002)(106356001)(486006)(446003)(6436002)(2616005)(22452003)(966005)(107886003)(10090500001)(25786009)(476003)(14454004)(110136005)(54906003)(316002)(2906002)(76176011)(99286004)(36756003)(186003)(26005)(6346003)(5660300001)(7736002)(305945005)(10290500003)(8676002)(81156014)(81166006)(6486002)(68736007)(6666003)(102836004)(6116002)(3846002)(1076002)(53936002)(217873002)(72206003)(97736004)(6506007)(8936002)(86362001)(256004)(6306002)(6512007)(2501003)(5250100002)(2900100001)(478600001)(66066001)(86612001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR21MB0168; H:CY4PR21MB0776.namprd21.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: BUD1wzWl4hBq65wV2FiEYf2zB9slsjPjm3nUoZO8aSpKhhOXFnIO+i2fIUcBPAKLXQzYgbTsNPID5MXdO5FGLq2os7P1JGRfk6C90qduh8xnL4s9Lqfho4yjzacqV5M87JtDKARKoTIWbFLXup5EVZjvBhKf1BcAyEQq0N6NXEmwWDcI6wXdHNK6Aq909OqMjXYbgOEEETN7TIF1xUZJQiDMPwSoE/pUPQW4VjDH3y9cawwq8hTx/PK4U0gLflBJX7XvzQWjXEz4ZLeUUZnz9potRKbS7wOmupRe98aUIbB7CTV1vaRpooNmyrEDZVDSzxe8ALLP8G+hwCEzIYfcOXusVmGyF2YnzLdB/z/HRiY= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 118095b9-e590-45e8-78cc-08d61c4a0798 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Sep 2018 03:01:17.9947 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR21MB0168 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Masahiro Yamada [ Upstream commit 67e09db507db3e1642ddce512a4313d20addd6e5 ] As Documentation/kbuild/makefile.txt says, it is a typical mistake to forget the FORCE prerequisite for the rule invoked by if_changed. Add the FORCE to the prerequisite, but it must be filtered-out from the files passed to the 'cat' command. Because this rule generates .vmlinux.its.S.cmd, vmlinux.its.S must be specified as targets so that the .cmd file is included. Signed-off-by: Masahiro Yamada Patchwork: https://patchwork.linux-mips.org/patch/19097/ Signed-off-by: Paul Burton Cc: Kees Cook Cc: linux-kernel@vger.kernel.org Signed-off-by: Sasha Levin --- arch/mips/boot/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/arch/mips/boot/Makefile b/arch/mips/boot/Makefile index c22da16d67b8..5c7bfa8478e7 100644 --- a/arch/mips/boot/Makefile +++ b/arch/mips/boot/Makefile @@ -118,10 +118,12 @@ ifeq ($(ADDR_BITS),64) itb_addr_cells = 2 endif +targets += vmlinux.its.S + quiet_cmd_its_cat = CAT $@ - cmd_its_cat = cat $^ >$@ + cmd_its_cat = cat $(filter-out $(PHONY), $^) >$@ -$(obj)/vmlinux.its.S: $(addprefix $(srctree)/arch/mips/$(PLATFORM)/,$(ITS_INPUTS)) +$(obj)/vmlinux.its.S: $(addprefix $(srctree)/arch/mips/$(PLATFORM)/,$(ITS_INPUTS)) FORCE $(call if_changed,its_cat) quiet_cmd_cpp_its_S = ITS $@