Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2690229imj; Mon, 11 Feb 2019 07:04:47 -0800 (PST) X-Google-Smtp-Source: AHgI3IbJNmeXf3WAEeAdPlYytSV7fOBTRmY8bHavkK5SC6vnvYWCIt5m+8jv/0zh5Ig4rMpYckQL X-Received: by 2002:a65:614a:: with SMTP id o10mr7056227pgv.387.1549897487374; Mon, 11 Feb 2019 07:04:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549897487; cv=none; d=google.com; s=arc-20160816; b=bZvH7kQQIj3xkvvAVUZsT2Z0JIsM05iU7tHyZATrU+zuRXqdgzth+m/K6A/brZFXM2 kTvr5A/nAZFG7Qn11SX39eyPv92IgmVUAiJvVXZr+rjuG9d4RYaKbldVVV1MoC7ADmtp cpbThsx1VaVHJb3n+Rv2Fd5dbn8nEOG1+g0N42VV4qnKJylT+v7z/AXQ6xXVtZRoVgKq MUUpwS/hca4ZRGe4VUe+54LrbCoazPHkyrGtPVJLvq1IEqh8VAkXFK0+QkLwkFMQtOmg VffDaEudxjdNGzHDWPmDRIioF6EW/JtRJV8YiD3tUxDLtFNrjNxdpryGXpPHDYgEcsUm qBLg== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ArtfEox3ApvAgGbrNEFJSCVdkjDnDIPAJxg2DqPkQOM=; b=n7EW+KaClE4mFe9d6sPaN64yFTiPluIN8OIKmsBK19wogf+2Q7kCxiD2bIJA/7ndye zjfXhvbwc2gXSU2wENPT9HXVzgTAliVN0wqqu7Bb1m1BEziBHN/XgiE9hhSW8hczFVct dve9hwOWHKdQvU5ZdpmvHyyB73pT7RRDvBKvHwpDG55abLFxi7flBDjtjjFxdj1pEb5l oFuDNdM9IyKA+BriD5nFD1/TwM+PMiA/HgsaGO1x6Y6SpKr+/5I9bgQ+FZlVlIJNemDx pOD2E4zo3pcvKtob5j42ydaa5sbI8cHLCdwDphrTjVykhyBW2XvF7OU/3RRclhZ2iKom AYeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rdcoYsp8; 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 i9si9246026pgs.156.2019.02.11.07.04.29; Mon, 11 Feb 2019 07:04:47 -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=@kernel.org header.s=default header.b=rdcoYsp8; 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 S2390613AbfBKPDW (ORCPT + 99 others); Mon, 11 Feb 2019 10:03:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:51758 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390589AbfBKPDT (ORCPT ); Mon, 11 Feb 2019 10:03:19 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0FED3222B0; Mon, 11 Feb 2019 15:03:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549897398; bh=oM6RimPWdCaN+aTIneenUuPPVTj4mAkGF9j+0ZFPal0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rdcoYsp84SFHxN7iJwJy9uC2F14RT7Lp7Qvs/TEpg6yn78acAZtxdLgS3ef6zHqfc 3jQPcD8fKDYnREtBqQlWSQnvLxlMW1Oz5xnwCg/va+tgmjBIRXcCcOnEJ99VWIcd+y BXv0bn3KAjY7v/xYaPy9SP7JMUWAU83BU81X1Frg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Larry Chen , Andrew Morton , Mark Fasheh , Joel Becker , Junxiao Bi , Joseph Qi , Changwei Ge , Linus Torvalds , Sasha Levin Subject: [PATCH 4.14 149/205] ocfs2: improve ocfs2 Makefile Date: Mon, 11 Feb 2019 15:19:07 +0100 Message-Id: <20190211141838.087868626@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141827.214852402@linuxfoundation.org> References: <20190211141827.214852402@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 9e6aea22802b5684c7e1d69822aeb0844dd01953 ] Included file path was hard-wired in the ocfs2 makefile, which might causes some confusion when compiling ocfs2 as an external module. Say if we compile ocfs2 module as following. cp -r /kernel/tree/fs/ocfs2 /other/dir/ocfs2 cd /other/dir/ocfs2 make -C /path/to/kernel_source M=`pwd` modules Acutally, the compiler wil try to find included file in /kernel/tree/fs/ocfs2, rather than the directory /other/dir/ocfs2. To fix this little bug, we introduce the var $(src) provided by kbuild. $(src) means the absolute path of the running kbuild file. Link: http://lkml.kernel.org/r/20181108085546.15149-1-lchen@suse.com Signed-off-by: Larry Chen Reviewed-by: Andrew Morton Cc: Mark Fasheh Cc: Joel Becker Cc: Junxiao Bi Cc: Joseph Qi Cc: Changwei Ge Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- fs/ocfs2/Makefile | 2 +- fs/ocfs2/dlm/Makefile | 2 +- fs/ocfs2/dlmfs/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/ocfs2/Makefile b/fs/ocfs2/Makefile index 99ee093182cb..cc9b32b9db7c 100644 --- a/fs/ocfs2/Makefile +++ b/fs/ocfs2/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -ccflags-y := -Ifs/ocfs2 +ccflags-y := -I$(src) obj-$(CONFIG_OCFS2_FS) += \ ocfs2.o \ diff --git a/fs/ocfs2/dlm/Makefile b/fs/ocfs2/dlm/Makefile index bd1aab1f49a4..ef2854422a6e 100644 --- a/fs/ocfs2/dlm/Makefile +++ b/fs/ocfs2/dlm/Makefile @@ -1,4 +1,4 @@ -ccflags-y := -Ifs/ocfs2 +ccflags-y := -I$(src)/.. obj-$(CONFIG_OCFS2_FS_O2CB) += ocfs2_dlm.o diff --git a/fs/ocfs2/dlmfs/Makefile b/fs/ocfs2/dlmfs/Makefile index eed3db8c5b49..33431a0296a3 100644 --- a/fs/ocfs2/dlmfs/Makefile +++ b/fs/ocfs2/dlmfs/Makefile @@ -1,4 +1,4 @@ -ccflags-y := -Ifs/ocfs2 +ccflags-y := -I$(src)/.. obj-$(CONFIG_OCFS2_FS) += ocfs2_dlmfs.o -- 2.19.1