Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2765132imj; Mon, 11 Feb 2019 08:08:33 -0800 (PST) X-Google-Smtp-Source: AHgI3IYaOPK7QAWF9mHovEzL8ukleg/BpJW0M+oXiZR4qpRHJcTZZCkp0BuAPxR/2meqxjcdJoBs X-Received: by 2002:a62:1b83:: with SMTP id b125mr38661096pfb.42.1549901313544; Mon, 11 Feb 2019 08:08:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549901313; cv=none; d=google.com; s=arc-20160816; b=0Uteq9kq2YxBLH+rqaOTXgFMLVw3E6ZbbYnu8B3B1jOHR/B4C+QBEzVjxR66tRhaGR UPzo+0qPONgb8K7YYkMa4z+9QtAow0K5Y/A0RNSzc4/o0C16DQuFAJPVA7Dnxk6dublv JD9Z2nDQXjW5AfYrdmgWKf44GoESpGF7dUSiQZQQpVqr8U5MKaKyhVJtdM3vrh2dNHpf UeQBA/NBxzfz7+LDO4uUybTrlX6lujcDQJQbY2oA28mXYFPqajItESirXmKBWMoYDqnZ dPhyGNsDBWAtvlooFFrf1Ku++iorlqsSpwR3jnVxYShCY0FG0N74UzOMyDYvI4YR66iw Fe3Q== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tWuXhrnVP4RmyieoOY72DEmr4rchDbpxKQ3uv185ZJ0=; b=KRkJSOg6Ho5MCBQ36jqmqvk5P34NWphh3Zkm62+Hwn7CkALs4rYHRxHl2KOhSyDtqp nETrBBBxClH4evUTqcmrEH22Zh38b+8jYZbIn0jsuziYlX/QqpWIquexY2ZuMPKWI/Ps NV9nA6kwkOzBxJYS9rDOSGDjOzjuZHcuCrUqvFovDI33NHuFJusd6y0tKLNQdH77SCGS b+kbBlNfN1cSHJjZyOO1ooA5fK8BDNO0Mpvofmo+TeKHoGqAnga95EHFyx9/3hHn2p5v NvHkAo0hu7r4Ocs0+idp5QvT0BAYiDV8TmXvykTAZLVeks8tOohFIJg+KHGZh99DKS2P 9lDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MZA9Egkw; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j14si2563209pfe.152.2019.02.11.08.08.17; Mon, 11 Feb 2019 08:08:33 -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=MZA9Egkw; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729718AbfBKO1g (ORCPT + 99 others); Mon, 11 Feb 2019 09:27:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:33386 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727966AbfBKO1e (ORCPT ); Mon, 11 Feb 2019 09:27:34 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AB29220821; Mon, 11 Feb 2019 14:27:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549895254; bh=XhC61yACJXCdksXtOf2jJX1KxZ7y5aqEoCzff83DXqs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MZA9EgkwdCyIkq0bJBQ8F0D68M4Bu1jBOHr+kB564vPld/wMouILND5Br9MqzDcoB m8AkyXLe4WwgtJdBuhlnqgXj895LwLOur1PQ0ShdHi4sWzohOxwxYHaAiAlhqZeZZH ng17yuLkdvxBeKNfFa6EpJ7mz7uW/epRYQionQr4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bart Van Assche , Thomas Gleixner , peterz@infradead.org, tj@kernel.org, johannes.berg@intel.com, Sasha Levin Subject: [PATCH 4.20 114/352] timekeeping: Use proper seqcount initializer Date: Mon, 11 Feb 2019 15:15:41 +0100 Message-Id: <20190211141853.085192960@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ [ 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 2d110c948805..6c9493495538 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