Message ID | 20231018170604.569042-8-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 ib8csp4939373vqb; Wed, 18 Oct 2023 10:07:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGignAVanZ8nKbgRAgJAMx4yBYmBNIAZ7v9NXvtkGXWt1Cyu1mm0U3EtVwIFKjT5YIGxi2j X-Received: by 2002:a17:903:2309:b0:1c6:2ae1:dc28 with SMTP id d9-20020a170903230900b001c62ae1dc28mr6598394plh.36.1697648879108; Wed, 18 Oct 2023 10:07:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697648879; cv=none; d=google.com; s=arc-20160816; b=DYxrStaGUyezOBXDvDrzRe/zdWaNvtCJarjLhnYqIgP76T4jJRL3FMoCd/tYQfAxlA wLC2PNE8yaT5t/TpSUdY3jomLVo5S9l3PqL9pDJAaIcK0EwjWi2HTOzJejJzuJ2GU4Mn 6CUM5tYgx55r1cTDX4pW/S6KcLGPQ2KSoIiqTg+spEK5sAuKUv1RlSKwsvSHMPm7yTOW NJnOioQWJMxfEtwiYlICJb758s0qp+Pxak+tJsHWtene/I//DoU+BocmA8xuzRu7H4PC u7gtlq0tHy0i3lJPQftnloroc8b3OBEXQXWd6MPXFK8pIuzATjvKnGsg3gPHrkjDbkZM nJkw== 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=fEjUcd2gIGh+rcuXSmEeq7H3LSdL8L2dg7mL1DHpCLA=; fh=dD4hpA3+YqlszWEwFTO+ADczjyhU7P27niWnWgZXhCU=; b=IYWizliKFaB5rNL/AldIBLZpPb4hzk3HUbH45j2EXU66LtvQxH2oCvJp7u/dwqAFIT FPUoIOSN/NZRXAl3Vpja9Si1QmJJHf1UH0r7rePaxBGXIZz/ryWW5atZ919hzWkw0JN1 IHOhMpfzg8kf86lNVIDEE+++uDnDfD4rGjmQam3IWgm/s28ZcZgEomS0JIwc8TgUbIG4 D4K3KUgANf7K/2ZHSLWJOTJGvtV+I44vlVqXovY0/++Vl5S+MOm9kI447W0LU8wCbY5R f0wMEMYG4qhh90zoqgeCAPT7hGfuoPGmOfDY9bSUtnRPlw11flTjm7IwIAx3HjKR1/D5 Kjiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=maMKkGaV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id b5-20020a170902650500b001c62cfff795si256254plk.429.2023.10.18.10.07.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 10:07:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=maMKkGaV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 0BD438098B92; Wed, 18 Oct 2023 10:07:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231826AbjJRRGk (ORCPT <rfc822;zwp10758@gmail.com> + 24 others); Wed, 18 Oct 2023 13:06:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231640AbjJRRG1 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 18 Oct 2023 13:06:27 -0400 Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D983126; Wed, 18 Oct 2023 10:06:19 -0700 (PDT) Received: by mail-io1-xd2b.google.com with SMTP id ca18e2360f4ac-7a26fbfcf8eso283859439f.2; Wed, 18 Oct 2023 10:06:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697648778; x=1698253578; 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=fEjUcd2gIGh+rcuXSmEeq7H3LSdL8L2dg7mL1DHpCLA=; b=maMKkGaV4mxX/wucP6WE+Q4mVNNfIDMwNHPyxzk3ze6HyqH+GDUcz6CWF1FX2xkm5c c3l+p8WZTsF9fNZguLM/mnFLB0je8RyzSJUrJ/dMoWaR8AOPMBh3OCyTkFLsos2w3uAD Efo1ctAsf5dHAyROhmXlWFL8G5gQIUQgz1AJRWwbC87jhT2LYAbapMlvLnze5mjqMvvd 8so+7d5ANe3W9dYQ/wOOjorbx0kFQ3+qthKmJHyEYkbWnnjPIjyPdX68zITMjayMTyYL O36iezsOSwYIDDr85LigLPrC0ut9OVrpPEL607/68Zkh790MJuY73XzdGu2kxgu6lUZl A4Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697648778; x=1698253578; 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=fEjUcd2gIGh+rcuXSmEeq7H3LSdL8L2dg7mL1DHpCLA=; b=LbVqRQh2d9rXuNpA9RgWeA8C+/E+/5dHTFEe7wlEAwC4lmnA/iY8LAE9PeFy+/+NaY dHBnPlE8HpwBPueBOJZD2f+eIlqdSYVzSpPKsXkFbMBPAUlGEkyoSP8wcmBe5i8RexuW z9LDigZMPKt6fVLHr/BB2E8Q4D3DXM0MPZRS8eSE9wi4soFafVI6tHdTEqk8TJbZSayP nwFU7rKcOzZuJ5E+7J5f7ShX2sKGw3XZqzZjnBjfdy81EuaCTV5M2pun4OHaeL7r0+Ag fT9sHoPcoopDnyAv5018VpGNOPAgq+afwyYY81lgsbdRaitbrNlcz/JypDEg6VBmQM9l BbWQ== X-Gm-Message-State: AOJu0Yzy0ujpawL8YR0BeBUyRv8laGetE0S07GHSBSg4vCBatFiWsni5 srAuOHpS4rvlPmRW4uwoOpwj09xFpqvmiA== X-Received: by 2002:a05:6602:2b81:b0:79f:cb49:f476 with SMTP id r1-20020a0566022b8100b0079fcb49f476mr7627926iov.21.1697648778066; Wed, 18 Oct 2023 10:06:18 -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 n4-20020a5d8244000000b0079fa1a7cd36sm1228944ioo.30.2023.10.18.10.06.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 10:06:17 -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: lb@semihalf.com, linux@rasmusvillemoes.dk, joe@perches.com, mcgrof@kernel.org, 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, rostedt@goodmis.org, linux-doc@vger.kernel.org, Jim Cromie <jim.cromie@gmail.com> Subject: [PATCH v7c 07/24] dyndbg: drop NUM_TYPE_ARRAY Date: Wed, 18 Oct 2023 11:05:47 -0600 Message-ID: <20231018170604.569042-8-jim.cromie@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231018170604.569042-1-jim.cromie@gmail.com> References: <20231018170604.569042-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 pete.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 (pete.vger.email [0.0.0.0]); Wed, 18 Oct 2023 10:07:06 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780113870838999213 X-GMAIL-MSGID: 1780113870838999213 |
Series |
fix DRM_USE_DYNAMIC_DEBUG=y regression
|
|
Commit Message
Jim Cromie
Oct. 18, 2023, 5:05 p.m. UTC
ARRAY_SIZE works here, since array decl is complete.
no functional change
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 b53217e4b711..8116d0a0d33a 100644 --- a/include/linux/dynamic_debug.h +++ b/include/linux/dynamic_debug.h @@ -106,11 +106,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 {