On Fri, Sep 06, 2019 at 09:09:17AM +, Andrii Nakryiko wrote:
> On 9/6/19 8:31 AM, Jiri Olsa wrote:
> > hi,
> > when including btf.h in bpftrace, I'm getting -Wcast-qual warnings like:
> >
> >bpf/btf.h: In function ‘btf_var_secinfo* btf_var_secinfos(const
> > btf_type*)’:
> >bpf/btf.h:
On Fri, Sep 6, 2019 at 2:09 AM Andrii Nakryiko wrote:
>
> On 9/6/19 8:31 AM, Jiri Olsa wrote:
> > hi,
> > when including btf.h in bpftrace, I'm getting -Wcast-qual warnings like:
> >
> >bpf/btf.h: In function ‘btf_var_secinfo* btf_var_secinfos(const
> > btf_type*)’:
> >bpf/btf.h:302:41: w
On 9/6/19 8:31 AM, Jiri Olsa wrote:
> hi,
> when including btf.h in bpftrace, I'm getting -Wcast-qual warnings like:
>
>bpf/btf.h: In function ‘btf_var_secinfo* btf_var_secinfos(const
> btf_type*)’:
>bpf/btf.h:302:41: warning: cast from type ‘const btf_type*’ to type
>‘btf_var_secinfo
hi,
when including btf.h in bpftrace, I'm getting -Wcast-qual warnings like:
bpf/btf.h: In function ‘btf_var_secinfo* btf_var_secinfos(const btf_type*)’:
bpf/btf.h:302:41: warning: cast from type ‘const btf_type*’ to type
‘btf_var_secinfo*’ casts away qualifiers [-Wcast-qual]
302 | retu