Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp435968imu; Fri, 7 Dec 2018 03:35:54 -0800 (PST) X-Google-Smtp-Source: AFSGD/VocTiWOYW1F3D8drnROzodlGeBp7UdzVmmx8dOEjkVoEmIhDzY8qujxiduuOQNg+xmA1RO X-Received: by 2002:a62:1c06:: with SMTP id c6mr1835201pfc.157.1544182554158; Fri, 07 Dec 2018 03:35:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544182554; cv=none; d=google.com; s=arc-20160816; b=YA3nRLjKNPNqMzrMNivdfQlyEvnGmz7bakURS4dS0HVmlQo/gnS5AFV67t6+iCexsX 43CLRvkxrpZcJ7F8y7VN7QZOjgcCBN6Bsxuf1AJIBx8LCsrTWcsF1Uo1gTeNso5VGJTo wXGBDn7OGncR/iJN46NKbltxsbLQP50lhM3VEq48rx3SKOIiVQLldnOwdd+GL5Z/4FCT t51cTAQ9P1cJ0Xf4MzH4BmJEazNe8Ntt5rnR4fpyK25Ro4A2qrQ3XqZ4BCcTv4rYSwOL vs7mpJL6gg7a8yRDG/zJF858o9QlL23zTd1AyAW4hSinw0JDKVwmf7ETlJmTzUfpwxH0 wEYg== 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:dkim-filter; bh=iWKyb7H5Y6sa+fS3ZVKUj+AUMRvSCVfD4O07yhmAYiw=; b=dkEYeIEgMM4OpnJVK+n+fA/N8kUWfonZFy2NE8i5csVGkRtiCwYx4tV6BfpMPweXtl iHyssPEMVZnxeBf8fKohkQiGL43nPiQ7Hp2ZZKM3N5pWOzIIXvjm4JjjYOiOdT7pX/oF D9kvcNpZ0i9IEWoPN7OWzqdG1NK7ZFx4sT/K6YUOX7e+Jr6+aB+i2WaVfNh2rmi+kZ2N wPe8lowcgLetk6z1O4qpLW7Gmd3/97nu0JSB9GoKqvF1DmvHEQOr+XwIkXVGiTj9C9nV NG+ErOmUsvCAJ69O33kbNIbNiBHSRsZGsfxyQ4dclMRtb1CTO6NyZelgl6/a/HP2k22T uTpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=bqdWSyR4; 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 b65si2647747pgc.259.2018.12.07.03.35.39; Fri, 07 Dec 2018 03:35:54 -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=@nifty.com header.s=dec2015msa header.b=bqdWSyR4; 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 S1726150AbeLGLeg (ORCPT + 99 others); Fri, 7 Dec 2018 06:34:36 -0500 Received: from conuserg-08.nifty.com ([210.131.2.75]:45839 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726141AbeLGLef (ORCPT ); Fri, 7 Dec 2018 06:34:35 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id wB7BY6rg020070; Fri, 7 Dec 2018 20:34:09 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com wB7BY6rg020070 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1544182449; bh=iWKyb7H5Y6sa+fS3ZVKUj+AUMRvSCVfD4O07yhmAYiw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bqdWSyR4ct/WJ+ehuhU+WAJQkwtK44msPUli7SjFA8ROLf/az93c6UktZdCt0ZXMY 0Nl+x+PLiyTuT8VMfKfcvDBfqp9+zAYiRDSlhDS6T9wMWlv+EFBFTkGKn1RANPLJRC 9xg1Ov4LGkhWBzoXVyinLT9Kz9zsQ+WpJolntiRkpr2MXaL9zldQ5oX02lS/iXvEW+ EMVdRIzrJIoMO+9iFeE4Jx2YVesCddmJsJmj5iVRPn2KEGTWJd6Tyb2LHM/d0HN0Ua O6jI2s610G3XOnWZancW8nJtwJjpogOZhV1YwWDsVxvdj4q2poEDeprJbiEntOY4RU 8JHvwvR8fzIBA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Michal Simek Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 5/6] microblaze: fix race condition in building boot images Date: Fri, 7 Dec 2018 20:33:56 +0900 Message-Id: <1544182437-26660-6-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1544182437-26660-1-git-send-email-yamada.masahiro@socionext.com> References: <1544182437-26660-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I fixed a race condition in the parallel building of ARM in commit 3939f3345050 ("ARM: 8418/1: add boot image dependencies to not generate invalid images"). I see the same problem for MicroBlaze too. "make -j ARCH=microblaze all linux.bin.ub" results in a broken build because two threads descend into arch/microblaze/boot simultaneously. Add proper dependencies to avoid it. Signed-off-by: Masahiro Yamada --- Changes in v2: None arch/microblaze/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/microblaze/Makefile b/arch/microblaze/Makefile index 180dffa..7b340a3 100644 --- a/arch/microblaze/Makefile +++ b/arch/microblaze/Makefile @@ -83,7 +83,9 @@ archheaders: $(Q)$(MAKE) $(build)=arch/microblaze/kernel/syscalls all PHONY += linux.bin linux.bin.gz linux.bin.ub -linux.bin linux.bin.gz linux.bin.ub: vmlinux +linux.bin.ub linux.bin.gz: linux.bin +linux.bin: vmlinux +linux.bin linux.bin.gz linux.bin.ub: $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ @echo 'Kernel: $(boot)/$@ is ready' ' (#'`cat .version`')' -- 2.7.4