On 14.01.2019 22:04, Tri Vo wrote:
> From: Nick Desaulniers <[email protected]>
>
> gcov.h defines an interface to access gcov_info data.
>
> Add Clang implementation of gcov_info_link/gcov_info_unlink interfaces.
>
> Signed-off-by: Nick Desaulniers <[email protected]>
> Signed-off-by: Tri Vo <[email protected]>
> Tested-by: Trilok Soni <[email protected]>
> Tested-by: Prasad Sodagudi <[email protected]>
> Tested-by: Tri Vo <[email protected]>
> ---
> kernel/gcov/clang.c | 33 ++++++++++++++++++++++++++++-----
> 1 file changed, 28 insertions(+), 5 deletions(-)
Please merge this patch into patch 2 as it fixes a number of problems in
that patch.
>
> diff --git a/kernel/gcov/clang.c b/kernel/gcov/clang.c
> index b00795d28137..ea42deb852f7 100644
> --- a/kernel/gcov/clang.c
> +++ b/kernel/gcov/clang.c
[...]
> +/**
> + * gcov_info_unlink - unlink/remove profiling data set from the list
> + * @prev: previous profiling data set
> + * @info: profiling data set
> + */
> +void gcov_info_unlink(struct gcov_info *prev, struct gcov_info *info)
> +{
> + if (prev)
> + list_del(&prev->head);
This is incorrect - gcov_info_unlink should remove info from the list,
not its predecessor prev.
--
Peter Oberparleiter
Linux on Z Development - IBM Germany