From patchwork Wed Dec 9 06:31:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 340355 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp4339607jai; Tue, 8 Dec 2020 22:34:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVyAADMsqc9Ez21QtDqPrAFEAE6LbCDqMJq6EVsRa+VzfOPBi+u7zjhfu2336It6HYSnZf X-Received: by 2002:a17:907:4332:: with SMTP id ni2mr820448ejb.422.1607495668750; Tue, 08 Dec 2020 22:34:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607495668; cv=none; d=google.com; s=arc-20160816; b=qSk5GUHLtMEn+HG3b+vSFV/LM6fLauYstKZdF8bTrvLWZeP2ZRznHW2FGCKo4xrMXv fxoHv/M8qLBx97Bbnjajwd4fi/Rv8qE91r9Ug5OrwI729kxvlwIf00rvv/WDZyKZ3fnU VxvT1XCwN2Uy+JyyLvqa0nWTMO75lxV8vJEyhaBtaq0P7BZgQ4PtKNWfmF9tHI1GwStY OQK0OpcAiLUB7dOWCajwi7JnYlOaoaxeoH6HiVW/BjZqM99O6Oo/RF1g519jWU1JX5FS VSsTEkJp4d6WfkcEzAm85ssc+ydYKsqvxxH/tvgYy2FBGY8pijhgzpAFtByZ1hDmudRm Lsrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=hRaEUTDsuL9SUfWQlbaI88xptXt5qTdgtTMRPLn7plg=; b=pYjljJkWV0rcbKZLgYiLG5St11J5T4jJ4BgQ/ESOL1IZ5hxVU/Dsw7q6l2gNgU7EMM c1xPCRldHfzMTmJwhBeXXkZGKBqCNBwPyCblQ7iQCLCqxTAqTej9rrYOZZEIFVO4LrwF xDmxPloiCPELonnSnENUBAtDpU9p8ImIoH1LQL6H0pGK/B1tScq5bC4l0Xd00cYi/MK7 b2aazIGa9Itp3DZHkOHamfFkV5Ek6sscDTQlWD2Bvg9yhOyQEN7i/OZUK82/yuB1b1xx JdtrvPr9QISmFxs/k+gZ+c3uoc7s9afQwZrZKcduGmLuucxAEPPMhMM5ts+av9YAQGfm XJYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k10si332446eds.206.2020.12.08.22.34.28 for ; Tue, 08 Dec 2020 22:34:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727990AbgLIGdU (ORCPT ); Wed, 9 Dec 2020 01:33:20 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:9559 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726102AbgLIGdP (ORCPT ); Wed, 9 Dec 2020 01:33:15 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CrRzD55MFzM2YQ; Wed, 9 Dec 2020 14:31:52 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.9) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Wed, 9 Dec 2020 14:32:22 +0800 From: Zhen Lei To: Stanley Chu , Alim Akhtar , Avri Altman , "James E . J . Bottomley" , "Martin K . Petersen" , Matthias Brugger , linux-scsi , linux-mediatek , linux-arm-kernel , linux-kernel CC: Zhen Lei Subject: [PATCH 1/1] scsi: ufs-mediatek: use correct path to fix compiling error Date: Wed, 9 Dec 2020 14:31:44 +0800 Message-ID: <20201209063144.1840-2-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20201209063144.1840-1-thunder.leizhen@huawei.com> References: <20201209063144.1840-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.174.177.9] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org When the kernel is compiled with allmodconfig, the following error is reported: In file included from drivers/scsi/ufs/ufs-mediatek-trace.h:36:0, from drivers/scsi/ufs/ufs-mediatek.c:28: ./include/trace/define_trace.h:95:42: fatal error: ./ufs-mediatek-trace.h: No such file or directory #include TRACE_INCLUDE(TRACE_INCLUDE_FILE) The comment in include/trace/define_trace.h specifies that: TRACE_INCLUDE_PATH: Note, the path is relative to define_trace.h, not the file including it. Full path names for out of tree modules must be used. So without "CFLAGS_ufs-mediatek.o := -I$(src)", the current directory "." is "include/trace/", the relative path of ufs-mediatek-trace.h is "../../drivers/scsi/ufs/". Fixes: ca1bb061d644 ("scsi: ufs-mediatek: Introduce event_notify implementation") Signed-off-by: Zhen Lei --- drivers/scsi/ufs/ufs-mediatek-trace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.26.0.106.g9fadedd Reviewed-by: Stanley Chu diff --git a/drivers/scsi/ufs/ufs-mediatek-trace.h b/drivers/scsi/ufs/ufs-mediatek-trace.h index fd6f84c1b4e2256..895e82ea6ece551 100644 --- a/drivers/scsi/ufs/ufs-mediatek-trace.h +++ b/drivers/scsi/ufs/ufs-mediatek-trace.h @@ -31,6 +31,6 @@ TRACE_EVENT(ufs_mtk_event, #undef TRACE_INCLUDE_PATH #undef TRACE_INCLUDE_FILE -#define TRACE_INCLUDE_PATH . +#define TRACE_INCLUDE_PATH ../../drivers/scsi/ufs/ #define TRACE_INCLUDE_FILE ufs-mediatek-trace #include