From patchwork Thu Oct 26 04:56:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 117169 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp341590qgn; Wed, 25 Oct 2017 21:58:08 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RfE44XG1NeRE035fCiyHNZ0s8+qxfcu+eO9iPSX7p0ffn39o/e7eWnGQy1bnxLFk/65iPU X-Received: by 10.98.204.150 with SMTP id j22mr4336235pfk.3.1508993888587; Wed, 25 Oct 2017 21:58:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508993888; cv=none; d=google.com; s=arc-20160816; b=mM+qym0KK6T5MkPrr2YmRr5wpuSQoL2I1g/vRFb7sprLqHr2qcpuz6q6zptBIcr9Aq G9vEwCKg98Pun2p8KBAmQigpTCfkW4TQNoB7mBOT6g9sIJ0/E/gQI/8PcSFwumxK14AA ZZasp9WgSzps/l/CvpTAsSJTess3XgZG7g781dVzHAiTfx4VVxXlCuHVfbp6KsTkhAIc 5seyW9YU0KaEarTqeGACvZc7oseVMYh9p8eJPstVDjSq2jV5W30K/PN1FID1H6TaxDu6 wa357uGgpj/cg5CJjb94DPQmJIeQRCnWwCwhIHO9PEG0lyZKL2XHXsDaOQH9s40+F7fh sR6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=BzpRtyXFmTRyGoeAUQUZevn20DJKPRxjzxS36xXLrDo=; b=dS5cQ3Gng11gPs0qTBETczt2la9B7gKlwhCOQls6GS2iv4QcmJMUOCHcd7ec4//mjY 0f8QUWvvP/qWp+Qae1I6kLrSlc0UwpnIg07Fh4hVQGDzaU0AFl1Q/R743h8e4Y9VMq6O 6HLFmdmciM68Yx5U1oQybQ5CWH26aDr0I48EZGuG6i0YrdhrfcAw2e/OLaYG9Ua+Rkqs Wzusz5T2eqE8b+4vcK8LB6JpgjstS5T9Hs94aFMRiprBg2xcna6XQ07VbW30VQtwqE1d Rohkx3mFVTkCk9pMpdQuZK8QXkbxpe1e6g5q9CV+UcY6vdyi9hWs4mwG1Ai/JgDfJRzW iHgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Kz+pLIto; 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 z191si2796127pgd.131.2017.10.25.21.58.08; Wed, 25 Oct 2017 21:58: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=Kz+pLIto; 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 S1752056AbdJZE6G (ORCPT + 27 others); Thu, 26 Oct 2017 00:58:06 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:35089 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751997AbdJZE6E (ORCPT ); Thu, 26 Oct 2017 00:58:04 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id v9Q4v7Wd005142; Thu, 26 Oct 2017 13:57:07 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com v9Q4v7Wd005142 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1508993828; bh=BzpRtyXFmTRyGoeAUQUZevn20DJKPRxjzxS36xXLrDo=; h=From:To:Cc:Subject:Date:From; b=Kz+pLItoj2FmNVmX5ulZivYY+TA39QHpwVszLPpHlhFszivhTYIwshlY4GFHzHWEb sBLspgv22x4woWY1jRZTFJxOtdaJ1IRnj9RaMkESE3OcI2TctMqvJvICPGiJdLNh2O UtVpBqZJbUPdhrjPBqa6buwZ56h/gsORs4y71RGYdjKNGC1BHfI6my7HV/SEY4rE2H tSgP3mg0jLi4A9ahYduCHMbXJbX7sdXd7u9nZmVAJHpxuNI/KLMkZQvn0mMMgpIhDK Z0CklmE1JmOzQJzDwhuFtX9BDGrbwsHPHOJjIlbFfXHQ058uLEJW93s7vUHEZypPnV Wy1C9AA+Pijjw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: cocci@systeme.lip6.fr, linux-kbuild@vger.kernel.org, Julia Lawall Cc: Masahiro Yamada , Nicolas Palix , linux-kernel@vger.kernel.org, Gilles Muller , Michal Marek Subject: [RFC PATCH] coccinelle: fix parallel build with CHECK=scripts/coccicheck Date: Thu, 26 Oct 2017 13:56:46 +0900 Message-Id: <1508993806-17320-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If I run the following: $ make -j8 C=1 CHECK=scripts/coccicheck lots of "coccicheck failed" messages are displayed. I do not know the coccinell internals, but I guess --jobs does not work well if spatch is invoked from Make running in parallel. Disable --jobs in this case. Signed-off-by: Masahiro Yamada --- scripts/coccicheck | 3 +++ 1 file changed, 3 insertions(+) -- 2.7.4 diff --git a/scripts/coccicheck b/scripts/coccicheck index 9d18662..b74c789 100755 --- a/scripts/coccicheck +++ b/scripts/coccicheck @@ -69,6 +69,9 @@ if [ "$C" = "1" -o "$C" = "2" ]; then # Take only the last argument, which is the C file to test shift $(( $# - 1 )) OPTIONS="$COCCIINCLUDE $1" + + # --jobs does not work if Make is running in parallel + echo $MAKEFLAGS | grep "\-\-jobserver-auth" && USE_JOBS="no" else ONLINE=0 if [ "$KBUILD_EXTMOD" = "" ] ; then