Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4167304ybl; Mon, 26 Aug 2019 06:32:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5lp/q4SSb52SmJdHMJxB39xkHOLM9rXySEFMaKLbepLDCbrq/lEXmTgUP+KZfKXdwkLv7 X-Received: by 2002:a63:f07:: with SMTP id e7mr17230218pgl.238.1566826352027; Mon, 26 Aug 2019 06:32:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566826352; cv=none; d=google.com; s=arc-20160816; b=qYtQlVdJ6GFhnhlwzZWQt8ov+FH3CZU6J4udu6X7XRvFQsh9wRVnfcyFLnINmDxbtX 9etebQeg4t0owxdTD5jd+klS9nUvXfY47x8JY/Hustz5YXAbjNLDzAxuFkL8psjAYwEC TmmodnQb2E2I/Tm8Y7vK5QM0AA1HEYOK2n+KOKBIp9hrTbHn17IXe8Nz90C1LarPL+D5 HXelJHvPxFjeij6yBfd6Z8lF1z32sviOgm0y4mLJXTtnHi7LETDPa2aFut5dwEAmDeBK K8LFbT3hyvOsUCHkwvftkr2y7EhMkv+xCmxW/qiV3XVCkx772Hylo85Xi9zOA2NQoopL j9mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=nPYji+uQmDNPEzsJR/bzarpG8LWXxL9XECPcCXunSJA=; b=RBEgYXWCx3ynEulp2VcWNEfFKf1UMGBoCreUSKOjX363005mPFPNpZTbmLFHfq5lMm RsJOw5EH5uIvqcR36Jb4X36jMypzo9nBpcsXyBA0Y2zv1tHCWINjXqZ9UyXC9ly2Sl6c rfprqgFLVXpRelge9E4hOjOShOeLLTvGAznTT7++UGritrib17KbRBeUT3O48m+f2jnM vwTBEkLw++TkBL/QsYeeEHw3jXCEgdhGdnsl0XK+u8b6ZaOK5y+x7Hti7W0kYN5+1q32 TtAU8rOlxuU/EHScO5oaKGKT0Tsno6SJ4IAcUVeGQ2UD78ePS9/FfCxFO+w3AKlIuqOV EZcw== ARC-Authentication-Results: i=1; mx.google.com; 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 z10si9548879pjp.1.2019.08.26.06.32.16; Mon, 26 Aug 2019 06:32:32 -0700 (PDT) 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; 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 S1730631AbfHZN14 (ORCPT + 99 others); Mon, 26 Aug 2019 09:27:56 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:38178 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727253AbfHZN14 (ORCPT ); Mon, 26 Aug 2019 09:27:56 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id D51777CE6EC814E9F398; Mon, 26 Aug 2019 21:27:52 +0800 (CST) Received: from architecture4.huawei.com (10.140.130.215) by smtp.huawei.com (10.3.19.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 26 Aug 2019 21:27:42 +0800 From: Gao Xiang To: Chao Yu , Greg Kroah-Hartman , CC: LKML , , Stephen Rothwell , Chao Yu , Miao Xie , , Fang Wei , Gao Xiang Subject: [PATCH RESEND] erofs: fix compile warnings when moving out include/trace/events/erofs.h Date: Mon, 26 Aug 2019 21:26:53 +0800 Message-ID: <20190826132653.100731-1-gaoxiang25@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190826132234.96939-1-gaoxiang25@huawei.com> References: <20190826132234.96939-1-gaoxiang25@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.140.130.215] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As Stephon reported [1], many compile warnings are raised when moving out include/trace/events/erofs.h: In file included from include/trace/events/erofs.h:8, from : include/trace/events/erofs.h:28:37: warning: 'struct dentry' declared inside parameter list will not be visible outside of this definition or declaration TP_PROTO(struct inode *dir, struct dentry *dentry, unsigned int flags), ^~~~~~ include/linux/tracepoint.h:233:34: note: in definition of macro '__DECLARE_TRACE' static inline void trace_##name(proto) \ ^~~~~ include/linux/tracepoint.h:396:24: note: in expansion of macro 'PARAMS' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^~~~~~ include/linux/tracepoint.h:532:2: note: in expansion of macro 'DECLARE_TRACE' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~~~~~~~~ include/linux/tracepoint.h:532:22: note: in expansion of macro 'PARAMS' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^~~~~~ include/trace/events/erofs.h:26:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(erofs_lookup, ^~~~~~~~~~~ include/trace/events/erofs.h:28:2: note: in expansion of macro 'TP_PROTO' TP_PROTO(struct inode *dir, struct dentry *dentry, unsigned int flags), ^~~~~~~~ That makes me very confused since most original EROFS tracepoint code was taken from f2fs, and finally I found commit 43c78d88036e ("kbuild: compile-test kernel headers to ensure they are self-contained") It seems these warnings are generated from KERNEL_HEADER_TEST feature and ext4/f2fs tracepoint files were in blacklist. Anyway, let's fix these issues for KERNEL_HEADER_TEST feature instead of adding to blacklist... [1] https://lore.kernel.org/lkml/20190826162432.11100665@canb.auug.org.au/ Reported-by: Stephen Rothwell Signed-off-by: Gao Xiang --- [RESEND] Cc Stephen as well. no change at all... Hi Chao and Greg, It seems the root cause reported by Stephen is the following (sorry for taking some time...) could you kindly review and merge this patch? Thanks, Gao Xiang include/trace/events/erofs.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/trace/events/erofs.h b/include/trace/events/erofs.h index bfb2da9c4eee..d239f39cbc8c 100644 --- a/include/trace/events/erofs.h +++ b/include/trace/events/erofs.h @@ -6,6 +6,9 @@ #define _TRACE_EROFS_H #include +#include + +struct erofs_map_blocks; #define show_dev(dev) MAJOR(dev), MINOR(dev) #define show_dev_nid(entry) show_dev(entry->dev), entry->nid -- 2.17.1