Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752661AbbLNQYN (ORCPT ); Mon, 14 Dec 2015 11:24:13 -0500 Received: from mail-qk0-f181.google.com ([209.85.220.181]:36659 "EHLO mail-qk0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751356AbbLNQYK (ORCPT ); Mon, 14 Dec 2015 11:24:10 -0500 Date: Mon, 14 Dec 2015 11:24:06 -0500 From: Tejun Heo To: "davem@davemloft.net" Cc: Dexuan Cui , "pablo@netfilter.org" , "kaber@trash.net" , "kadlec@blackhole.kfki.hu" , "daniel@iogearbox.net" , "daniel.wagner@bmw-carit.de" , "nhorman@tuxdriver.com" , "lizefan@huawei.com" , "hannes@cmpxchg.org" , "netdev@vger.kernel.org" , "netfilter-devel@vger.kernel.org" , "coreteam@netfilter.org" , "cgroups@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "kernel-team@fb.com" , "ninasc@fb.com" Subject: [PATCH net-next] net, cgroup: cgroup_sk_updat_lock was missing initializer Message-ID: <20151214162406.GA4026@mtj.duckdns.org> References: <1449527935-27056-1-git-send-email-tj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1249 Lines: 37 bd1060a1d671 ("sock, cgroup: add sock->sk_cgroup") added global spinlock cgroup_sk_update_lock but erroneously skipped initializer leading to uninitialized spinlock warning. Fix it by using DEFINE_SPINLOCK(). Signed-off-by: Tejun Heo Reported-by: Dexuan Cui Fixes: bd1060a1d671 ("sock, cgroup: add sock->sk_cgroup") --- Hello, Dexuan. Oops, sorry about that. Somehow thought it was a different problem which is already fixed. This should do it. Thanks. kernel/cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 4f8f792..4466273f 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -5790,7 +5790,7 @@ EXPORT_SYMBOL_GPL(cgroup_get_from_path); #if defined(CONFIG_CGROUP_NET_PRIO) || defined(CONFIG_CGROUP_NET_CLASSID) -spinlock_t cgroup_sk_update_lock; +DEFINE_SPINLOCK(cgroup_sk_update_lock); static bool cgroup_sk_alloc_disabled __read_mostly; void cgroup_sk_alloc_disable(void) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/