Re: [PATCH bpf-next v2] bpf: Fix a few typos in BPF helpers documentation

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

 



On 25/08/2022 15:22, Jakub Wilk wrote:
> * Quentin Monnet <quentin@xxxxxxxxxxxxx>, 2022-08-25 12:02:
>> --- a/tools/include/uapi/linux/bpf.h
>> +++ b/tools/include/uapi/linux/bpf.h
>> @@ -79,7 +79,7 @@ struct bpf_insn {
>> /* Key of an a BPF_MAP_TYPE_LPM_TRIE entry */
>> struct bpf_lpm_trie_key {
>>     __u32    prefixlen;    /* up to 32 for AF_INET, 128 for AF_INET6 */
>> -    __u8    data[0];    /* Arbitrary size */
>> +    __u8    data[];    /* Arbitrary size */
>> };
> 
> This hunk picks the change from 94dfc73e7cf4 ("treewide: uapi: Replace
> zero-length arrays with flexible-array members").
> 
> A bit weird to see it in a spelling-fix patch though. Wouldn't it be
> better to put it in a separate one?
> 

This has happened several times in the past, and the change is small
enough I thought it wouldn't matter much. I can send another version if
it's more convenient, though.

Quentin



[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