From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B1B43C48BD4 for ; Tue, 25 Jun 2019 07:28:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 85FD520652 for ; Tue, 25 Jun 2019 07:28:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="WKw5jlJG" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728142AbfFYH25 (ORCPT ); Tue, 25 Jun 2019 03:28:57 -0400 Received: from terminus.zytor.com ([198.137.202.136]:40231 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726835AbfFYH24 (ORCPT ); Tue, 25 Jun 2019 03:28:56 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x5P7S3973508765 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 25 Jun 2019 00:28:04 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x5P7S3973508765 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019061801; t=1561447684; bh=DKnktSBBWht+QETywtp4eZvOxuNjdPNQATPDbmCp6xQ=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=WKw5jlJGHI4i5yC3AHTxtB5yVFaYo5afDiJPoOgn0fIJamqbSVEHUE1s4LHrcqRRF 2NGb0BJAOVsmbmvNVdMdQiNpAw22/NKMWT3ZZ93LHVXg99aDlwvazSDfSphdjzxoD5 pLVJDxgB+eNLx8eaA5IFH402Ncx94LbrfvBniO5rK3ADJyb7IF/KJWZDyg18hptX/M WAN3ZusTR0mupym9h2WpfcpVvT2wwJKjqTWNuXw/yTrBtVyQjLxOao8tyaGaa8oA1U klXJKxpgj/pzNfHVaeNGJqEFXTuLwITYUhAk9lrKWXsE1hn+kG98aHO3pWD0qDE/CE OgaDhcfiPLVdA== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x5P7S3vK3508762; Tue, 25 Jun 2019 00:28:03 -0700 Date: Tue, 25 Jun 2019 00:28:03 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for YueHaibing Message-ID: Cc: tglx@linutronix.de, peterz@infradead.org, hpa@zytor.com, namit@vmware.com, hulkci@huawei.com, yuehaibing@huawei.com, bristot@redhat.com, bp@alien8.de, mingo@kernel.org, linux-kernel@vger.kernel.org Reply-To: yuehaibing@huawei.com, bp@alien8.de, mingo@kernel.org, bristot@redhat.com, linux-kernel@vger.kernel.org, hpa@zytor.com, tglx@linutronix.de, peterz@infradead.org, hulkci@huawei.com, namit@vmware.com In-Reply-To: <20190625034548.26392-1-yuehaibing@huawei.com> References: <20190625034548.26392-1-yuehaibing@huawei.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:locking/core] x86/jump_label: Make tp_vec_nr static Git-Commit-ID: bf10c97adbd0dc8fa65c35d5b0c0dc281a68ac8e X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: bf10c97adbd0dc8fa65c35d5b0c0dc281a68ac8e Gitweb: https://git.kernel.org/tip/bf10c97adbd0dc8fa65c35d5b0c0dc281a68ac8e Author: YueHaibing AuthorDate: Tue, 25 Jun 2019 11:45:48 +0800 Committer: Thomas Gleixner 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 Signed-off-by: YueHaibing Signed-off-by: Thomas Gleixner Cc: Cc: Cc: Cc: Cc: 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)