From patchwork Thu Nov 8 19:41:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Borislav Petkov X-Patchwork-Id: 10674935 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 49E8B15A6 for ; Thu, 8 Nov 2018 19:41:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 381262E412 for ; Thu, 8 Nov 2018 19:41:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2C3492E450; Thu, 8 Nov 2018 19:41:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A67E02E492 for ; Thu, 8 Nov 2018 19:41:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=on31RXLv3bLY3CYcWC3vOKkTS2Uk83EMC7LUvd5ujHs=; b=jni00j9EeMWiiD BXL3dZ+QQ5EKG7e5Ff/W4gJe96d7iW/Bv/Xf9A1XM74isxfdENAdOn2iauK/2AIX8g0IYRJmazZSN KYdg+c0QkE25U/SocTlDZ1ucI7OjK/Kv7jpa95BSmV1EvyxTGqDUmJDO+bPWSxWqadv6Uk6I7EouG FiMXPq8oANMBj7lKsGx85pFThDpYWbEiHY9knCzTlWy20bovqj8VAMAqOgQmED4MUOn9wChWELEbA Qn+JmRx6TcXzTxLY/NosuB4h+EiUygQ0lBE/BjKBKl+gu51bkG8UHn+qPFknWf0N6J59TpRhXP2yX EfWgwpBRKQv6QeW7Pqqw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKqBb-0008Jc-Ax; Thu, 08 Nov 2018 19:41:51 +0000 Received: from mail.skyhub.de ([2a01:4f8:190:11c2::b:1457]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKqBY-0008Ix-Pv for linux-arm-kernel@lists.infradead.org; Thu, 08 Nov 2018 19:41:50 +0000 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 7psjOG2r6ZMX; Thu, 8 Nov 2018 20:41:36 +0100 (CET) Received: from zn.tnic (p200300EC2BD03D00329C23FFFEA6A903.dip0.t-ipconnect.de [IPv6:2003:ec:2bd0:3d00:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 1FBB11EC02D1; Thu, 8 Nov 2018 20:41:36 +0100 (CET) From: Borislav Petkov To: X86 ML Subject: [PATCH] locking/atomics: Fix out-of-tree build Date: Thu, 8 Nov 2018 20:41:28 +0100 Message-Id: <20181108194128.13368-1-bp@alien8.de> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181108_114148_996157_729F703B X-CRM114-Status: GOOD ( 11.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , linuxdrivers@attotech.com, arnd@arndb.de, Peter Zijlstra , catalin.marinas@arm.com, Boqun Feng , Will Deacon , LKML , glider@google.com, linux-arm-kernel@lists.infradead.org, aryabinin@virtuozzo.com, Ingo Molnar , dvyukov@google.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Borislav Petkov Building a kernel out of tree with: make O=/tmp/b oldconfig cd /tmp/b make gives this: CALL /mnt/kernel/kernel/linux/scripts/atomic/check-atomics.sh /bin/bash: scripts/atomic/check-atomics.sh: No such file or directory make[3]: *** [/mnt/kernel/kernel/linux/./Kbuild:86: old-atomics] Error 127 make[3]: *** Waiting for unfinished jobs.... Make the command use the proper build prerequisite which is the absolute path to the script. Fixes: 8d32588077bd ("locking/atomics: Check generated headers are up-to-date") Signed-off-by: Borislav Petkov Cc: arnd@arndb.de Cc: aryabinin@virtuozzo.com Cc: Boqun Feng Cc: catalin.marinas@arm.com Cc: dvyukov@google.com Cc: glider@google.com Cc: Ingo Molnar Cc: linux-arm-kernel@lists.infradead.org Cc: linuxdrivers@attotech.com Cc: Mark Rutland Cc: Peter Zijlstra (Intel) Cc: Will Deacon --- Kbuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kbuild b/Kbuild index 47c9fe175bd9..780048056ac5 100644 --- a/Kbuild +++ b/Kbuild @@ -80,7 +80,7 @@ always += old-atomics targets += old-atomics quiet_cmd_atomics = CALL $< - cmd_atomics = $(CONFIG_SHELL) scripts/atomic/check-atomics.sh + cmd_atomics = $(CONFIG_SHELL) $< old-atomics: scripts/atomic/check-atomics.sh FORCE $(call cmd,atomics)