Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3706179imu; Mon, 28 Jan 2019 09:21:21 -0800 (PST) X-Google-Smtp-Source: ALg8bN5OyU3kRaroAP+QJkCjegEddxGkLjOwk1oLfxzWAP2ABfL3DyjwqcU3XWOckTwwI7mxREk5 X-Received: by 2002:a62:6204:: with SMTP id w4mr22883516pfb.5.1548696081721; Mon, 28 Jan 2019 09:21:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548696081; cv=none; d=google.com; s=arc-20160816; b=x6nrqmbHDHTS/mrTv2qP57+jVxOqyIOF6VHGqQmeDhJCn4NJMOhYEYCMIHDb3HpxGa 3znvvWWZyDVO+E7ElqurAGatkjfvlwlr2xPNIYqyKeKFU5h+4OR8yH26XiedqBMTSoqZ EaCdajDprI+AbRfcXCCYAL+CL7vmtgpkHuINqhW0wSYhk8EUc19B5f//N+WmMXNRQ8HO ieSN30rWn8XxVFmQrwmW/0XawF52arVhTQfg4ZTnH+rQqJ6dULKoRdVYLScQ98JJnPml +nGJCLvA86duFuUQP4Iowl/O3soKsjreZO1C8/Ly4MroI5uB2IBEqF2oCE5aK+V88aTA G8Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1/nL5cp1L0SZhie180EmKGHwBmDU4dMmMdg20ZaX0dg=; b=nk9iz7881UKa0Uaj0L5CYXwcVzSsjk3PLPkF54MsASg9c+K+1mziRaVpX980ap+Cq8 NIA2S81JvqxNi+v6vt1AnFBBgTgK2x4eWhCP5ljO1rayGqdRQj7xHM7FJDidL4ZEnjbF yeVSppaz5aeAYaoaXGfVxt/EuCfHctR9Fya52bar92GLTkzGiDaAovSvihAYkg7knNCy UcOXJo4HleUtdWaaHgOnZBoQEzcB33xIgEDWeU020YRkOxBeMAXfLtjm1q3GijFy3biP LOzuJ3VKuSspPI+7QsDXR3bOhJRWNle23IKWas32IWKx3V/c6dMXtaS25dT7FSvDRN+e BPvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BV94Mj+u; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d34si31987850pgb.43.2019.01.28.09.21.06; Mon, 28 Jan 2019 09:21:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BV94Mj+u; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731904AbfA1RUS (ORCPT + 99 others); Mon, 28 Jan 2019 12:20:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:50180 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730948AbfA1QEd (ORCPT ); Mon, 28 Jan 2019 11:04:33 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 61E482171F; Mon, 28 Jan 2019 16:04:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548691473; bh=uBqmDd3/c/irPJRO6IdEWDwpSnibYwL5iNOqMAcwUqs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BV94Mj+uFCqyyrhkoEEEOHXyb7N4CmJTZBn8T/5XuGQGYExE6KX2IbVkXyz5reuT2 KxLv5oK03zWROSw4/Zb8sAUZtBRuOpu/BbF+Ul/je2GY1qCf0e5Mt2AWp3fIpBolhQ rpcnv+cAxL8hMV4j+MpG6mVZs59ev3G5OwfOIZ/s= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Bart Van Assche , Thomas Gleixner , peterz@infradead.org, tj@kernel.org, johannes.berg@intel.com, Sasha Levin Subject: [PATCH AUTOSEL 4.19 105/258] timekeeping: Use proper seqcount initializer Date: Mon, 28 Jan 2019 10:56:51 -0500 Message-Id: <20190128155924.51521-105-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190128155924.51521-1-sashal@kernel.org> References: <20190128155924.51521-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bart Van Assche [ Upstream commit ce10a5b3954f2514af726beb78ed8d7350c5e41c ] tk_core.seq is initialized open coded, but that misses to initialize the lockdep map when lockdep is enabled. Lockdep splats involving tk_core seq consequently lack a name and are hard to read. Use the proper initializer which takes care of the lockdep map initialization. [ tglx: Massaged changelog ] Signed-off-by: Bart Van Assche Signed-off-by: Thomas Gleixner Cc: peterz@infradead.org Cc: tj@kernel.org Cc: johannes.berg@intel.com Link: https://lkml.kernel.org/r/20181128234325.110011-12-bvanassche@acm.org Signed-off-by: Sasha Levin --- kernel/time/timekeeping.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index f3b22f456fac..7846ce24ecc0 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -50,7 +50,9 @@ enum timekeeping_adv_mode { static struct { seqcount_t seq; struct timekeeper timekeeper; -} tk_core ____cacheline_aligned; +} tk_core ____cacheline_aligned = { + .seq = SEQCNT_ZERO(tk_core.seq), +}; static DEFINE_RAW_SPINLOCK(timekeeper_lock); static struct timekeeper shadow_timekeeper; -- 2.19.1