Received: by 10.213.65.68 with SMTP id h4csp211506imn; Fri, 6 Apr 2018 19:46:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx49Pu798giPnz9CASjpqDpCAQI2Wmf2Pt0R+S7huniabVXO2QdpUaTVjJ8wzjErACwujVMD2 X-Received: by 10.99.167.6 with SMTP id d6mr18807834pgf.287.1523069169114; Fri, 06 Apr 2018 19:46:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523069169; cv=none; d=google.com; s=arc-20160816; b=SlHFlanZGY/hZGpTjcNCGAfmWjcPDN9d9Zf81thqIVayGnRfOVGocrqRBC0yJ/Thy7 eo9yTCkxlgD+ETa2t9l4tGRl0VhnZoq9nk+mf0ne+uCe8MCDA5KxnFRf6VHxS0pq2tVd PcG52RsX9IVG47nMjyVe3DiQky3Sp5FRu2icNllfCczvHX8FBxGdGT8h168B8or7zzH6 peozJEEZbuEZEbIsEI7Ygaub3by4Q/h65z9eq8+N1aE9Pyw9R0CVr0xsnjxarPvZIScq 9Mh/eHApcVGOrmL+wj5xDYEM4AEauprkd6k5WrNZlgWFaf42W5YMdFEYMe6OWp3EtvVH 2Rtw== 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:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:dkim-filter:arc-authentication-results; bh=s3qgvl9Ml3Qv92qfAoNZiESr2skx5WxHm4ZRXvdDdwA=; b=paJKTxKsLam1bLj7rA+lzCtD5fwmDwwC8KjUClc3XVamIM5iNJ3mJcNE4gVvyTlDDW AN3z/Xh7RoKohpAv2+x50ax7fmVeDXn8cAlBxp6wP27ESZ0le3tV984htlepAFnyd8he C5IlbgxQjsVuXJis3SnH5wP0N71I5Cb0UoMUkdMvFtjGQfIwxGztq3L8cgqpraGoRR6o P81WzVsIoyPudiVvZLROI7yTwVEIpFoEfOopRR0DcuXuuopeIp531hYlzpuQ3ei1nxj/ CoW0IFPUcWiuNXIL7bVV2wXLaTjTJ0L0NC4b6MWoKKNh5x/P1PHnLfCV9zs1UygwT84b wRaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=dTckob8z; 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 m5si6955557pfh.27.2018.04.06.19.45.32; Fri, 06 Apr 2018 19:46:08 -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=@nifty.com header.s=dec2015msa header.b=dTckob8z; 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 S1752125AbeDGCkU (ORCPT + 99 others); Fri, 6 Apr 2018 22:40:20 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:23847 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751447AbeDGCkT (ORCPT ); Fri, 6 Apr 2018 22:40:19 -0400 Received: from mail-ua0-f182.google.com (mail-ua0-f182.google.com [209.85.217.182]) (authenticated) by conssluserg-02.nifty.com with ESMTP id w372eFwT022761 for ; Sat, 7 Apr 2018 11:40:15 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com w372eFwT022761 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1523068815; bh=s3qgvl9Ml3Qv92qfAoNZiESr2skx5WxHm4ZRXvdDdwA=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=dTckob8zFo1sfIxP2SFraFcBuo7TAAwu9CfKlCQp4OUtX+jc6GEcy+rfwCUQZpiCt xrv8u463n3Ro2/rSYv/VWPogJ/bTCNzqsAle/+LqaJahXBJ41g3d4bIgKACdncf7NL r0ti+hoAD3L+TFyQrFAdaa5MF7allN7oPhCIi9YAESLz+34e5zzjO8acKKrYR3bnT0 MbGp++6Q1DVXuYBMPfNzTEJckT5zxYEHpcYs2/KqQIgt2pIMrK/EwhJeNMNSKs7Vv+ BXHfSp655/0+OpBEND+kr6D7E3rxotW5YgTMyIcJmrLXZpfGVMftSzlF6VgVypjhMe du4A0HFs1w1iQ== X-Nifty-SrcIP: [209.85.217.182] Received: by mail-ua0-f182.google.com with SMTP id q12so1864899uae.4 for ; Fri, 06 Apr 2018 19:40:15 -0700 (PDT) X-Gm-Message-State: ALQs6tDMoCEWjqk2p1adQq4uCKr2B1tLJH6v7PfZRyyZQO4iMCdZfwmt 7g7WeaAldGuvCJxeLvWAh9dTpzTH2yXGgYuaVag= X-Received: by 10.176.18.70 with SMTP id s6mr17494366uac.144.1523068814405; Fri, 06 Apr 2018 19:40:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.29.150 with HTTP; Fri, 6 Apr 2018 19:39:34 -0700 (PDT) In-Reply-To: <20180406130030.745-1-anders.roxell@linaro.org> References: <20180406130030.745-1-anders.roxell@linaro.org> From: Masahiro Yamada Date: Sat, 7 Apr 2018 11:39:34 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drivers/memory: can't open emif-asm-offsets.s for writing To: Anders Roxell Cc: Tony Lindgren , d-gerlach@ti.com, santosh shilimkar , Russell King , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-04-06 22:00 GMT+09:00 Anders Roxell : > Build failes due to that the directory isn't created before we execute > the build rule. > cc1: fatal error: can=E2=80=99t open =E2=80=98drivers/memory/emif-asm-off= sets.s=E2=80=99 for > writing: No such file or directory compilation terminated. > drivers/memory/Makefile.asm-offsets:2: recipe for target 'drivers/memory/= emif-asm-offsets.s' failed > make[2]: *** [drivers/memory/emif-asm-offsets.s] Error 1 > Makefile:1060: recipe for target > 'arch/arm/mach-omap2' failed > make[1]: *** [arch/arm/mach-omap2] Error 2 > make[1]: *** Waiting for unfinished jobs.... > > Current code adds a file check before checking the dependency, in > filechk it does mkdir -p $(dir $@). > > Fixes: 41d9d44d7258 ("ARM: OMAP2+: pm33xx-core: Add platform code needed = for PM") > Signed-off-by: Anders Roxell > --- > drivers/memory/Makefile.asm-offsets | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/memory/Makefile.asm-offsets b/drivers/memory/Makefil= e.asm-offsets > index 843ff60ccb5a..70d44a9ed32a 100644 > --- a/drivers/memory/Makefile.asm-offsets > +++ b/drivers/memory/Makefile.asm-offsets > @@ -1,4 +1,5 @@ > drivers/memory/emif-asm-offsets.s: drivers/memory/emif-asm-offsets.c > + $(call filechk,$@) > $(call if_changed_dep,cc_s_c) > > include/generated/ti-emif-asm-offsets.h: drivers/memory/emif-asm-offsets= .s FORCE > -- > 2.16.3 Why filechk just for creating a directory? $(Q)mkdir $(dir $@) is enough, but still this is a bad fix. Generating the same object from different directories is fragile in parallel building. --=20 Best Regards Masahiro Yamada