Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2491565yba; Fri, 17 May 2019 18:57:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDxLUl6j3Rk1v8K4MCcg2MtbRBy37ye3dMht05p5ujjbq9g5lrjvQ7sYAoEdwecRjBWpuW X-Received: by 2002:a17:902:e40a:: with SMTP id ci10mr12366089plb.195.1558144627455; Fri, 17 May 2019 18:57:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558144627; cv=none; d=google.com; s=arc-20160816; b=wAe10I53thgbQmi5lmdMjR5SQvGKzGSjOxJLkEHLbmyEGzMfbshEOAz0iUtx9Dx4pV 94+TWW4cdVLvcxqnqc16mf02AuOzVDXNTWUq6faPG8JHqWa1HfcpyJzx67ByTVmd1Pjx frbc2QPQah7xwY5021Zl/ws7sPODh2yUEGRza38xDsLN7pBB4/bHOooOENnSUSq0dyEs 1sqUijPCMpEoAVuj5y1mPo7DegsM+e6liebgnWMN3oRhHtH9iTIsCFq3dgFoMETRfZcO WwxGBJbcIctGzwlp7NNwX+PtAs6X6wnsGUxFZFQsemBbhq7lUU/342uHJKNoTlCcHdnZ aQXA== 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:mime-version :message-id:date:subject:cc:to:from; bh=4J/wt/1bRO1VqR+N0Z8RIgw8kt+l268hnuB5sJUEyrg=; b=Izx49R6wjvsnTMWrQDWp5I6wcXtHBLp+3axEBUkG+mCzHzB3hY5833vlhCVkkdKmNm 7oBbAQAPFH7nnPKmnM66dRVzpa1JHGUP7oc3hidGOjBOtSFIBGImwLvWMeCygxWNN5h8 YxcDaDOP8Lb7lIjVQmuU2I+lFXaE/z17keLFHtOXQ+TRMxM63578V9Ya7NZD1OChgIA6 K0bhpZEo69XXrTrVhTBL1+p8AP3mjG//Hj6iU5XpRpFgeIZdAUkiSxGCsh3TNvrw17bW 1Le73upYcTh7wohSMPOcsEtr5W6VhZaBuIAzDs2vzfMA1e8wls7l/TyAf3sz3FKoPj12 Dk+w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si8584393plr.138.2019.05.17.18.56.52; Fri, 17 May 2019 18:57:07 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729163AbfERAqp (ORCPT + 99 others); Fri, 17 May 2019 20:46:45 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54899 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727133AbfERAqp (ORCPT ); Fri, 17 May 2019 20:46:45 -0400 Received: by mail-wm1-f65.google.com with SMTP id i3so8386299wml.4 for ; Fri, 17 May 2019 17:46:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4J/wt/1bRO1VqR+N0Z8RIgw8kt+l268hnuB5sJUEyrg=; b=E7CtGROX0dFb56G+StV6rIlvm0O93EJw0QujEWeDBfH0X5B7bsPGJVsVTcx4GDkLKy PHI2qQ6G8H5AKJwdRIgKoxAUUB92zU1esxAeoRUslVEjVA9TLpZC/M6bHCcWMON6WeHs AFi5zw+paQnGFtVKE8Takmqvekaq5xknplE+1XNni7Z1ydbmvsJ5y4/30EVusKtaa41R UPTRA2gMxXzRZc1Q9d/ARyJ1pf3FarVLJlF/7gjJZJJI6weYMXA6KbL41kXjy6FxiDrB TVjtjBTmpdz/Je9WjTxxWzucAnp4AlIJhLKFIVyNw6xFkAKidZrJdlBWcvjjY8udGrLb Et6g== X-Gm-Message-State: APjAAAXceWV834Hg1NnnzOeyfSAoTaXPJ3YUPxS2qYv31rfMh1ZOXBkf X7LzvROZJBvYSTz20hd9qbomc6x5op4= X-Received: by 2002:a7b:cf1a:: with SMTP id l26mr4094317wmg.18.1558140403006; Fri, 17 May 2019 17:46:43 -0700 (PDT) Received: from raver.teknoraver.net (net-47-53-225-211.cust.vodafonedsl.it. [47.53.225.211]) by smtp.gmail.com with ESMTPSA id f2sm11037959wme.12.2019.05.17.17.46.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 May 2019 17:46:42 -0700 (PDT) From: Matteo Croce To: xdp-newbies@vger.kernel.org, bpf@vger.kernel.org Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann Subject: [PATCH 1/5] samples/bpf: fix test_lru_dist build Date: Sat, 18 May 2019 02:46:35 +0200 Message-Id: <20190518004639.20648-1-mcroce@redhat.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following error by removing a duplicate struct definition: samples/bpf/test_lru_dist.c:39:8: error: redefinition of ‘struct list_head’ 39 | struct list_head { | ^~~~~~~~~ In file included from samples/bpf/test_lru_dist.c:9: ./tools/include/linux/types.h:69:8: note: originally defined here 69 | struct list_head { | ^~~~~~~~~ make[2]: *** [scripts/Makefile.host:92: samples/bpf/test_lru_dist] Error 1 make[1]: *** [Makefile:1763: samples/bpf/] Error 2 Signed-off-by: Matteo Croce --- samples/bpf/test_lru_dist.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/samples/bpf/test_lru_dist.c b/samples/bpf/test_lru_dist.c index eec3e2509ce8..f532b894654b 100644 --- a/samples/bpf/test_lru_dist.c +++ b/samples/bpf/test_lru_dist.c @@ -36,10 +36,6 @@ static int nr_cpus; static unsigned long long *dist_keys; static unsigned int dist_key_counts; -struct list_head { - struct list_head *next, *prev; -}; - static inline void INIT_LIST_HEAD(struct list_head *list) { list->next = list; -- 2.21.0