Re: [PATCH] bpftool: fix -Wcast-qual warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/09/2023 09:56, Denys Zagorui -X (dzagorui - GLOBALLOGIC INC at
Cisco) wrote:
>> If I follow correctly, the cast was added in bpftool in a6cc6b34b93e
>> ("bpftool: Provide a helper method for accessing skeleton's embedded ELF
>> data"), which mentions indeed:
>>
>>    The assignment to s->data is cast to void * to ensure no warning is
>>    issued if compiled with a previous version of libbpf where the
>>    bpf_object_skeleton field is void * instead of const void *
>>
>> but in libbpf, s->data's type had already been changed since commit
>> 08a6f22ef6f8 ("libbpf: Change bpf_object_skeleton data field to const
>> pointer"), part of libbpf 0.6, is this correct?
> yes, this is correct
> 


OK, thanks

Acked-by: Quentin Monnet <quentin@xxxxxxxxxxxxx>




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux