On 07/09/2023 10:02, Denys Zagorui wrote: > This cast was made by purpose for older libbpf where the > bpf_object_skeleton field is void * instead of const void * > to eliminate a warning (as i understand > -Wincompatible-pointer-types-discards-qualifiers) but this > cast introduces another warning (-Wcast-qual) for libbpf > where data field is const void * > > It makes sense for bpftool to be in sync with libbpf from > kernel sources > > Signed-off-by: Denys Zagorui <dzagorui@xxxxxxxxx> Acked-by: Quentin Monnet <quentin@xxxxxxxxxxxxx>