From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yonghong Song Subject: Re: [PATCH v2 bpf 1/3] bpf: btf: Sync uapi btf.h to tools Date: Mon, 23 Jul 2018 10:58:03 -0700 Message-ID: <403f6739-0173-5ff0-4acd-3b2def4c7718@fb.com> References: <20180721182043.1401089-1-kafai@fb.com> <20180721182043.1401089-2-kafai@fb.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Cc: Alexei Starovoitov , Daniel Borkmann , To: Martin KaFai Lau , Return-path: Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:51440 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387981AbeGWTBF (ORCPT ); Mon, 23 Jul 2018 15:01:05 -0400 In-Reply-To: <20180721182043.1401089-2-kafai@fb.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 7/21/18 11:20 AM, Martin KaFai Lau wrote: > This patch sync the uapi btf.h to tools/ > > Fixes: 36fc3c8c282c bpf: btf: Clean up BTF_INT_BITS() in uapi btf.h > Signed-off-by: Martin KaFai Lau Acked-by: Yonghong Song > --- > tools/include/uapi/linux/btf.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/include/uapi/linux/btf.h b/tools/include/uapi/linux/btf.h > index 0b5ddbe135a4..972265f32871 100644 > --- a/tools/include/uapi/linux/btf.h > +++ b/tools/include/uapi/linux/btf.h > @@ -76,7 +76,7 @@ struct btf_type { > */ > #define BTF_INT_ENCODING(VAL) (((VAL) & 0x0f000000) >> 24) > #define BTF_INT_OFFSET(VAL) (((VAL & 0x00ff0000)) >> 16) > -#define BTF_INT_BITS(VAL) ((VAL) & 0x0000ffff) > +#define BTF_INT_BITS(VAL) ((VAL) & 0x000000ff) > > /* Attributes stored in the BTF_INT_ENCODING */ > #define BTF_INT_SIGNED (1 << 0)