[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-bf10c97adbd0dc8fa65c35d5b0c0dc281a68ac8e@git.kernel.org>
Date: Tue, 25 Jun 2019 00:28:03 -0700
From: tip-bot for YueHaibing <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: tglx@...utronix.de, peterz@...radead.org, hpa@...or.com,
namit@...are.com, hulkci@...wei.com, yuehaibing@...wei.com,
bristot@...hat.com, bp@...en8.de, mingo@...nel.org,
linux-kernel@...r.kernel.org
Subject: [tip:locking/core] x86/jump_label: Make tp_vec_nr static
Commit-ID: bf10c97adbd0dc8fa65c35d5b0c0dc281a68ac8e
Gitweb: https://git.kernel.org/tip/bf10c97adbd0dc8fa65c35d5b0c0dc281a68ac8e
Author: YueHaibing <yuehaibing@...wei.com>
AuthorDate: Tue, 25 Jun 2019 11:45:48 +0800
Committer: Thomas Gleixner <tglx@...utronix.de>
CommitDate: Tue, 25 Jun 2019 09:22:14 +0200
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: ba54f0c3f7c4 ("x86/jump_label: Batch jump label updates")
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: YueHaibing <yuehaibing@...wei.com>
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Cc: <bp@...en8.de>
Cc: <hpa@...or.com>
Cc: <peterz@...radead.org>
Cc: <bristot@...hat.com>
Cc: <namit@...are.com>
Link: https://lkml.kernel.org/r/20190625034548.26392-1-yuehaibing@huawei.com
---
arch/x86/kernel/jump_label.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/jump_label.c b/arch/x86/kernel/jump_label.c
index ea13808bf6da..044053235302 100644
--- a/arch/x86/kernel/jump_label.c
+++ b/arch/x86/kernel/jump_label.c
@@ -103,7 +103,7 @@ void arch_jump_label_transform(struct jump_entry *entry,
#define TP_VEC_MAX (PAGE_SIZE / sizeof(struct text_poke_loc))
static struct text_poke_loc tp_vec[TP_VEC_MAX];
-int tp_vec_nr = 0;
+static int tp_vec_nr;
bool arch_jump_label_transform_queue(struct jump_entry *entry,
enum jump_label_type type)
Powered by blists - more mailing lists