From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932937AbcIEJyQ (ORCPT ); Mon, 5 Sep 2016 05:54:16 -0400 Received: from terminus.zytor.com ([198.137.202.10]:33556 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932783AbcIEJyO (ORCPT ); Mon, 5 Sep 2016 05:54:14 -0400 Date: Mon, 5 Sep 2016 02:52:08 -0700 From: tip-bot for Tony Luck Message-ID: Cc: torvalds@linux-foundation.org, tony.luck@intel.com, hpa@zytor.com, mingo@kernel.org, dan.j.williams@intel.com, bp@suse.de, linux-kernel@vger.kernel.org, peterz@infradead.org, tglx@linutronix.de Reply-To: mingo@kernel.org, dan.j.williams@intel.com, hpa@zytor.com, tony.luck@intel.com, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, peterz@infradead.org, tglx@linutronix.de, bp@suse.de In-Reply-To: <816881cf85bd3cf13385d212882618f38a3b5d33.1472754711.git.tony.luck@intel.com> References: <816881cf85bd3cf13385d212882618f38a3b5d33.1472754711.git.tony.luck@intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:ras/core] locking/static_keys: Provide DECLARE and well as DEFINE macros Git-Commit-ID: b8fb03785d4de097507d0cf45873525e0ac4d2b2 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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: b8fb03785d4de097507d0cf45873525e0ac4d2b2 Gitweb: http://git.kernel.org/tip/b8fb03785d4de097507d0cf45873525e0ac4d2b2 Author: Tony Luck AuthorDate: Thu, 1 Sep 2016 11:39:33 -0700 Committer: Thomas Gleixner CommitDate: Mon, 5 Sep 2016 11:47:31 +0200 locking/static_keys: Provide DECLARE and well as DEFINE macros We will need to provide declarations of static keys in header files. Provide DECLARE_STATIC_KEY_{TRUE,FALSE} macros. Signed-off-by: Tony Luck Acked-by: Borislav Petkov Cc: Peter Zijlstra Cc: Dan Williams Cc: Linus Torvalds Link: http://lkml.kernel.org/r/816881cf85bd3cf13385d212882618f38a3b5d33.1472754711.git.tony.luck@intel.com Signed-off-by: Thomas Gleixner --- include/linux/jump_label.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/jump_label.h b/include/linux/jump_label.h index 661af56..595fb46 100644 --- a/include/linux/jump_label.h +++ b/include/linux/jump_label.h @@ -267,9 +267,15 @@ struct static_key_false { #define DEFINE_STATIC_KEY_TRUE(name) \ struct static_key_true name = STATIC_KEY_TRUE_INIT +#define DECLARE_STATIC_KEY_TRUE(name) \ + extern struct static_key_true name + #define DEFINE_STATIC_KEY_FALSE(name) \ struct static_key_false name = STATIC_KEY_FALSE_INIT +#define DECLARE_STATIC_KEY_FALSE(name) \ + extern struct static_key_false name + extern bool ____wrong_branch_error(void); #define static_key_enabled(x) \