Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2243930ioo; Mon, 23 May 2022 13:42:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJ5l4sswvuWy80Rrj+nRYJQA2y6oHyCrLeQNGKwKOkBPKgGnaaNlPFWsATKxp5yRSGQWfm X-Received: by 2002:a17:906:4795:b0:6fe:69f4:bcb3 with SMTP id cw21-20020a170906479500b006fe69f4bcb3mr22379405ejc.526.1653338528555; Mon, 23 May 2022 13:42:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653338528; cv=none; d=google.com; s=arc-20160816; b=EVkcq2rvSIRpAllB32KuzPWR1y+KkBx49TAjJ8zSEZZLwHarJ6NvDsIchJb6NSfX3/ /UyYt5LR0qSEKuvoLgfm6KuTJMIP7mEgPFZkQTHNxYCjLlEdD8Utwz/FjPpiIRQzjiQu 8Pw93Oku4YnD6K4I/nwiZssfdqTGnFKsF7RQBWpm4GehF5AUW/8xf4bBTLij0TWSgwTy aAqRaVYQsmHIHS4Ik7idCIIKi3+Y92Q1nc4ubr46qZUb/DOCiv/z95iUwNqXdYsbfBsw HcSQ4BnGQAFpOJBVAkzESoUok7/dGMJQfPKHY0TB33oge0X8QeY33BNm22i7jfhV3B6s PHCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=rdaOtEJzlEI4rkC5/eExmfsw3plPJUfdC5HwNnDdrl8=; b=jtTBjkRQe1IjXOloibF4jQ1+T+jL4ZMPC8pfdMyLcpwbeOilY2guRSnzszS5rendVQ 7pHq2YniiQDA8ML/1k6mJqXMfcRVfWq4mowFa6Iko3L67fYcDvR+QcF8Zg5JER8Hr0f+ S8hfsWiEQ2pxK1xvA3K2O5WTFf1mRIffUdONgKY6blj5X8nEq4fVWgbqmwJDagpL2l3K Og09AMoMmk03vltPBPTd/yV3eiYrB3d5UVPRmzozwOWL0Y06/Q2Kn7XSwsxEVSPJc/wT wSvVzRfn605yBYoMWN9uM+BWKAyJE2T9vHuib5iX6UgzaWHTX2+3RAB+VrgufEC6Ztt1 +qag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ls+NfBeW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr39-20020a1709073fa700b006e86c3056c2si17796689ejc.33.2022.05.23.13.41.41; Mon, 23 May 2022 13:42:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ls+NfBeW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231630AbiEWTnZ (ORCPT + 99 others); Mon, 23 May 2022 15:43:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234307AbiEWTm3 (ORCPT ); Mon, 23 May 2022 15:42:29 -0400 Received: from mail-vs1-xe2a.google.com (mail-vs1-xe2a.google.com [IPv6:2607:f8b0:4864:20::e2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9A682FFFC; Mon, 23 May 2022 12:39:52 -0700 (PDT) Received: by mail-vs1-xe2a.google.com with SMTP id h5so8134989vsq.5; Mon, 23 May 2022 12:39:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rdaOtEJzlEI4rkC5/eExmfsw3plPJUfdC5HwNnDdrl8=; b=ls+NfBeWK6+RxG8ca3EQRNTT3yplKi3fChJbujgJK3CbJJDIoJPHk4Ev2xPWMfQ3UQ 4/3OhdIsuwT2+wTRoCDZIVGul70Iv2hTQHHRBNW0qqWIQrvdJf0OeDCH/xOr2DmGz9I/ ZG7oDy5uZpNdDM6p3D/WL/jWOfRF21NDIHlg3rzRJxZjHPkrdmZbMWT8FYMoGzGnkdsd hYQr3w1DJETirktof+iE4+F2Y82LwoRI+4bQ2v7TEnfnimu3lE0kVJRQbtDAEfx4vp/8 PKZuuJV5Jvdsl0iiULvkfE6cB8RkoVrr3nlFVPiEjpiXwKrXrzeMvGTTULrXKheM4PXY eIJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rdaOtEJzlEI4rkC5/eExmfsw3plPJUfdC5HwNnDdrl8=; b=g1HbdD7jjK35ESo6RkbLQUVaZ+ZHOqqp6nOMPlWNjk7rZ/lciEXNHmkd2vgoyY6H92 bQvMsmGmudN+fMUg/tzOXzPBx50Z1KJHGAZEqOJuGjWPXPwU4Pk38gGeWIxzHp7YOJva Ug8YMf3FDrtbaaRtk6936Uc1zMa3n1OilgPLersXU2bRqYlaVYTiAJrt25QWSnLXgqgh nUgSOGCdyGU3ejQTo8G0EnLXJJ2Lj/fphvHTHhJdV8F9QDuCtmNpXqHR31TriEy/3xin bb2LXXxP+fW1hKorYZNt1dJwX2pH2C6+g6dojc1VjBMyZewGAeduGvO/VWF2cedueTqA fBNg== X-Gm-Message-State: AOAM531xFPzzj/tGuTPC/co5hljve2bQ3bZoT963T0FplTUmSVmTdmdm 940B+pWgtpftNBYhCOrkKWaXcV27zpKgq8gIF13iA8i45N4= X-Received: by 2002:a05:6102:4b6:b0:335:f244:2286 with SMTP id r22-20020a05610204b600b00335f2442286mr7503887vsa.54.1653334792037; Mon, 23 May 2022 12:39:52 -0700 (PDT) MIME-Version: 1.0 References: <20220521000921.8337-1-ruijian63@gmail.com> In-Reply-To: <20220521000921.8337-1-ruijian63@gmail.com> From: Andrii Nakryiko Date: Mon, 23 May 2022 12:39:41 -0700 Message-ID: Subject: Re: [PATCH] samples: fix compile failure error To: Ruijian Li Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin Lau , Song Liu , Yonghong Song , john fastabend , KP Singh , Networking , bpf , open list , 798073189@qq.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 20, 2022 at 5:09 PM Ruijian Li wrote: > > Because compile samples/bpf/test_lru_dist failure, I remove the > declaration of the struct list_head. > > Signed-off-by: Ruijian Li > --- > 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 75e877853596..dd7eb470653b 100644 > --- a/samples/bpf/test_lru_dist.c > +++ b/samples/bpf/test_lru_dist.c > @@ -33,10 +33,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; > -}; > - this struct is used right there one line below, how removing it fixes compilation issues? What was the error in the first place? Did you run `make headers_install` before building samples/bpf? Please provide a bit more information. > static inline void INIT_LIST_HEAD(struct list_head *list) > { > list->next = list; > -- > 2.32.0 >