Received: by 10.223.164.202 with SMTP id h10csp105353wrb; Wed, 29 Nov 2017 18:01:39 -0800 (PST) X-Google-Smtp-Source: AGs4zMY23eXkeeDyKJC9K6vYPfHlKBAdxnwSkt4NB2idfWuM7HPH3a3gYAWYPEUWql1pEc7KdyLB X-Received: by 10.84.215.207 with SMTP id g15mr862758plj.369.1512007299748; Wed, 29 Nov 2017 18:01:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512007299; cv=none; d=google.com; s=arc-20160816; b=C4U5DffPQ5KC/3PuF63VKqxUsr0odeB2oYQrzbiIPa0Ry/YkS7/t0h5lM5lCIQrFlh 2JiXSkJ6S4nXc1uu7feQHIuQVoaPL3da/1m7o+SWySo3ven3mXl+0BS8+sQ+D2DsgJxB pCkpjTC6RfW8BxSTdiecYOdzLcruUKizjmiwufdI6n+Fr0CfagvTb8cckPP7RMe5kbKn 9DgqQFz3LSzFMuuL3IutuvyXRcSbru2vjl5cDspL8TgEMxjJEtu4BK0VmXkSFxXRSKo0 jbmpUr1ZtqkpGEHyaDw5Ebv3ZdFyeD7okmm28knKW9LjgsG9G/VGyH7mlNaNzfphqrz1 rWJw== 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:arc-authentication-results; bh=9e5scuQkbDn0DsruKEsaAMslCEWasccqhUFveiVww8U=; b=j/jl3ABGkHcblYwhEUB+Q62miSp4G239fLkdLbI7dPC6QfZijSX8zfTzVkBELwG0Bg woFAOAecNfxnTjw+11zN4WAD39WKulkHULfYhEoGoeyW/pJ7FzGCOz5now0OVzUK7USU Dg1dbEeLT1M4AVKLUUGXD9bBRlnWPpb1N+kx7fTkBpd0Axtj2bzeCyKZzstMtXmjcuuW gf1yqsErgrBtfHvTp8orh34BZb07KonOl3mDZUi5yeKKAy+5xc+SSsO8azBF3D3kxVsi IoxH1S45VOym9WRtni+vMXRp31tyJMwkotHMZT1eIg4XywE4y641AIIEHiNfGLrpNIzF yMsg== 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 k184si2183298pgd.173.2017.11.29.18.01.24; Wed, 29 Nov 2017 18:01:39 -0800 (PST) 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 S1753030AbdK3CBN (ORCPT + 99 others); Wed, 29 Nov 2017 21:01:13 -0500 Received: from www62.your-server.de ([213.133.104.62]:54466 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752129AbdK3CBM (ORCPT ); Wed, 29 Nov 2017 21:01:12 -0500 Received: from [194.230.159.120] (helo=localhost.localdomain) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-SHA:256) (Exim 4.85_2) (envelope-from ) id 1eKE9s-0007FZ-9x; Thu, 30 Nov 2017 03:01:00 +0100 Subject: Re: [PATCH resend] trace/xdp: fix compile warning: 'struct bpf_map' declared inside parameter list To: Xie XiuQi , rostedt@goodmis.org, mingo@redhat.com, davem@davemloft.net, brouer@redhat.com Cc: netdev@vger.kernel.org, ast@kernel.org, kstewart@linuxfoundation.org, gregkh@linuxfoundation.org, john.fastabend@gmail.com, linux-kernel@vger.kernel.org, huangdaode@hisilicon.com, Hanjun Guo References: <1512006089-180279-1-git-send-email-xiexiuqi@huawei.com> From: Daniel Borkmann Message-ID: <64ab288d-4951-de96-be24-2dc95e9b15cc@iogearbox.net> Date: Thu, 30 Nov 2017 03:00:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <1512006089-180279-1-git-send-email-xiexiuqi@huawei.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.99.2/24086/Thu Nov 30 02:09:24 2017) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/30/2017 02:41 AM, Xie XiuQi wrote: > We meet this compile warning, which caused by missing bpf.h in xdp.h. > > In file included from ./include/trace/events/xdp.h:10:0, > from ./include/linux/bpf_trace.h:6, > from drivers/net/ethernet/intel/i40e/i40e_txrx.c:29: > ./include/trace/events/xdp.h:93:17: warning: ‘struct bpf_map’ declared inside parameter list will not be visible outside of this definition or declaration > const struct bpf_map *map, u32 map_index), > ^ > ./include/linux/tracepoint.h:187:34: note: in definition of macro ‘__DECLARE_TRACE’ > static inline void trace_##name(proto) \ > ^~~~~ > ./include/linux/tracepoint.h:352:24: note: in expansion of macro ‘PARAMS’ > __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ > ^~~~~~ > ./include/linux/tracepoint.h:477:2: note: in expansion of macro ‘DECLARE_TRACE’ > DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) > ^~~~~~~~~~~~~ > ./include/linux/tracepoint.h:477:22: note: in expansion of macro ‘PARAMS’ > DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) > ^~~~~~ > ./include/trace/events/xdp.h:89:1: note: in expansion of macro ‘DEFINE_EVENT’ > DEFINE_EVENT(xdp_redirect_template, xdp_redirect, > ^~~~~~~~~~~~ > ./include/trace/events/xdp.h:90:2: note: in expansion of macro ‘TP_PROTO’ > TP_PROTO(const struct net_device *dev, > ^~~~~~~~ > ./include/trace/events/xdp.h:93:17: warning: ‘struct bpf_map’ declared inside parameter list will not be visible outside of this definition or declaration > const struct bpf_map *map, u32 map_index), > ^ > ./include/linux/tracepoint.h:203:38: note: in definition of macro ‘__DECLARE_TRACE’ > register_trace_##name(void (*probe)(data_proto), void *data) \ > ^~~~~~~~~~ > ./include/linux/tracepoint.h:354:4: note: in expansion of macro ‘PARAMS’ > PARAMS(void *__data, proto), \ > ^~~~~~ > > Reported-by: Huang Daode > Cc: Hanjun Guo > Fixes: 8d3b778ff544 ("xdp: tracepoint xdp_redirect also need a map argument") > Signed-off-by: Xie XiuQi > Acked-by: Jesper Dangaard Brouer > Acked-by: Steven Rostedt (VMware) Applied to bpf tree, thanks Xie! From 1585453252089034924@xxx Thu Nov 30 01:40:46 +0000 2017 X-GM-THRID: 1585453252089034924 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread