Re: [PATCH v4 05/19] kho: Add feature header for fine-grained ABI compatibility
From: tarunsahu
Date: Wed Dec 02 2026 - 15:43:20 EST
Pratyush Yadav <pratyush@xxxxxxxxxx> writes:
> On Mon, Nov 30 2026, tarunsahu@xxxxxxxxxx wrote:
>
>> Pratyush Yadav <pratyush@xxxxxxxxxx> writes:
> [...]
>>>> +#define KHO_SER_NR_FLAGS(nr_required, nr_optional) \
>>>> + DIV_ROUND_UP((__u32)(nr_required) + (__u32)(nr_optional), 64)
>>>
>>> That's not number of flags, that the number of bits in the bitmap.
>>> Reading KHO_SER_NR_FLAGS() would make me think this is just nr_required
>>> + nr_optional.
>>
>> I could think three name
>>
>> KHO_SER_FLAGS_SIZE
>> KHO_SER_FLAGS_LEN
>
> This one sounds the best to me.
Just to be sure, your choice is KHO_SER_FLAGS_LEN, right?
I will wait for others if there are no objections.
~Tarun
>
>> KHO_SER_FLAGS_WORDS
>>
>> which one is more clearer?
> [...]
>
> --
> Regards,
> Pratyush Yadav