[PATCH] examples/vm_power: replace list foreach with while loop
Koikkara Reeny, Shibin
shibin.koikkara.reeny at intel.com
Thu Mar 10 10:32:08 CET 2022
> -----Original Message-----
> From: Thomas Monjalon <thomas at monjalon.net>
> 01/03/2022 15:53, Shibin Koikkara Reeny:
> > Linux header files don't support LIST_FOREACH_SAFE so replacing
> > LIST_FOREACH with while loop.
>
> What is the original issue you are trying to solve?
Asan tool reported LIST_FOREACH should be replaced with LIST_FOREACH_SAFE but
Linux don't have LIST_FOREACH_SAFE API. So replacing it with while loop.
Regards,
Shibin
More information about the dev
mailing list