Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4163923ybl; Mon, 26 Aug 2019 06:29:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqyfdx89VlIGZrHqrTVobKTwK+vps6HpSSWEiFP0iP1HdtA/qWo0qTrGWDf8n7Ga/g0Ps97l X-Received: by 2002:a63:d34c:: with SMTP id u12mr16735058pgi.114.1566826197985; Mon, 26 Aug 2019 06:29:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566826197; cv=none; d=google.com; s=arc-20160816; b=0jXLXUUoTUyDkhd7TrP7OwXKqnDBGKJyAgWcbaxPLBKoWadMw+WT8R9NmG++F7k+n9 TBzzP1QP1H0elyH+ABVR1MMgyIFYVH6R3FSQvWEygxN0H8MdiZMp1xFUdnmximGJOlYW uVefYK4MbHBSjOXdDhLiNqsMDMPuVvj968xoNvOdIDkz7O8YYc2BiYuBkOKL5fSv5Wh2 P/3aHsMrnRqrreGdKF86COY9/8jplAh9YbVJUiqfOWbro0ovYReLM97WwbMEn7hqi/yc /4DqwWPs3JYrhhH6RN5yjSunp1x8dG66c64eT68Z0CActwnWvDxNgUAGYoEDncwK9WcW nEAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=bx0fbCmmAcCdkaTwlMNnfy8KS8kT3H3hMxaaqfaAknw=; b=AvoV6INrWFew9WbU37VHwdugxYBOTSnd6tnkFV/0m+lVjlD41Xld72FW+qPdLucMIt 1EAAuVNScB1EmoOMwt2FcdDVTW/xXZ+zKX1fGSagGf2uTJWphLmR93pPWAwo+Z9oi/8E wMJuy8XG6E1RWt3yZAOg7hPz8Uag/FDgSe4I0oDUADpgxKwRC9y+mxj7BiIwGlTPLvQX FNxZeTQN5ohv7ggKs+3tgldkKAM3h7tyjsL0TuIjsY3vKSSAfCeEWBJt3XBtKBviaOGx M1sOeC2GLLGeB0dChahvXlCOaCPIKI+jmnd9zHg+wuwqUcse4hACvPkMkEZQGpDYJZSL 02cg== 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 g5si9772308plp.435.2019.08.26.06.29.41; Mon, 26 Aug 2019 06:29:57 -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 S1732249AbfHZNXj (ORCPT + 99 others); Mon, 26 Aug 2019 09:23:39 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:33858 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726953AbfHZNXj (ORCPT ); Mon, 26 Aug 2019 09:23:39 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 086A83DE10F13807F273; Mon, 26 Aug 2019 21:23:34 +0800 (CST) Received: from architecture4.huawei.com (10.140.130.215) by smtp.huawei.com (10.3.19.214) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 26 Aug 2019 21:23:26 +0800 From: Gao Xiang To: Chao Yu , Greg Kroah-Hartman , CC: LKML , , "Chao Yu" , Miao Xie , , Fang Wei , Gao Xiang Subject: [PATCH] erofs: fix compile warnings when moving out include/trace/events/erofs.h Date: Mon, 26 Aug 2019 21:22:34 +0800 Message-ID: <20190826132234.96939-1-gaoxiang25@huawei.com> X-Mailer: git-send-email 2.17.1 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 --- 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