samples/hw_breakpoint: mark sample_hbp as static
authorChen Jiahao <chenjiahao16@huawei.com>
Wed, 26 Jul 2023 10:17:59 +0000 (10:17 +0000)
committerLuis Chamberlain <mcgrof@kernel.org>
Wed, 26 Jul 2023 18:17:19 +0000 (11:17 -0700)
commit4b49df654cd0d1c3c359fc0f52182943a650b746
tree6fec7c9445d26332a7e5b6322c9e32f306520f5f
parentb9080468caeddc58a91edd1c3a7d212ea82b0d1d
samples/hw_breakpoint: mark sample_hbp as static

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@huawei.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
samples/hw_breakpoint/data_breakpoint.c