Message ID | 20230113193016.749791-7-jim.cromie@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp446528wrt; Fri, 13 Jan 2023 11:33:22 -0800 (PST) X-Google-Smtp-Source: AMrXdXsmCxGK02+/Ar2pLCzJ+yWPqDLlBiVqssXWxv5Ko7h3bIlurbLnbDvVlaG9MCSh7xGmhjlt X-Received: by 2002:a17:903:22c5:b0:193:2ed4:5615 with SMTP id y5-20020a17090322c500b001932ed45615mr27797213plg.29.1673638402593; Fri, 13 Jan 2023 11:33:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673638402; cv=none; d=google.com; s=arc-20160816; b=Yqye14R0Phv4ONeyl+FtI/cI9memBBpRiPBsGpCDjbBSSYwgYCLIQKUo4YYxPGbHJf K8S4U6WjWrbXURkvznSsQc51k7y7v1Y+F45B4WPQk2zt2Ayh5SxPbxDMvuAOhJS/BL5q 1rLMeoVeN1FSCeMOPTpnRBbT1vzZjdnlM07YwdDCW410FnvyPkjhl60lCzK3y4QJusdu 4HlAOTDHcVrJLfpz0PmAs8Oy3Eb+Zn4h3lDE6PzMCOKYw1qshFp/p3GMRmk7SbKWORIl Oed34+3WVobbnYY9aSJYHyKGNC2qX7RzBiGzgGRA69KAmv9+/IdQ3WMtEO9irS3anDlJ UW2w== 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=WpVmv1h4fPy7xv9D1lk2U93L73H6vXkFF3YkrgZSyFU=; b=TgRph6DaM3mWn3Vl/Vwv6w75Oiv+tF2HtrPIp5eMlHBu8SiDMT7piIv3nply2eByuN nRFDRcC4uhqzD+s5a94xPiKhvU+dKZRXeAuKlzHZZmT3DRPt/tt6dF8nx0kDht3Gx8rA uxnS5XVpOTP0o9+wbIpXgCsttE3M6qp7I4sXlypGdUfIpZXJV8qzzPHOdCsyZVSWdY6V i7ufw1KgJDxP0rsSc5k896oIiY7YD5+qZ9skxD21YCi9vqDyoTws7tK5nJzet7TGUhMV HAfZDHfrPPbLhRDS5CohJK1tYJT9Y3avMavX1GESwsVJmaeE/PWpTchxxm4VU0M/tzJJ ddMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gFUquBpF; 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 6-20020a170902c24600b001945a6a4bc2si6078165plg.416.2023.01.13.11.33.10; Fri, 13 Jan 2023 11:33:22 -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=gFUquBpF; 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 S230421AbjAMTb6 (ORCPT <rfc822;andrewvogler123@gmail.com> + 99 others); Fri, 13 Jan 2023 14:31:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230108AbjAMTat (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 13 Jan 2023 14:30:49 -0500 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B4B187F0A for <linux-kernel@vger.kernel.org>; Fri, 13 Jan 2023 11:30:49 -0800 (PST) Received: by mail-io1-xd2f.google.com with SMTP id q190so10874200iod.10 for <linux-kernel@vger.kernel.org>; Fri, 13 Jan 2023 11:30:49 -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=WpVmv1h4fPy7xv9D1lk2U93L73H6vXkFF3YkrgZSyFU=; b=gFUquBpFFu+HxDwgXo2T7EYvrJWxXCrd1buhezZ09V2hbi5S1BKEdRMtdlhLOAkV6h CbplhtQMj3XxYm+uO9scNEFGWh2aBYnlDKwjfmx7FSV3CjXdyt5JaYzgnzr4BNRzCu/8 5NdHHcLhPyaJCq2v5glPcalnBcf4QlnLw2MpnwmWdhjCVdneaDRkYuUWA95X6ts+D9PW VqvO5JmqXxi5U+aEfJWiKN1mel1MkAd939pDrEn8+rQnvfiDPXni5X3IBtN1XvL8hDmI FzQpFi6FmrIld0rYG6M09QnDte8qZp4AS3K3aJyNa1hv83c/39gnId7Czd6yKPLDyIvr PSSA== 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=WpVmv1h4fPy7xv9D1lk2U93L73H6vXkFF3YkrgZSyFU=; b=MasbqsbmopZusZO17wpP1qWJfzVGnPsd85cuxtPbjYmglbqDDRGbzVna2FWqVu6v/N GqyssvC6lk/LNnebuSWE08GrzN0jIOeVjFbiZ5kztiHHMOraflvhtpwCECnVWbFqGXLS 3b0JOezvnfNhjk7s2z1ppZO8uL5lIfxbFjdmMo/E3UVOQVKB3nWlo4NqGO1KFobM5fBZ y1RGjDp+M8p1a+Ff8d3eqlKA0UdAlsn0IzSApUvay89EGf/xaDA8LH1GnncEUw73owG8 6TZrYSdTgtZmTVu7v36/bKc3WSEAg1WXJEhEELCGhWKH458xczvzEurHRYz7ANx0pqnG hLPA== X-Gm-Message-State: AFqh2kquC19rrBtur3XghwitCxBG76XMs7JWo4VqMXSgHEGzw/jWhf70 qf5cdkcYac6YBq5Tnd+4YXZlyTFlFxd9ug== X-Received: by 2002:a5d:9801:0:b0:6e4:eab7:8c67 with SMTP id a1-20020a5d9801000000b006e4eab78c67mr53011199iol.14.1673638248128; Fri, 13 Jan 2023 11:30:48 -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 e32-20020a026d60000000b0039e583abceasm6497289jaf.68.2023.01.13.11.30.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 11:30:47 -0800 (PST) From: Jim Cromie <jim.cromie@gmail.com> To: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: jani.nikula@intel.com, ville.syrjala@linux.intel.com, daniel.vetter@ffwll.ch, seanpaul@chromium.org, robdclark@gmail.com, jbaron@akamai.com, gregkh@linuxfoundation.org, Jim Cromie <jim.cromie@gmail.com> Subject: [PATCH v2 06/20] dyndbg: drop NUM_TYPE_ARRAY Date: Fri, 13 Jan 2023 12:30:02 -0700 Message-Id: <20230113193016.749791-7-jim.cromie@gmail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230113193016.749791-1-jim.cromie@gmail.com> References: <20230113193016.749791-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?1754937061819151143?= X-GMAIL-MSGID: =?utf-8?q?1754937061819151143?= |
Series |
DRM_USE_DYNAMIC_DEBUG regression
|
|
Commit Message
Jim Cromie
Jan. 13, 2023, 7:30 p.m. UTC
ARRAY_SIZE works here, since array decl is complete.
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
---
include/linux/dynamic_debug.h | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/include/linux/dynamic_debug.h b/include/linux/dynamic_debug.h index bf47bcfad8e6..81b643ab7f6e 100644 --- a/include/linux/dynamic_debug.h +++ b/include/linux/dynamic_debug.h @@ -104,11 +104,9 @@ struct ddebug_class_map { .mod_name = KBUILD_MODNAME, \ .base = _base, \ .map_type = _maptype, \ - .length = NUM_TYPE_ARGS(char*, __VA_ARGS__), \ + .length = ARRAY_SIZE(_var##_classnames), \ .class_names = _var##_classnames, \ } -#define NUM_TYPE_ARGS(eltype, ...) \ - (sizeof((eltype[]){__VA_ARGS__}) / sizeof(eltype)) /* encapsulate linker provided built-in (or module) dyndbg data */ struct _ddebug_info {