Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3748235pxu; Tue, 8 Dec 2020 22:35:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJwM64nvvebNM+VtA39o4ypuBoWflnreg4oDuHPcpCHpaVfiqFN11QXYdcdc+es/TeiT2SDq X-Received: by 2002:a17:906:958e:: with SMTP id r14mr824451ejx.319.1607495734537; Tue, 08 Dec 2020 22:35:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607495734; cv=none; d=google.com; s=arc-20160816; b=RU4Hu7tSi3hShIz0RgbF7XSgJoUZMmtIvu+jFm/3wBaEy6MbVQXbBIA0B7PLP4vJ5B eifPZ3Xqx1y96ZlmcZ4+LEjyZadz0b/4SisZL9xbFrhWxHMFjRhIYNR8S0yKK3M/5qBI szVMl4zF48cs3Q6HtItcf7OvQXnWzbNUyioAreBoBdIYssntcwWCWHiMudbk+6t+Nzm9 yiY9tuxHnvtxg/GXQgmsRxzWHFqRMuMPu7TDgZ2jip7Ff6qSoVHj8vPHx0TXu3qPuSXK 1lLL4vDQep3tckj9je47SOGDZXG9oefWc104iM9MK6UdFDCHC6AKCmK8xYqlaneGo4Nd tIcQ== 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=Vtza9EFCgCiziod8Z+EhIDiGwAe4AX1SZ0hBftCRPELlLAEiSNrEEcl2duVG80QJa0 SKhAPVEbcdw0Iw2zA2PvnL18+7aYP65i5onhxA8jFWAhQm1BZduy3V+tCt2PWe0QxINN ce1UnRpqPKg95I1+5IjNAOhbXOecvrCPXIBdH4p2lkbic2BT/XB//+dfVujuCgnH7CD2 c7UO0FMF23MC2yUu3Iwt9J3FMWb4ukj5gzkdjP4n0gzDaKOCBj9qFRD5VEPlm+JhOTu3 2yqx0sMXMDAleOBlbt1ve4CFv+D3lf96XjJlchmjt6pMYmcniUaerprYeWczo1hTCOxf TeBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 d13si335463edu.534.2020.12.08.22.35.12; Tue, 08 Dec 2020 22:35:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728023AbgLIGdV (ORCPT + 99 others); Wed, 9 Dec 2020 01:33:21 -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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.174.177.9] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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 -- 2.26.0.106.g9fadedd