]> git.baikalelectronics.ru Git - kernel.git/commit
x86/jump_label: Make tp_vec_nr static
authorYueHaibing <yuehaibing@huawei.com>
Tue, 25 Jun 2019 03:45:48 +0000 (11:45 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 25 Jun 2019 07:22:14 +0000 (09:22 +0200)
commit0862c03d49d51bb5b77278d9679de3122c7d2efc
treeee18a28c2373671090d0049212bf108f9869d72e
parentfe78564b3afef1e0673c422686887a020e5a3567
x86/jump_label: Make tp_vec_nr static

Fix sparse warning:

arch/x86/kernel/jump_label.c:106:5: warning:
 symbol 'tp_vec_nr' was not declared. Should it be static?

It's only used in jump_label.c, so make it static.

Fixes: a86cccaa284f ("x86/jump_label: Batch jump label updates")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: <bp@alien8.de>
Cc: <hpa@zytor.com>
Cc: <peterz@infradead.org>
Cc: <bristot@redhat.com>
Cc: <namit@vmware.com>
Link: https://lkml.kernel.org/r/20190625034548.26392-1-yuehaibing@huawei.com
arch/x86/kernel/jump_label.c