Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp455693ioo; Sat, 21 May 2022 04:18:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNjSAVCljLQGHrBiyIbd9FCC/QXAnfEn82VCgGY1vISVrxxkWDvIdwc64PoveO4b4famzI X-Received: by 2002:a17:907:3e0f:b0:6f4:5cfd:e6bb with SMTP id hp15-20020a1709073e0f00b006f45cfde6bbmr12638871ejc.38.1653131913700; Sat, 21 May 2022 04:18:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653131913; cv=none; d=google.com; s=arc-20160816; b=S3EvH13YreQD89che5vCw8wKv7y6i2qmqZOCCOjb7BCWqyOky1p7ZMTWIVYHognxph EGls3Bso3zh+Ns6lfNcflmjg3p6RZkAkLQh0ZazSDVCvsCiBL8C3hlCc3cr2hUqpuA/x oN2fSR8PZ9xlYtnkb/pEOnTpLCT1dTGzkwNkxffhRW/6/6X2L4BYarpyUS22ZBgSRfHr QDF9Vy1rsqwCOEWkzPxz4x2pIOy6JSXsb8iaEBarpp3aX5Mx3VJMhEucw5FIjgwdCcDZ bBOcGSxmEVgWbTe3zP1eC7YBhODQrygSdzlhBSZ+PzvPEjAT72sahHqxG6FoznkdceYc Qs0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=151EddftrZhDh/91EEBfNEmgh9HiWO/wmSjB/1IWmjE=; b=OgUN7SQgEPtkLtkhK1eF5Z+jJkeeriJ8AcQzQR8zg/IZA2Vnwm6gtUR1micfWPZaaU uof3ucSf6CS5z6rZtASYyALFEY1mx93t4rN7saZtzxfhfC4e1pH1AAwu6/r0o6wxNgOu CB7KNM/lJQum9/t9F/K3W/H2l6576F6KpZl8BLbtLgLbH+K15GnQHKFIj4yj/yQFjFfm 9d19qO5r8TqeQixuGqufXGGxonS0uJkFN81SVhieVdpn2XdsZFQfOMrTyZJUBY6/a9uw CRtI87jsAj6xn7HhD/7AviEth7WuVHvhT8QHgbbq8/6GZUEYALgaiR7+NWq7FWviQPHG S9rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ig3G1TzM; 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 h15-20020aa7de0f000000b0042abbb4384esi4149551edv.121.2022.05.21.04.18.07; Sat, 21 May 2022 04:18:33 -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=ig3G1TzM; 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 S1354186AbiEUAJs (ORCPT + 99 others); Fri, 20 May 2022 20:09:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232019AbiEUAJq (ORCPT ); Fri, 20 May 2022 20:09:46 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43087185CBA; Fri, 20 May 2022 17:09:45 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id b5so1528178plx.10; Fri, 20 May 2022 17:09:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=151EddftrZhDh/91EEBfNEmgh9HiWO/wmSjB/1IWmjE=; b=ig3G1TzM6niiGVY07X0kHudPr79o1wawS3OA/WLkBYr0EsIn/SDBQXrJ7/JpLiq5FR 8USOXfzloV+gyi18NFVqxGo881D6v4hgPiF9PMK2/PR3uAu1iFlvoD4qhgxRkILWkyTO hzi2JqSWgJZAULroVYLlhtjVrWA9skKuY5lCK7e5t0YtjBDKoX91Aq4NPNRccJPGVTMm ia4IX0cmw82iHhKxuIoSm0KzqCahYhL2Aate0Ur6TXdfyYy+d7jyI1fZzuU/lRx5l/72 i57snCE9AcY4zI8hvQC92lbOM9HjCDJxVT0lFxnC75W95e/Q/PzbFXjHN15WT/E0MLBv U1eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=151EddftrZhDh/91EEBfNEmgh9HiWO/wmSjB/1IWmjE=; b=sZrQqMckMNgTa1eXP6KXVhsRXypgmoblEQ1jol/3U1oaX1IPTCSLS1f0giyfv+lGGT dlcF1jx/NU8bUPzDGuL+X0P3tKPJmA6jTIZiR/Jr00/vEaumNT++09MGZuvD/kqX8/le pKLY42xAPJEltWPLKhRRazKDRcGEOr8/sYXNquveJNh1wbW4sGDqyOS1pn4ma1n5noFW btuL+GkYpZcIS/C0J/fX5kpymbAtTK0bNVyCjR1UkRx07r362fmg6SwMVeE4yWsQdQ54 mNkIL3uUrFJiHM9OWtyhW4Eq9rTMyOq9kASyINsTTaF8tPNUtQzQqJUm3mbsm8L7tTMW Sqyg== X-Gm-Message-State: AOAM531EiGCjMCMN5XAX2Hq9N499BQ+gdr5HiwZqOT1ytXOAdqSe58st exWZ9VA0UNG0D9YuRMPyB/Q= X-Received: by 2002:a17:90b:4c0f:b0:1e0:237:d3f6 with SMTP id na15-20020a17090b4c0f00b001e00237d3f6mr4308905pjb.166.1653091784723; Fri, 20 May 2022 17:09:44 -0700 (PDT) Received: from ubuntu.localdomain ([116.21.69.15]) by smtp.gmail.com with ESMTPSA id nm11-20020a17090b19cb00b001df40d766e9sm2475956pjb.21.2022.05.20.17.09.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 May 2022 17:09:44 -0700 (PDT) From: Ruijian Li To: ast@kernel.org Cc: daniel@iogearbox.net, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, 798073189@qq.com, Ruijian Li Subject: [PATCH] samples: fix compile failure error Date: Sat, 21 May 2022 08:09:21 +0800 Message-Id: <20220521000921.8337-1-ruijian63@gmail.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, 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 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; -}; - static inline void INIT_LIST_HEAD(struct list_head *list) { list->next = list; -- 2.32.0