Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp5491584imm; Tue, 26 Jun 2018 12:11:43 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL9BdzPkVuqB31DWyTVihp7umavf1Emq4C6VF1UoXs97/GBYW+nghDOkpyzKhnoQBaXIzh6 X-Received: by 2002:a17:902:bccc:: with SMTP id o12-v6mr2861860pls.169.1530040303048; Tue, 26 Jun 2018 12:11:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530040303; cv=none; d=google.com; s=arc-20160816; b=i9qbR6mY23u0jbstQJ7jNAeW26tJNpA9KnQRqR+ACkQ22rp0EwyoxVNudKaulsLNzR WcQ3NG1mOjjKSv7aZ9MlQzZPXfhOHenljfjNIGe8flYe7psvEDCeWkvWYpIQxzAAnbfJ lzfB29XY2HwcWZ8hcBu+eIsX3lp+kUzUkcVCrLJywY1erSedtilSHq7Win8glHM0H9Sy Cipzn27T7jUOTrwYJBwJU8kIV9H+wFkk6bWbjPoGrVRgkcW4OeX8P0XqA62AwEcvRFYW h5CtOwK+VBnwRDvAqH1XaeooRfCAzRkY90cqVJ8rHHZf3aBl1xBUd1rs0P9SDyb4+rPk NISQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=+CC/jjQ9PI6r3pw6gJkgwB2ZG00Mz7S0Cuf6inRAS/U=; b=XR2GaJDyFnsT1RNggKbn5H4/c7sdMW3/B+ygfFqVIw/MGw5XjbJArD0GyYzGtYh3OR Ikb+uruWUiws4UjXWe9KdBDYl/yE3ExId4D3AEJOVAwskLDPNw2MQKnoGpPekngG16MD v8rcDZ1EFYjEvFVlqY9uFXlFCPOd5U1FPJUQ8Y1ZN0cMJtjzgVLRAOVU32bgbz/NXY7N lvpH6xjoM9v/i3zQxVDxIpToM3U5IoKZAsrlwCWdJqHZO8UQlj7/YKHz3IVXi3sCc679 4sKNebYq1wZyp7FR+MC9oTizTjYL+WXKs942AkdBZBUlKIAIyZvqjugRe45WYK6BGPlM aN3Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y15-v6si1833223pgc.215.2018.06.26.12.11.28; Tue, 26 Jun 2018 12:11:43 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933940AbeFZS3M (ORCPT + 99 others); Tue, 26 Jun 2018 14:29:12 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:40043 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932509AbeFZS3K (ORCPT ); Tue, 26 Jun 2018 14:29:10 -0400 Received: by mail-wm0-f68.google.com with SMTP id z13-v6so2854252wma.5 for ; Tue, 26 Jun 2018 11:29:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+CC/jjQ9PI6r3pw6gJkgwB2ZG00Mz7S0Cuf6inRAS/U=; b=DEdgqKCLdtk7GJQghWtckdV3rZtjvqDfNY2lVN5TvVbv+6QL1Mb+TdFvwXRZkPg8j/ IhowThfLQtI92IE09GgQPe1XCTqit9OABLfbN+Qu/7m/NcYgkoO810iGm1AUmYlpAfQ0 c96KTGVUg4cN09PJJCoA+zlDfTlFFowgwYgIHPp9/szNG05229Zjzq6OELecuEY48nik CFaeKo0/WbNcsBjEunELKn9Vg3qJGyiJsixXJ95UGHPrUP4Vh2WEHKcHFpmCL2XBveXg qzkWjy5vUlRnwladYZ+5fLzr6fjLht9BICE35pqZU7ueGAkvN75kV+CtuOQ769ACbuGp 2VSA== X-Gm-Message-State: APt69E2O/JQ3tf08IAcb1bGUVjnJeOtBLIuuXWacmRMP/ddBmqztplS/ ZMVoY3QlH0/+KKX35NnfuRbYL7JhuXM= X-Received: by 2002:a1c:2d15:: with SMTP id t21-v6mr2454697wmt.42.1530037749343; Tue, 26 Jun 2018 11:29:09 -0700 (PDT) Received: from shalem.localdomain (546A5441.cm-12-3b.dynamic.ziggo.nl. [84.106.84.65]) by smtp.gmail.com with ESMTPSA id k12-v6sm2988196wrr.40.2018.06.26.11.29.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Jun 2018 11:29:08 -0700 (PDT) Subject: Re: [PATCH v3 2/3] fbcon: Call WARN_CONSOLE_UNLOCKED() where applicable To: Steven Rostedt Cc: Bartlomiej Zolnierkiewicz , Petr Mladek , Sergey Senozhatsky , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180626135535.2990-1-hdegoede@redhat.com> <20180626135535.2990-3-hdegoede@redhat.com> <20180626104740.0067bd5e@gandalf.local.home> From: Hans de Goede Message-ID: <91a98281-979f-9479-a31a-363243948372@redhat.com> Date: Tue, 26 Jun 2018 20:29:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180626104740.0067bd5e@gandalf.local.home> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 26-06-18 16:47, Steven Rostedt wrote: > 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. Ok, I will submit a v4 with the comments left in place. Regards, Hans