bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tools/bpf: Sync kernel btf.h header
@ 2019-05-14  3:15 Gary Lin
  2019-05-14  4:49 ` Andrii Nakryiko
  2019-05-14  8:09 ` Daniel Borkmann
  0 siblings, 2 replies; 3+ messages in thread
From: Gary Lin @ 2019-05-14  3:15 UTC (permalink / raw)
  To: bpf, Alexei Starovoitov, Daniel Borkmann; +Cc: Martin KaFai Lau

For the fix of BTF_INT_OFFSET()

Signed-off-by: Gary Lin <glin@suse.com>
---
 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 9310652ca4f9..63ae4a39e58b 100644
--- a/tools/include/uapi/linux/btf.h
+++ b/tools/include/uapi/linux/btf.h
@@ -83,7 +83,7 @@ struct btf_type {
  * is the 32 bits arrangement:
  */
 #define BTF_INT_ENCODING(VAL)	(((VAL) & 0x0f000000) >> 24)
-#define BTF_INT_OFFSET(VAL)	(((VAL  & 0x00ff0000)) >> 16)
+#define BTF_INT_OFFSET(VAL)	(((VAL) & 0x00ff0000) >> 16)
 #define BTF_INT_BITS(VAL)	((VAL)  & 0x000000ff)
 
 /* Attributes stored in the BTF_INT_ENCODING */
-- 
2.21.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] tools/bpf: Sync kernel btf.h header
  2019-05-14  3:15 [PATCH] tools/bpf: Sync kernel btf.h header Gary Lin
@ 2019-05-14  4:49 ` Andrii Nakryiko
  2019-05-14  8:09 ` Daniel Borkmann
  1 sibling, 0 replies; 3+ messages in thread
From: Andrii Nakryiko @ 2019-05-14  4:49 UTC (permalink / raw)
  To: Gary Lin; +Cc: bpf, Alexei Starovoitov, Daniel Borkmann, Martin KaFai Lau

On Mon, May 13, 2019 at 8:16 PM Gary Lin <glin@suse.com> wrote:
>
> For the fix of BTF_INT_OFFSET()
>
> Signed-off-by: Gary Lin <glin@suse.com>

Thanks!

Acked-by: Andrii Nakryiko <andriin@fb.com>

> ---
>  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 9310652ca4f9..63ae4a39e58b 100644
> --- a/tools/include/uapi/linux/btf.h
> +++ b/tools/include/uapi/linux/btf.h
> @@ -83,7 +83,7 @@ struct btf_type {
>   * is the 32 bits arrangement:
>   */
>  #define BTF_INT_ENCODING(VAL)  (((VAL) & 0x0f000000) >> 24)
> -#define BTF_INT_OFFSET(VAL)    (((VAL  & 0x00ff0000)) >> 16)
> +#define BTF_INT_OFFSET(VAL)    (((VAL) & 0x00ff0000) >> 16)
>  #define BTF_INT_BITS(VAL)      ((VAL)  & 0x000000ff)
>
>  /* Attributes stored in the BTF_INT_ENCODING */
> --
> 2.21.0
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] tools/bpf: Sync kernel btf.h header
  2019-05-14  3:15 [PATCH] tools/bpf: Sync kernel btf.h header Gary Lin
  2019-05-14  4:49 ` Andrii Nakryiko
@ 2019-05-14  8:09 ` Daniel Borkmann
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Borkmann @ 2019-05-14  8:09 UTC (permalink / raw)
  To: Gary Lin, bpf, Alexei Starovoitov; +Cc: Martin KaFai Lau

On 05/14/2019 05:15 AM, Gary Lin wrote:
> For the fix of BTF_INT_OFFSET()
> 
> Signed-off-by: Gary Lin <glin@suse.com>

Both applied, thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-14  8:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-14  3:15 [PATCH] tools/bpf: Sync kernel btf.h header Gary Lin
2019-05-14  4:49 ` Andrii Nakryiko
2019-05-14  8:09 ` Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).