Message ID | 20231012172137.3286566-13-jim.cromie@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp1388726vqb; Thu, 12 Oct 2023 10:23:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHs/bdRti/VwUB1ePBI5xzTv6O4jWCSPqEZNzc91jqxKja5GkWlrWWp5+xRGtKmWzGgUDSL X-Received: by 2002:a17:902:e5c1:b0:1c3:6d97:e897 with SMTP id u1-20020a170902e5c100b001c36d97e897mr27688358plf.5.1697131401725; Thu, 12 Oct 2023 10:23:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697131401; cv=none; d=google.com; s=arc-20160816; b=RIOMQeQZph5MR9u7AXb/N7Ges9u5hIZWQ6b+tgKl1MpzQgT1hIpZ034wJNMjQHKwk7 pZAHNtCR6PU3KJqEu7tZVbMAOqHxRuI1kxcKEfpOAvm5Pe+jYOcxMnO636NjDilpXxBr JCBOqqo9+bIQ1JpDf4GUvCie7lZJA687xhAVOSrCqWlYDX59mavYIhW//ph+BoBVAp4k SuF97aeOmf7ahQXNO2XVY/1cySP8VQPhDO+ZZD6srYsV9YcHKtuBjmHgmTnO2f/8zQ8A x3LnLr8Rm4nJuuteTWCR8Rc//5Fp3RY11j2J8p6BDxSnxvHAuNYldLJhbPzsZUcHEOFT y8Zw== 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=mLvXeLnsRUQ3/TUrQnBU04ibB7JIWTVa6JOjlgQ9hVM=; fh=iMt9mR7tPHpILUTScbdc/cv5Bu8Y4MLmy8xlWClXVSw=; b=rxnUEfI0SWYA8SJb5mLbrwI+Y8fxAb/NhomLKQ8sxZrfl6rBPtrUQEGscupXlbWvDP 7ygYBelbYjgqBXdOSLQoIPxcC4poYnrPMw6vd/Gch3cchUIwdyOzc+HdRXyIyKWH+aE6 A7X6i4xEqT+FgaSgGGT0RMb4jbEhzKL2MgHPYG95oLL7q8hsWYnR1yKNSLjSG45kmBRD FVcfpBIaJIFsVSgfZrUj+nAmEFHKMuDj+sl1R48dKCRVh/tDJXN1nWvPaDzIyz2/e7Ln BbmlpM+pf9KV3G98KtMZOzArvXcRxNGXxVwkDqYjaUow3lyixCY7jniI7CY/VKjxAo7V V+LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=glp09uPm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id t12-20020a170902bc4c00b001c32fe6cdf9si2457125plz.386.2023.10.12.10.23.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 10:23:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=glp09uPm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id B08B983C9F8E; Thu, 12 Oct 2023 10:23:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379669AbjJLRXB (ORCPT <rfc822;rua109.linux@gmail.com> + 19 others); Thu, 12 Oct 2023 13:23:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379693AbjJLRWb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 12 Oct 2023 13:22:31 -0400 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A75F9185; Thu, 12 Oct 2023 10:22:00 -0700 (PDT) Received: by mail-io1-xd30.google.com with SMTP id ca18e2360f4ac-79fca042ec0so46715739f.3; Thu, 12 Oct 2023 10:22:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697131319; x=1697736119; darn=vger.kernel.org; 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=mLvXeLnsRUQ3/TUrQnBU04ibB7JIWTVa6JOjlgQ9hVM=; b=glp09uPmcs6e231kucILmNnXu5+05D1GU6QVqdGpMqSINIYi8t1QT7FpHwypzLcNKZ NWrncl6v1GhJwxpd82r49LHmW2OD2A+WnHWyr0ThWQWl8padmnTqQreBlbDLgKOl/LSK ds4+NVnqj694c3Kt7CYJsf2FTkG5hdaH2bmJKVCKVmw056Mbt/lbG74iywcuXaaYeyEY k1Pgzk0Y53ugL8QlugK5pU/l06huewn29VNR8vE1OTZzvE7GgGLaBiYmzv2PYUTL8MEr JyDXaX3/VisFgfHgP3XQ1+y2BOi6ab3f15eViYNNc+87L4wR+4saghdT7pMe9ADIEE8J WJDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697131319; x=1697736119; 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=mLvXeLnsRUQ3/TUrQnBU04ibB7JIWTVa6JOjlgQ9hVM=; b=hkuFiwgq4/XERjaclxjdryBGQL2BtJ3WjZAnj3OmXAXvWQs3/AFBRo2Ryw6pfRIQBq yYwwMK+HiuEyW+si/TGjegVqjyflKP+KXvq0d8F1xMtnVg6p3UUM62XFyRR69LHW+Wxn d1BewWR1gLuHX60zIoaDyFM58K66iMed3xxi3xYP5zy97znru/8SCLmLFyoMkgyBz60q 79ZGUJRiQUJ0iVUysC8X3OEP3TKf/Rowma5rg/apL55v+UHe+Y2xsKrPp5bj/UmU6j78 ulk3P3vFflKXMfvsQe6C2dfwd+efHlGkO3f2L7fk5upU2B7hhmabKDFuzZVcJTjn3EWS u7hQ== X-Gm-Message-State: AOJu0YxKNTwJpE9q2nlRvbT2Uyv0pcQvhz8VeNgFh3YLpuINODTek0Mv rZPokL1be60KLbcTXNW0j+NRM6a4wYU/9A== X-Received: by 2002:a5e:dd0d:0:b0:786:7100:72de with SMTP id t13-20020a5edd0d000000b00786710072demr25476578iop.16.1697131319452; Thu, 12 Oct 2023 10:21:59 -0700 (PDT) Received: from frodo.. (c-73-78-62-130.hsd1.co.comcast.net. [73.78.62.130]) by smtp.googlemail.com with ESMTPSA id r25-20020a028819000000b0043cef0711c1sm3992211jai.158.2023.10.12.10.21.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 10:21:59 -0700 (PDT) From: Jim Cromie <jim.cromie@gmail.com> To: linux-kernel@vger.kernel.org, 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 Cc: daniel.vetter@ffwll.ch, jani.nikula@intel.com, ville.syrjala@linux.intel.com, seanpaul@chromium.org, robdclark@gmail.com, groeck@google.com, yanivt@google.com, bleung@google.com, linux-doc@vger.kernel.org, Jim Cromie <jim.cromie@gmail.com> Subject: [PATCH v7 12/25] dyndbg: reduce verbose=3 messages in ddebug_add_module Date: Thu, 12 Oct 2023 11:21:23 -0600 Message-ID: <20231012172137.3286566-13-jim.cromie@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231012172137.3286566-1-jim.cromie@gmail.com> References: <20231012172137.3286566-1-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 12 Oct 2023 10:23:17 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779571256164931375 X-GMAIL-MSGID: 1779571256164931375 |
Series |
fix DRM_USE_DYNAMIC_DEBUG=y regression
|
|
Commit Message
Jim Cromie
Oct. 12, 2023, 5:21 p.m. UTC
The fn currently says "add-module", then "skipping" if the module has
no prdbgs. Just check 1st and return quietly.
no functional change
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
---
lib/dynamic_debug.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index 8beb98a831f5..45870a699507 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -1242,11 +1242,10 @@ static int ddebug_add_module(struct _ddebug_info *di, const char *modname) { struct ddebug_table *dt; - v3pr_info("add-module: %s.%d sites\n", modname, di->num_descs); - if (!di->num_descs) { - v3pr_info(" skip %s\n", modname); + if (!di->num_descs) return 0; - } + + v3pr_info("add-module: %s %d sites\n", modname, di->num_descs); dt = kzalloc(sizeof(*dt), GFP_KERNEL); if (dt == NULL) {