Message ID | 20221111221715.563020-3-jim.cromie@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp993717wru; Fri, 11 Nov 2022 14:20:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf7o7pCxjp/Occ+MlZs5foqJUYXyVF+PH2ChuITLwnuEdFde0xonYEMGBSDQ0VM9JgTOsV7v X-Received: by 2002:a17:90b:103:b0:213:5a4d:8138 with SMTP id p3-20020a17090b010300b002135a4d8138mr3978854pjz.17.1668205202092; Fri, 11 Nov 2022 14:20:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668205202; cv=none; d=google.com; s=arc-20160816; b=j8kMtvKZIqrrebsqzAJ/o11HvGEefazf3TkzE20RagyvOCmOpkxRDxCAwbqOuRaVP3 xL4z2E06lY6bGi9Zi1S/qqq5TPEsFoJD0wKRmsfKBzjDsaEpHliCR5yhVt6/tn34YxAq HCPETweCOjtWC9/aUN6lkHt7UL0qkAGibCruDzHJjvh1UhVkFPpTwoU0PVsCTc5cgVSl ldOMrX+2CPE2U3QBT5RV4efboPtTihqhQ/9o0HA7rUuiwDjRPu2Zxww3OOTtqs3MqsZH K5cQKavEQ0BBzPw8htAO/c7+DEgHpgJ7DQWuUmJSRVYYKtnZVDh0ZKVTM+chSsHFMatV 2+9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=B2uIhj+1kniLl98rxc2zGhFR3/ukaY2ppmVrEhlaB1M=; b=llj+0GtERwnYETJvEKASA1mTsd+HEkK6y8+MYzjYBwSWRKbVFDQdcubVgsRTgR1XGs wGuLP/ggz9zqSgF9JwaqUlZGoQSD/Wr+4uGbCvAaf+qZR18tm3O1iNlbGrzTEmGkNC4z WeqhHqVomOFfBF3FiYqNoa8ti9PxdO6gvMZqRBQf4OtVRvD0SzxxIG/LWT0hPmpMAEPu O1SuJaEAeZUzQw5XMRzoB4yVj1x8XmVcqnRybTLo6sm2H80glra7FVjeTHNs9lHoHxu6 6fhFUMf1dxpfYOS6Mezk0Rm2P3IROpjQW6ksl99hsF90nS0VaxweK9ojx/QwxqXcPptb Y6pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eplYE5X6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 18-20020a631152000000b0044b817adee1si3633045pgr.78.2022.11.11.14.19.46; Fri, 11 Nov 2022 14:20:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eplYE5X6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234567AbiKKWRj (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Fri, 11 Nov 2022 17:17:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234473AbiKKWR3 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 11 Nov 2022 17:17:29 -0500 Received: from mail-il1-x135.google.com (mail-il1-x135.google.com [IPv6:2607:f8b0:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D974657B77 for <linux-kernel@vger.kernel.org>; Fri, 11 Nov 2022 14:17:27 -0800 (PST) Received: by mail-il1-x135.google.com with SMTP id l6so3185828ilq.3 for <linux-kernel@vger.kernel.org>; Fri, 11 Nov 2022 14:17:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=B2uIhj+1kniLl98rxc2zGhFR3/ukaY2ppmVrEhlaB1M=; b=eplYE5X6uNXmUiYQeBqfuI/BDxP9+t/E/ns/FxNcmLmjgfFnpJuJkKQJ0UmFT3qrs/ AwUE8VkjNjy9Vf85VXwHgfbS4fvL44x5SDItJFyqmnF5Jth0zUmgu2phi2/gQc2lQHG9 s1KqgxBf3KkIEnrK9RsBlDhO3BR+LDp+Gycfa+/sha6Ox54KfOMMC8et3UBKuiREJL/E G9yvyErEP55T9w80uST+yv4ZdFV+waY/fCwV32PMwgxagO0HxDrsjzyVBuMZMFkuMUH+ su4Z70L+aqjJ426bfG5pHPxpgaBp2fp25DIc7yaSctwfmKGXticmkvwuoQWbFfwKLZQt 9liA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=B2uIhj+1kniLl98rxc2zGhFR3/ukaY2ppmVrEhlaB1M=; b=heAuYskw60aP/6SUotlvwltxcIWwUL3ZZx58clJmH2FuBHVe771tf+9YoP3K58byuR sQG7Vmb4LEfYLXRpvviEvy6UkpQnQH9+aoOQtQvGPiz1EwoYUTa9mhWSbrhd/TLVASWC ZR2DvKl9Rnh5EDvZRWwLKiXpDJPgHUxz6xrrlVuKPNTBOygn9aHWUaJBjIpb5yqFCV4k XXSovv/IahifrYHSOn8pniCCGF9rI22tuXG0L03pcirGe0VgtKXsPCXnjvur7HUa+tji y8KVOgWPCWDQVTnjYsJQnpSKaU1cGD7C1PDAjPwLBYg95tYc5uM21TsBT+ySQuiJ6OlG FsxA== X-Gm-Message-State: ANoB5plo7XSAkdN+JAe4EO3iUcIp5uEQJRs7PChxtLytfjZM2O5mKjdn k0qWibmsmx/f2FgVXBoTNtTFo2TFtmM7PJrY X-Received: by 2002:a05:6e02:1c03:b0:2fa:52cd:80eb with SMTP id l3-20020a056e021c0300b002fa52cd80ebmr1943790ilh.236.1668205047214; Fri, 11 Nov 2022 14:17:27 -0800 (PST) Received: from frodo.. (c-73-78-62-130.hsd1.co.comcast.net. [73.78.62.130]) by smtp.googlemail.com with ESMTPSA id c5-20020a928e05000000b002f611806ae9sm1113457ild.60.2022.11.11.14.17.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Nov 2022 14:17:26 -0800 (PST) From: Jim Cromie <jim.cromie@gmail.com> To: jbaron@akamai.com, gregkh@linuxfoundation.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: daniel.vetter@ffwll.ch, seanpaul@chromium.org, robdclark@gmail.com, linux@rasmusvillemoes.dk, joe@perches.com, Jim Cromie <jim.cromie@gmail.com> Subject: [PATCH 2/7] drm_print: fixup improve stale comment Date: Fri, 11 Nov 2022 15:17:10 -0700 Message-Id: <20221111221715.563020-3-jim.cromie@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221111221715.563020-1-jim.cromie@gmail.com> References: <20220912052852.1123868-1-jim.cromie@gmail.com> <20221111221715.563020-1-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749239938014700215?= X-GMAIL-MSGID: =?utf-8?q?1749239938014700215?= |
Series |
DYNAMIC_DEBUG fixups for rc
|
|
Commit Message
Jim Cromie
Nov. 11, 2022, 10:17 p.m. UTC
Cited commit uses stale macro name, fix this. And improve the explanation.
When DRM_USE_DYNAMIC_DEBUG=y, DECLARE_DYNDBG_CLASSMAP() does the
mapping of DRM_UT_* onto BITs in drm.debug. While this is still using
the drm_debug_category enum to do the mapping, its doing so somewhat
indirectly, with the ordered set of DRM_UT_* enum-vals. This requires
that the macro args: DRM_UT_* list must be kept in sync.
fixes: f158936b60a7 (drm: POC drm on dyndbg - use in core, 2 helpers, 3 drivers.)
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
---
. emphasize ABI non-change despite enum val change - Jani
---
include/drm/drm_print.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h index a44fb7ef257f..06deb58d5af4 100644 --- a/include/drm/drm_print.h +++ b/include/drm/drm_print.h @@ -276,7 +276,10 @@ static inline struct drm_printer drm_err_printer(const char *prefix) * */ enum drm_debug_category { - /* These names must match those in DYNAMIC_DEBUG_CLASSBITS */ + /* + * Keep DECLARE_DYNDBG_CLASSMAP args in sync with changes + * here, the values define BIT()s in drm.debug, so are ABI. + */ /** * @DRM_UT_CORE: Used in the generic drm code: drm_ioctl.c, drm_mm.c, * drm_memory.c, ...