Re: [PATCH V2] livepatch: fix non-static warnings

From: Petr Mladek
Date: Mon Dec 17 2018 - 07:03:21 EST


On Sun 2018-12-16 14:07:37, Nicholas Mc Guire wrote:
> Sparse reported warnings about non-static symbols. For the variables
> a simple static attribute is fine - for those symbols referenced by
> livepatch via klp_func the symbol-names must be unmodified in the
> symbol table - to resolve this the __noclone attribute is used
> for the shared statically declared functions.
>
> Signed-off-by: Nicholas Mc Guire <hofrat@xxxxxxxxx>
> Suggested-by: Joe Lawrence <joe.lawrence@xxxxxxxxxx>
> Link: https://lkml.org/lkml/2018/12/13/827

This is misleading. The "Link:" tag should point to the mail
where the commited version of the patch was being discussed.
It can be added by the maintainer.

Also please do not use links to https://lkml.org.
Messages disappear from time to time. It is much better
to use the redirector:

https://lkml.kernel.org/r/<message_id>

Best Regards,
Petr


PS: I was about to add Reviewed-by tag. But Miroslav (sitting
next to me) found out that __noclone was not the best solution.

I suggest to always wait few days between re-sending a new
version. This subsystem has many active reviewers ;-)