Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2681276imj; Mon, 11 Feb 2019 06:58:13 -0800 (PST) X-Google-Smtp-Source: AHgI3IZkQmNjF96EgXUkyfYv7kLwWPG84I3KcsVwCHdWNKc8eJV/6NCNBLc/hTL8v+UxEqGkQG/7 X-Received: by 2002:a63:2e88:: with SMTP id u130mr34277033pgu.9.1549897093291; Mon, 11 Feb 2019 06:58:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549897093; cv=none; d=google.com; s=arc-20160816; b=uaV6C2tq8vG1jg+Ne4NEY7V9mP6icZZZcoqohfJr/8ili5oQSyH6GMeUk4v80xIM8T c20XJwjXcvPAmjsx+SYutgc8kLArhhZpmBOB241rihC0IZ1PopRvSyQN86Og2SC4iYae p04XdjdB+YQjsbP/Caj2Um0QkwZJ8CcTdl7u/besIYC6HntGMTm9V7yRvWIbja27W7Pa K286P6vftq1kMz93ujMFuR7JpMLLnaxGIcSV+g48Nqs5t/DQRzSCkolMlQVecK7gmKkc o16ZWU/IZXQ9yANz+kuxUR4LGxz/4JcRBxD3WZy+8yjdK8XBQRt37n7cQVOzzakdzkzB hO4Q== 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=hxkw17O0Yw7XxS2mvu2keBRZ+MheqEUwjhPxwOvgL0Q=; b=Zq1x/GRR102pFB0/8WfHlFo8ZJL4xPm2lGpG1dWbrUm6JoD6yeYwEDoFiqObETnyAp iLOZ+z0zizqFk3Q5/np6aNb9ALGCvk+RfaudPAhkuf0XnG2ofyvQ330h0d4jY1Rjdfml MN30N+/MqiW+s1UcTaT428knuGI71yDUYHL8pf2BEcg+r107r0yEa/rPTJ0f+UzLBaZi UC5MCB9k/GKWH6tdrcldqRY2I+7Wg3pUwjrhcMTHFxVSdUrYRgeGRg03EJeCUqahRFz5 JulcJohtFlpTclU5aidNcpJX07lUCVWpvWXmODRUjwJYOOSf0xXsYhFGUOr+fiBBb6BE nE0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mpr04hig; 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 v28si9770591pfa.238.2019.02.11.06.57.56; Mon, 11 Feb 2019 06:58:13 -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=mpr04hig; 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 S2389262AbfBKO5B (ORCPT + 99 others); Mon, 11 Feb 2019 09:57:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:44290 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388616AbfBKO45 (ORCPT ); Mon, 11 Feb 2019 09:56:57 -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 8C35C2229E; Mon, 11 Feb 2019 14:56:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549897017; bh=O6yjECTnMUzduT3DeNQ5jjP4lcRhpfDJN0JQRdizBEs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mpr04hig/yBhJAgbXbwLGY8JmoWZvSLsLo044mfh6z7LcNNHQak3thKancOa0HqnF HYHDIlatmGodaARQ2bBFa4dAfugib8ImCsW5T43IqVSCn82w7X+xH0q1osRdwEKLN4 ahPmfNwSUbuXnSN8w0BwNd2aUeDliYHWZKRGUbEw= 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.14 064/205] timekeeping: Use proper seqcount initializer Date: Mon, 11 Feb 2019 15:17:42 +0100 Message-Id: <20190211141832.975785460@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141827.214852402@linuxfoundation.org> References: <20190211141827.214852402@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.14-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 2cafb49aa65e..1ce7c404d0b0 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -41,7 +41,9 @@ 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