From patchwork Sun Jan 20 17:12:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 10772477 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6D20013B5 for ; Sun, 20 Jan 2019 17:12:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47EEF29E42 for ; Sun, 20 Jan 2019 17:12:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3604C29FAA; Sun, 20 Jan 2019 17:12:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 537DB29E42 for ; Sun, 20 Jan 2019 17:12:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3D8EF89DBA; Sun, 20 Jan 2019 17:12:44 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by gabe.freedesktop.org (Postfix) with ESMTPS id BABC489DBA for ; Sun, 20 Jan 2019 17:12:42 +0000 (UTC) Received: by mail-lf1-x144.google.com with SMTP id z13so13826576lfe.11 for ; Sun, 20 Jan 2019 09:12:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=0hcuzYMxzxptMBz8tnVB/0di8A8jQwVP+EWCptGZik8=; b=ElpZPnFQwUUjV6IOkOxncvzOQz4/QvWjI6ZLtqzoo4pPAoNJ8spnHU6wOOKniu61Hf ZT2W31NQ+2aRXtpKUm6tscWUpqB80wI1LB3E9d8r65p7jWX1A4S0YcWwe9gEYgmq2e/X /3kWuIJGa2+V9Xb97OPfOqoJM8mYLcJG4awufzULMAxlASTcRAtXCTf0Mze0/90jAiV7 Tw/qlnAnIHtjtQxMp4L/vr7lnPrMq9bME6hpVKjOYqR69vcTMfZbfoR26UFF/FcY2TH7 O5eoM1ocy/XTEyyZgyKHYYo5dW55EuTp2OI4WAaT90FSrMKyOkyoekfYdF42n6nqCsm1 Aycw== X-Gm-Message-State: AJcUukdIB5cdh/hf5vd1zI+65/CM1NrmAWrHpSNOOy4N6IxUYnJ5jM10 4jEo9+lLHXAThfWBVFKsjfZGrL5H X-Google-Smtp-Source: ALg8bN5rc6y7c+TXcVvM07YnW7iBVyYWj78WE2chLnuAp/Kh+3qKedGFtG33EBM9rtUeqz0fcSdPpg== X-Received: by 2002:a19:f718:: with SMTP id z24mr1977089lfe.97.1548004360757; Sun, 20 Jan 2019 09:12:40 -0800 (PST) Received: from jupiter.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id f16-v6sm1831203lji.88.2019.01.20.09.12.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Jan 2019 09:12:40 -0800 (PST) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org Subject: [PATCH v1 1/1] drm: fix drm_can_sleep() comment Date: Sun, 20 Jan 2019 18:12:17 +0100 Message-Id: <20190120171217.12508-1-sam@ravnborg.org> X-Mailer: git-send-email 2.12.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxime Ripard , Sam Ravnborg , David Airlie , Laurent Pinchart , Sean Paul MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Reversed logic when writing the original comment, now fixed. Fixes: e9eafcb58921 ("drm: move drm_can_sleep() to drm_util.h") Reported-by: Laurent Pinchart Signed-off-by: Sam Ravnborg Cc: Laurent Pinchart Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter --- include/drm/drm_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/drm/drm_util.h b/include/drm/drm_util.h index 8163d35f8327..07b8e9f04599 100644 --- a/include/drm/drm_util.h +++ b/include/drm/drm_util.h @@ -71,7 +71,7 @@ * FIXME: All users of drm_can_sleep should be removed (see todo.rst) * * Returns: - * True if kgdb is active or we are in an atomic context or irqs are disabled + * False if kgdb is active, we are in atomic context or irqs are disabled. */ static inline bool drm_can_sleep(void) {