From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752168Ab1JAV4a (ORCPT ); Sat, 1 Oct 2011 17:56:30 -0400 Received: from claw.goop.org ([74.207.240.146]:49189 "EHLO claw.goop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751186Ab1JAVzn (ORCPT ); Sat, 1 Oct 2011 17:55:43 -0400 From: Jeremy Fitzhardinge To: Steven Rostedt Cc: "David S. Miller" , David Daney , Michael Ellerman , Jan Glauber , Jason Baron , the arch/x86 maintainers , Xen Devel , Linux Kernel Mailing List , Jeremy Fitzhardinge Subject: [PATCH RFC V2 1/5] jump_label: use proper atomic_t initializer Date: Sat, 1 Oct 2011 14:55:33 -0700 Message-Id: <0b202e43573ff2fba673ca375a95d757ed9a3f36.1317506051.git.jeremy.fitzhardinge@citrix.com> X-Mailer: git-send-email 1.7.6.2 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jeremy Fitzhardinge ATOMIC_INIT() is the proper thing to use. Signed-off-by: Jeremy Fitzhardinge --- include/linux/jump_label.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/jump_label.h b/include/linux/jump_label.h index 66f23dc..1213e9d 100644 --- a/include/linux/jump_label.h +++ b/include/linux/jump_label.h @@ -28,9 +28,9 @@ struct module; #ifdef HAVE_JUMP_LABEL #ifdef CONFIG_MODULES -#define JUMP_LABEL_INIT {{ 0 }, NULL, NULL} +#define JUMP_LABEL_INIT {ATOMIC_INIT(0), NULL, NULL} #else -#define JUMP_LABEL_INIT {{ 0 }, NULL} +#define JUMP_LABEL_INIT {ATOMIC_INIT(0), NULL} #endif static __always_inline bool static_branch(struct jump_label_key *key) -- 1.7.6.2