[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <17f26786-3e41-157f-8586-c1a8f5218925@iogearbox.net>
Date: Fri, 27 Dec 2019 19:09:29 +0100
From: Daniel Borkmann <daniel@...earbox.net>
To: Andrii Nakryiko <andriin@...com>, bpf@...r.kernel.org,
netdev@...r.kernel.org, ast@...com
Cc: andrii.nakryiko@...il.com, kernel-team@...com
Subject: Re: [PATCH bpf-next] bpftool: make skeleton C code compilable with
C++ compiler
On 12/26/19 10:02 PM, Andrii Nakryiko wrote:
> When auto-generated BPF skeleton C code is included from C++ application, it
> triggers compilation error due to void * being implicitly casted to whatever
> target pointer type. This is supported by C, but not C++. To solve this
> problem, add explicit casts, where necessary.
>
> To ensure issues like this are captured going forward, add skeleton usage in
> test_cpp test.
>
> Signed-off-by: Andrii Nakryiko <andriin@...com>
Applied it earlier today, thanks!
Powered by blists - more mailing lists