Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4190190ybl; Mon, 26 Aug 2019 06:54:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwELcOk+LntEUWqXkLpBfn8DqUpYYD/GX4F1YWHwdQxH9ioTLYZmDhE+JJFTjgaSY8KC/qr X-Received: by 2002:a63:2004:: with SMTP id g4mr15772514pgg.97.1566827653032; Mon, 26 Aug 2019 06:54:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566827653; cv=none; d=google.com; s=arc-20160816; b=0wFVjFo/Mj5UCW/4gm+iuwX++Wmdg+NIBXHpIaRixP0u86dhqXBq7kHbHH8SDSkxAD uQTZqDz4pRmZ7qSPjD/yChNlOmifr+oSzN3f7eAkZk+xvwSJSD3zLFvWTPebLLzUuCvh 7CAMDE3WkqmKGI8qUaiC7FR/Rz2LWMX0P6zOOYJQ1ihG85T4xE0I0UPO5Egn+nJNAnEb hJEdf2VnnTbUH9t412r9vpbRXRfn8QU4Wf9VOaeRS0+dnKwEiH74cZY8ZCAnGPEiABqK J5joQYSBQwDkEXDv+3MGXzbZJ1Oe2KBXaBKNpFZOXUNNJgWcxTD8S7ow+Y6s6R/viCyY qofA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=g/bPu+id+wq6/4Ek5CrbTaUzDKsJ3VlISrAsz35ikwY=; b=OMujaLFD8BYuQvDw47Sr04bd07R6mwkMMOMI4XL/cd4ckn9/qiAzrcUXUtaxmekIOg QdnCmDLdComoo2gXH7xkQUr7x7cP4HuZXaP64OqaFUXuYWTS9t+2lpWp2bUzCFSWDnu/ WZKU/fMtxXi/E5lqGQb/TZz3vBPrG/wVAAW5lc6KkoPmTPvHGkiiMfcgFdQBmNj9gd0O JgGZo97QWfKphnS+hqlhCAvp/Ep+rLfeFOLE3QbNPB4UGNKYL+9RlmggfcXtxDrZg20T VWm/6/Ldhj3kvrO9gjnhhQv14fAvn90dNmbcW+ogz5HQo47p/C+rjDj0NYc8Rwds9kDY iTfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DJGGT7qL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bb3si9490941plb.277.2019.08.26.06.53.57; Mon, 26 Aug 2019 06:54:13 -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; dkim=pass header.i=@kernel.org header.s=default header.b=DJGGT7qL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732128AbfHZNvm (ORCPT + 99 others); Mon, 26 Aug 2019 09:51:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:47418 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731873AbfHZNvm (ORCPT ); Mon, 26 Aug 2019 09:51:42 -0400 Received: from [192.168.0.101] (unknown [180.111.132.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4851F217F5; Mon, 26 Aug 2019 13:51:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566827501; bh=wDfyXIBnwA8sKvOUkduyKciiIMqNec9f7nzYXncOUMc=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=DJGGT7qLzAsMVHincMsuYuzSugIWRNFgTdXCKVbUE/dY2fN5cOnVCEwS3orLYNGEC nNiGlrwQY9GsaWDqZy0cMZEH8H9Cyz/3quzgw7+qrLd0ACjLZYzCsaBBx2kUmeEL/H Jh5Ez4MiSnWq6+EJVXHlFucOeaeYohbr4xMhJd1E= Subject: Re: [PATCH RESEND] erofs: fix compile warnings when moving out include/trace/events/erofs.h To: Gao Xiang , Chao Yu , Greg Kroah-Hartman , devel@driverdev.osuosl.org Cc: LKML , linux-erofs@lists.ozlabs.org, Stephen Rothwell , Miao Xie , weidu.du@huawei.com, Fang Wei References: <20190826132234.96939-1-gaoxiang25@huawei.com> <20190826132653.100731-1-gaoxiang25@huawei.com> From: Chao Yu Message-ID: <50c3453c-a1be-3e79-da21-4d4c84d49fec@kernel.org> Date: Mon, 26 Aug 2019 21:51:35 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20190826132653.100731-1-gaoxiang25@huawei.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-8-26 21:26, Gao Xiang wrote: > 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. For f2fs.h, it will be only used by f2fs module, I guess it's okay to let it stay 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 Reviewed-by: Chao Yu Thanks,