Re: [PATCH -next] samples/hw_breakpoint: mark sample_hbp as static
From: Luis Chamberlain
Date: Wed Jul 26 2023 - 14:18:10 EST
On Wed, Jul 26, 2023 at 10:17:59AM +0000, Chen Jiahao wrote:
> There is a sparse warning shown as below:
>
> samples/hw_breakpoint/data_breakpoint.c:24:19: warning:
> symbol 'sample_hbp' was not declared. Should it be static?
>
> Since 'sample_hbp' is only called within data_breakpoint.c,
> mark it as static to fix the warning.
>
> Fixes: 44ee63587dce ("percpu: Add __percpu sparse annotations to hw_breakpoint")
> Signed-off-by: Chen Jiahao <chenjiahao16@xxxxxxxxxx>
Thanks, applied and pushed.
Luis