From patchwork Thu Nov 9 07:00:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 118381 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp6237834qgn; Wed, 8 Nov 2017 23:02:34 -0800 (PST) X-Google-Smtp-Source: ABhQp+Q2PBA+yn64qHvBSdtKMGFRM3uGH9PCSjGD98ZR4Er8OBe5oRzXEjUU0+pADVsB3TqNhl1Y X-Received: by 10.98.212.91 with SMTP id u27mr3148391pfl.201.1510210954826; Wed, 08 Nov 2017 23:02:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510210954; cv=none; d=google.com; s=arc-20160816; b=oHFof3MNBKkav2Qhc1k6qc/DU2WZjMlw51phqv0L22o0V3eRUiWtCXj2qg0nowRl5V Wb2w1wqr4t/5zM5wibPjsVYuj6aO+/Uz5hNUp8ku8clZqoiU5I8vtjUNlgk2BdDEpbFm /q9xLHiTEEHbubOHQodGn2r/CXM4Wq8JNeuGvZkO7VmxHegnlrAQ8u/LIhYfnnd+8yKa +aWkGZyxkPtzF70MXTF4P5Pla4G+El+jbwinlyNVZfwF3p0XrEG4veF1D8gYQKH7sdQQ IYvpww2YDCOsxYzEsEaMAOC9h6arN1b6GT4fWggsNBOq6j6udPltPcVA4qIDAmlrW/rL rrLQ== 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=M9etVeMNF2huVeFODi0AYuPjsVgp7aeLwDuRDTQuteo=; b=kJO0Ah/arLPUZtwIrC5bzAy0ixAPkTWpsSOiHM2Kk1Bf69VHk1CeFdNXWpQLjy8BwA f9wY+Q6LoFRCYBXGBhSav9VR/hr1jYpTCgTngqzSvhppYccaPR8duuiO64Vz+ICPZ5Qh ASXzhzIf8mMw4oQsSWyI6hvWtya13JtwAfGagoUNwwW402lVsCzIkchWHPYrQnA3fpHn YXuYjBsLQTnSI3kAcr1e9T7gzs9NAl1TYu9AIH3iPF2x2f4WGVWun5RuB1pErpTeOlgv F7EyWN3cS0HFsaNfopAt2vywK5wSfQa6XmlPnrAh4qK18mTj3JvCifc3Xr49SZiY1bsW y5/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ZuedZ3LM; 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 b21si3831731pfe.291.2017.11.08.23.02.34; Wed, 08 Nov 2017 23:02:34 -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=ZuedZ3LM; 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 S1752627AbdKIHCc (ORCPT + 24 others); Thu, 9 Nov 2017 02:02:32 -0500 Received: from conuserg-09.nifty.com ([210.131.2.76]:16903 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751225AbdKIHCa (ORCPT ); Thu, 9 Nov 2017 02:02:30 -0500 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 vA970uqL021495; Thu, 9 Nov 2017 16:00:57 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com vA970uqL021495 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1510210857; bh=M9etVeMNF2huVeFODi0AYuPjsVgp7aeLwDuRDTQuteo=; h=From:To:Cc:Subject:Date:From; b=ZuedZ3LMQ2Kpf+MnwOUCoRi+s/HIb0n6+2UxTz9fFdi0K48tVEZp5EouuS41aGErr oM7kjU4If1EKHqDIYZgbW+T7d2Xd30ynHPRzAuDiIEcRHLvq2qVTJBp4yQezwHpLiS Yld9fAhnpCk4P9XVMtJIVoyTzwYSUxAf8rFSIxr92AeUXAcVA4Y0H7T6IEE0Y/G3sf NKKN+gyKy074has+CVRsFkxSrHL9pPfbM2JNgu1zf5g2+5Y8MvJ4of57la9k+iEcX6 rrIxWLmaxj3v6/zmYHDLPxDurTuT3tqXIZ/RCNSfF3YA7LMBO5VjhGXw0U0aCOp/8D SZepzu+UcuuuA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: cocci@systeme.lip6.fr, Julia Lawall , Nicolas Palix , Gilles Muller , Masahiro Yamada , linux-kernel@vger.kernel.org, Michal Marek Subject: [PATCH v2] coccinelle: fix parallel build with CHECK=scripts/coccicheck Date: Thu, 9 Nov 2017 16:00:50 +0900 Message-Id: <1510210850-28866-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 The command "make -j8 C=1 CHECK=scripts/coccicheck" produces lots of "coccicheck failed" error messages. I do not know the coccinelle 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 --- Changes in v2: - Grep '-j' instead of '--jobserver-auth'. '--jobserver-*' is not a stable option flag. Make 4.2 change '--jobserver-fds' into '--jobserver-auth' - Add -q option to grep scripts/coccicheck | 3 +++ 1 file changed, 3 insertions(+) -- 2.7.4 diff --git a/scripts/coccicheck b/scripts/coccicheck index 040a8b1..8bab11e 100755 --- a/scripts/coccicheck +++ b/scripts/coccicheck @@ -70,6 +70,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 -q -E '(^| )-j' && USE_JOBS="no" else ONLINE=0 if [ "$KBUILD_EXTMOD" = "" ] ; then