Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp974583yba; Thu, 4 Apr 2019 01:30:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqwkM9dJMQjPNFmKgw0g4r4uTEKFHaXOnhcDnhz161UIxfJMfpdJuMrUkiG01ArNzK2R8cMn X-Received: by 2002:a62:524e:: with SMTP id g75mr4454832pfb.106.1554366609711; Thu, 04 Apr 2019 01:30:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554366609; cv=none; d=google.com; s=arc-20160816; b=KpKCPpQ8bHfaksuLPeJQLUBt8hbohbVSeJCDULLWChQLKEQzX0jmRm8prs7iqerbGA cpSQRFbmDduLOZn9nNVQzplvHlwGrFWKVBU23JOxfYjFd1EthbfVtrRbnlygWFcq7O/F T8jZ0XQWDySNhO7JleYaRvxB+NMVzt2uGnca/9DP/5TRCB2dMI9xfbGqdArNlL5hsLwQ 7hozNeXD/KCbq9X+BYxp6N00iHM7QKENbyaCcIWvD7ytxr+KnAAoB2Znq+Av5Bsah5CT exze5AFlvENuLVr1UohOYhnDaEOptKoNWrpuWdfnpRjbirHH+DEjH+pMWLGL9GEYAUkK L22g== 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:to:subject:dkim-signature; bh=6rr1Q4Juu1NOSJC4GmN+YRZy+Y34ixA1m6mRTYvKEfQ=; b=PV6s7JKQEFZF9btwZSg7sUlhKhP6gbhgZ1tPFe/Bxu/I8n7/J0d7no5oge3dU+HMS7 7fsXeGfFkUN57AlVEaHxLAjlDIY/J2DztmQSvacnh4fx1iQQTI8ZfkN+/TtcwtgwPkRg w0Wpw74I/7TamQwEzRlPWbhoDTjkuvd8VN404b+midsfGslOx8hvBuaum89kXXqfe/21 4pjqT6qKWGVmP9HVetmhfDOdvyRnSX88hp901VaUKtwcy4bQpnLiWy6Yvkf/0FpUjn+o SQOMNiUafrr1pKede5cKTQoLwdqxXXVJzPuVVkh0FIRVeY2/A30DKSickSRV34BHhlFF ybUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KC3RZeW7; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j16si15715366pll.291.2019.04.04.01.29.54; Thu, 04 Apr 2019 01:30:09 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KC3RZeW7; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728173AbfDDI3M (ORCPT + 99 others); Thu, 4 Apr 2019 04:29:12 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:36768 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727331AbfDDI3M (ORCPT ); Thu, 4 Apr 2019 04:29:12 -0400 Received: by mail-wm1-f67.google.com with SMTP id h18so2245757wml.1; Thu, 04 Apr 2019 01:29:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=6rr1Q4Juu1NOSJC4GmN+YRZy+Y34ixA1m6mRTYvKEfQ=; b=KC3RZeW7aj8ls/hkOARhnDkJEy5ncZIp92gWkLyYcbpBsbV8lYUioqbRPcaI0nDFNY 8MVh0DIv/JucxeiOowzX/y6TntmEDyYK0FUa/Scdk+TqlCblKJjxxnpJLK9Ud93y4twa XA7SuLP5FmUlSEjO+DwJ6WGe/jFwQLN9ibNkUEw+apthCKPf1GsfeZVnwlwKLc31KEaX 3W0hV6eK6AtTZEhNfiHB34+nLnUd9173+ibGr4I1iz+W0J3HBBIwgyNJqGvd8aX16KC1 ygVnx7QSQqJUroUoQgDn5SOu4AFObXFY+rf+q5F2Dho2qMcJxwjITP+IJ/1ZNy2vYPn8 ZfVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=6rr1Q4Juu1NOSJC4GmN+YRZy+Y34ixA1m6mRTYvKEfQ=; b=jD9tTz7SZTxgsFmdPsv8qhPDYXW4EB1DYs6J5NO18CyorhSZke7ksZRKGjGAsmyQEU A5wlb9BGFraPFmjIKsH0IIkf6DqcaOQtez9zmIrSj2hflEstVaxUelijNV5yAcrcm/02 bNuPR537pa+wKacE9BH4lmoAQMGsuRhpwNqwacakWXkh5BZLy/zGb0Pfe5UuqDA8L+b5 Ldmx6spWSP2qAtsnV7EzVb9Ynh+Ty+xdZ1Tq9x52LEbyQqynM36XqkpoDGOMqxXpnTas U//ZAOTO9qoJ+aElDOiEBbZpT4zzDAIXskg64S0CCe8KJ+sq28KTSqetif1dqjmCjTY+ JEUg== X-Gm-Message-State: APjAAAUMj7jZ9QUIaOQyIdvujfkopgXACcVVueqfay1qQis7cFSbqQLd +q532zQ6BSoQ7eCgWgp4AwxEtVR2 X-Received: by 2002:a1c:d106:: with SMTP id i6mr2926434wmg.134.1554366550361; Thu, 04 Apr 2019 01:29:10 -0700 (PDT) Received: from [192.168.8.147] (133.85.136.77.rev.sfr.net. [77.136.85.133]) by smtp.gmail.com with ESMTPSA id j64sm23149128wmb.36.2019.04.04.01.29.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Apr 2019 01:29:09 -0700 (PDT) Subject: Re: [PATCH] bpf:sample: fix field 'lock' has incomplete type in hbm.h To: ast@kernel.org, daniel@iogearbox.net, kafai@fb.com, songliubraving@fb.com, netdev@vger.kernel.org, yhs@fb.com, linux-kernel@vger.kernel.org, bpf@vger.kernel.org References: <20190404081620.zx5rt2j2rjvdcglt@yubo-2> From: Eric Dumazet Message-ID: Date: Thu, 4 Apr 2019 01:29:05 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20190404081620.zx5rt2j2rjvdcglt@yubo-2> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/04/2019 01:16 AM, Bo YU wrote: > When compiling sample/bpf: > > samples/bpf/hbm.h:12:23: error: field ‘lock’ has incomplete type >  struct bpf_spin_lock lock; > > Fixes: 187d0738ff35(bpf: Sample HBM BPF program to limit egress bw) > Signed-off-by: Bo YU > --- This patch makes absolutely no sense. Please carefully read samples/bpf/README.rst