Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1257293rdg; Fri, 13 Oct 2023 15:50:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEVnjie7XAagw+/9I2sH3njhE3HNhoRAEoPGHxjsPs1rwU/xfF38OTqDxoyDr3bJrKQQR/R X-Received: by 2002:a05:6a20:3213:b0:172:913c:ba37 with SMTP id hl19-20020a056a20321300b00172913cba37mr9767294pzc.38.1697237431083; Fri, 13 Oct 2023 15:50:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697237431; cv=none; d=google.com; s=arc-20160816; b=Min1tk0waN9XErxwDaYmonguCq3cgwEIWx0oEyhfFFqn2L8iF/YH3W2Wf6CTJGWUh+ vpy+H3Y/1ycRsfXmXg2UPnxT9d51EtmUIm1YOJYfCvY8SpA+cvV8cUbFPFwdRSuGfwI6 WWKOCa9hu9mMJ8bu+zZW/imFKD14dmsqFBVNNTTyFcWQ5etEC5kN0WxYJY2omPKauBRM U0PEa3x5zOqMniR0W49BI/0lEbdKH4/wbrkFLYv6ED1Y+UMWW77Dd5PI4uuCdzf4injY kyjoCf7qoEotIhLRJ9NuF0d/6GtFodxuwb5Z/g83to9qDlCWGEJBiAfiBOKK9iDAx+Mm kxlg== 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=tOnBISCPbs+GXr5xHkNIZiy97l93WP5W3+/uL75zbGY=; fh=z8A2UgI9Ozi/zM+meU3S7fSTeKB52ixSkA1q1cGr6xs=; b=SZorJDA41w1FAcebot3l8ftzlKvyhukzho3oihbPDJ3JgsRg9Wx8Le7Ys5bAUa6t3K EI3sfspTkxp8Er+lIEWgcz9mVjjl4wo5AnOvuH1lFJpkWmcqcs677RAc5Uuh3Lm0hc7o bnXRWEx6cWIChx/CSmN4IHumt2OBe3Ig+2NUGMaSBPoY47r3evvxEiizmscKwOpHTPzx 4sp/DIWpunEfDX85/NdUOcZkA3UdQ92WrKJtSsO7xbmgoVSTOqAThZPbUpnGnFOcbkeB w+qpdbOY21RTXZP5NYPq2CWT2Ho2NAa1bai87tMSBa5hFSHP+hgMhBlha6d6a8fgeEMj jZCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jji74C+V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id cm5-20020a17090afa0500b00274b668b762si939518pjb.172.2023.10.13.15.50.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 15:50:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jji74C+V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 2025D8261029; Fri, 13 Oct 2023 15:50:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232736AbjJMWuP (ORCPT + 99 others); Fri, 13 Oct 2023 18:50:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232927AbjJMWti (ORCPT ); Fri, 13 Oct 2023 18:49:38 -0400 Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FCC710EA; Fri, 13 Oct 2023 15:49:00 -0700 (PDT) Received: by mail-il1-x12a.google.com with SMTP id e9e14a558f8ab-3513b5a9e8eso9842285ab.0; Fri, 13 Oct 2023 15:49:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697237337; x=1697842137; 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=tOnBISCPbs+GXr5xHkNIZiy97l93WP5W3+/uL75zbGY=; b=jji74C+VL0qwieAScv1vXq0meaUAeP+U6TSz8w3zOx/X18rm6YH2to8A/ADQYdfmF1 TGD0PplQROAbu98FbNF6LOeYtosUuMfyRO/v0lWwqtsTJGwpwgUPm7YpKEljbwtowrty +3ay7E1VyRqyi9Y1AXXcrjyaCXTa9p6da/IWMeblMtVKZE+VzaDUPPXxW6WxpBRkkVGe gQrmLk+8pcT8xANfRD6+fTk1Ayhry3jCgBQywD9koRYwvWS10/RDgrgJfAMOG776ffo9 t7DOSVwS+Wk3fSJewKFQyCjSadBulAXmWP2klcKCAW0YxMoVnzu5rNGLinU5zwNO1fpu qsiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697237337; x=1697842137; 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=tOnBISCPbs+GXr5xHkNIZiy97l93WP5W3+/uL75zbGY=; b=IjJbjXPZtd6flzMPIXueKmdiuKY2kVHVbG22bbZqu/+H9bmo1HH81G8KLKiLwluI7l COF8cB2jbPOAnkd2vXLpfcaJ8x0I/aCzf9AJHY9vw+B73c49eypcdwi/fjnvUvjqqYb0 CnwGZtGU2zTNf5kFOsgCiLqptvTWgoLIVFs1MtXCWtvUw+eu1J6wbaYZWK2+po1AANWA 3BQqXF+HiqY8IIL2TgGnALZkZKsDgQetyjXlyRadoegwxCM3BKoKXdfqeDV72NP4acak cG/ezOVz/0DaOIxyvtVWMUJAdq+BHt824Kh/si0wgVx5UyuH7SAcwqbZJ7hhxPZWVvgD 4shg== X-Gm-Message-State: AOJu0Yx0N5uP0V7lnNuXdYA/o0oGAlPhH2GAK5406ClPYzzC78NjAKzc zNIoldKYr60olAwWtSff/Co7vxyuXtdP6w== X-Received: by 2002:a05:6e02:1a41:b0:357:4621:10eb with SMTP id u1-20020a056e021a4100b00357462110ebmr12755180ilv.4.1697237336878; Fri, 13 Oct 2023 15:48:56 -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 t10-20020a92dc0a000000b003512c3e8809sm1683071iln.71.2023.10.13.15.48.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 15:48:56 -0700 (PDT) From: Jim Cromie 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, linux-doc@vger.kernel.org, Jim Cromie Subject: [PATCH v7b 22/25] dyndbg: change WARN_ON to WARN_ON_ONCE Date: Fri, 13 Oct 2023 16:48:14 -0600 Message-ID: <20231013224818.3456409-23-jim.cromie@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231013224818.3456409-1-jim.cromie@gmail.com> References: <20231013224818.3456409-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 lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 13 Oct 2023 15:50:29 -0700 (PDT) This shouldn't ever happen, and 1st 2 conditions never have. The 3rd condition did happen, due to corrupt linkage due to a missing align(8) in DYNDBG_CLASSMAP_USE, on the static struct allocation into the __dyndbg_class_users section. Not sure whether changing to _ONCE is appropriate - this is a module-load activity, so it won't continuously spam syslog. Signed-off-by: Jim Cromie --- undo BUG_ON addition --- lib/dynamic_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index 5825b58043a6..2a5eb64dbc27 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -1284,7 +1284,7 @@ static void ddebug_attach_user_module_classes(struct ddebug_table *dt, */ for_each_boxed_vector(di, class_users, num_class_users, i, cli) { - if (WARN_ON(!cli || !cli->map || !cli->user_mod_name)) + if (WARN_ON_ONCE(!cli || !cli->map || !cli->user_mod_name)) continue; if (!strcmp(cli->user_mod_name, dt->mod_name)) { -- 2.41.0