Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758245AbcCaSr3 (ORCPT ); Thu, 31 Mar 2016 14:47:29 -0400 Received: from e23smtp06.au.ibm.com ([202.81.31.148]:34073 "EHLO e23smtp06.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756404AbcCaSrZ (ORCPT ); Thu, 31 Mar 2016 14:47:25 -0400 X-IBM-Helo: d23dlp03.au.ibm.com X-IBM-MailFrom: naveen.n.rao@linux.vnet.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org;netdev@vger.kernel.org Date: Fri, 1 Apr 2016 00:16:02 +0530 From: "Naveen N. Rao" To: Alexei Starovoitov Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, "David S . Miller" , Ananth N Mavinakayanahalli , Michael Ellerman , Daniel Borkmann , netdev@vger.kernel.org Subject: Re: [PATCH 1/4] samples/bpf: Fix build breakage with map_perf_test_user.c Message-ID: <20160331184602.GC17907@naverao1-tp.ibm.com> References: <922f95fb5d16686367a66d2d4bd176149a87e9ad.1459423412.git.naveen.n.rao@linux.vnet.ibm.com> <56FD61B6.9000102@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <56FD61B6.9000102@fb.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16033118-0021-0000-0000-000003574545 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1577 Lines: 50 On 2016/03/31 10:43AM, Alexei Starovoitov wrote: > On 3/31/16 4:25 AM, Naveen N. Rao wrote: > >Building BPF samples is failing with the below error: > > > >samples/bpf/map_perf_test_user.c: In function ‘main’: > >samples/bpf/map_perf_test_user.c:134:9: error: variable ‘r’ has > >initializer but incomplete type > > struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; > > ^ > >Fix this by including the necessary header file. > > > >Cc: Alexei Starovoitov > >Cc: David S. Miller > >Cc: Ananth N Mavinakayanahalli > >Cc: Michael Ellerman > >Signed-off-by: Naveen N. Rao > >--- > > samples/bpf/map_perf_test_user.c | 1 + > > 1 file changed, 1 insertion(+) > > > >diff --git a/samples/bpf/map_perf_test_user.c b/samples/bpf/map_perf_test_user.c > >index 95af56e..3147377 100644 > >--- a/samples/bpf/map_perf_test_user.c > >+++ b/samples/bpf/map_perf_test_user.c > >@@ -17,6 +17,7 @@ > > #include > > #include > > #include > >+#include > > #include "libbpf.h" > > #include "bpf_load.h" > > It's failing this way on powerpc? Odd. This fails for me on x86_64 too -- RHEL 7.1. > Such hidden header dependency was always puzzling to me. Anyway: > Acked-by: Alexei Starovoitov > > I'm assuming you want this set to go via 'net' tree, so please resubmit > with [PATCH net 1/4] subjects and cc netdev. Sure. > > Reviewing your other patches... Thanks for your review! - Naveen