Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp5308088imm; Tue, 26 Jun 2018 09:05:42 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc1HSwk0AIrfjDJZRynL0OM1kU8p0z8nH+qGcjyqbGd7gum5MdYMe/kns4QjRiYf+sqK1WT X-Received: by 2002:a62:a3d1:: with SMTP id q78-v6mr2156308pfl.5.1530029142435; Tue, 26 Jun 2018 09:05:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530029142; cv=none; d=google.com; s=arc-20160816; b=b/B5gEkRI8wlAr9gDRX+XWOTK7tiSJRZfb1VDG1BRvFQPamRHkTIGg1DXTtN4RwK8e RWTs8NLzznhgBvxWFxqjfRdrilVfqSp6/c1xkdq8klQc66j6QmN18xwjeoWNu4puK760 0FkDC+i71DBgAR6C8Wio1TN1sEvo3NqGEFyOWrkow+SFkYgnty/eHHxNA8Hj8QLD72AL b1Uqur5N1md5w1JV1DzDetf2GeT3kQJmv18NjT4raa1rKc7/5PU8QDe4p8fUypL2ohHa 8J7mhcCV2RAC4bpD72jOp5Dm8bVwhHcg7l/TLPWlwgjYezWA3q/bUJ4JKgqHduCtxCyo BAog== 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:subject:cc:to:from:date :arc-authentication-results; bh=npCKSudYqb0d26ANY8rsI12iNO+gOdVfcBXWvI8cNLo=; b=OWKtDjEhhTn17qb9VQLZgdzWk1n1/hwWlwykV2PfmUxpURIRV2cw/zDlb9yWtuCfR9 A8SEvuWNCSJATOzrKHLfevkmh6Rsd1kjPjgLIv8yoe9iqPmUzvhqZ3oaquABKJSWf2WZ J1h2sI6EpNg4BAUR4xnGHJE3D70xEAm4SSlQhlm9equ+NBU3jgcO/+RYudSiugLqOOmd FoKiHyUJeypO8xhjX+2SZePxPza0/nHzUXgFGmcYmDEVmqNp9vxv1mcA56sYmqLy8j/V PXvGhbM4HgCjOCbyw8LxIuET85cm3KfLGzEHR32e78i1UjnJ0+gS9v8tGQkKjK+HaAbZ cvPA== ARC-Authentication-Results: i=1; mx.google.com; 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 c7-v6si1629432pgn.132.2018.06.26.09.05.21; Tue, 26 Jun 2018 09:05:42 -0700 (PDT) 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; 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 S965736AbeFZOro (ORCPT + 99 others); Tue, 26 Jun 2018 10:47:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:57150 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965359AbeFZOrn (ORCPT ); Tue, 26 Jun 2018 10:47:43 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (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 3072626C93; Tue, 26 Jun 2018 14:47:42 +0000 (UTC) Date: Tue, 26 Jun 2018 10:47:40 -0400 From: Steven Rostedt To: Hans de Goede Cc: Bartlomiej Zolnierkiewicz , Petr Mladek , Sergey Senozhatsky , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/3] fbcon: Call WARN_CONSOLE_UNLOCKED() where applicable Message-ID: <20180626104740.0067bd5e@gandalf.local.home> In-Reply-To: <20180626135535.2990-3-hdegoede@redhat.com> References: <20180626135535.2990-1-hdegoede@redhat.com> <20180626135535.2990-3-hdegoede@redhat.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 26 Jun 2018 15:55:34 +0200 Hans de Goede wrote: > Replace comments about places where the console lock should be held with > calls to WARN_CONSOLE_UNLOCKED() to assert that it is actually held. Why replace the comments? I prefer them, even with the WARN. The reason is, when using functions, I don't tend to look inside the function I'm about to use, but instead, I expect the comment above the function to have basic information I need to use it. Especially what locks are expected to be held. Please keep the comments in place, but the WARNs are fine. They are not a replacement for the comments. Nack on removing comments. -- Steve