Re: [PATCH v6 02/11] kbuild: Add list_size, list_at_index, list_for_each_from
From: Ole Schuerks
Date: Sun Dec 08 2024 - 20:00:54 EST
> What's wrong with list_count_nodes()?
> list_for_each_entry_from() exists on my tree on linux-next added
> through commit e229c2fb3370a ("[LIST]: Introduce
> list_for_each_entry_from") since v2.6.17, so since 2006.
These macros only exist in include/linux/list.h, not in
scripts/include/list.h. My assumption was that the build system should only
use scripts/include/list.h.
> I'd just keep thsi internal to your code for now, and later if we really
> want we can add this as a generic helper.
Alright, the additions will be internals in v7.
Best regards,
Ole Schuerks