Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3944034rdg; Wed, 18 Oct 2023 10:08:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGVFTDjDepmOA1ROOA6UaSt0AvbfWo83crROKCNeZquhBwBiSNFosrGeVznvfPWK6Mw0MtY X-Received: by 2002:a9d:74ce:0:b0:6b7:4a86:f038 with SMTP id a14-20020a9d74ce000000b006b74a86f038mr5101103otl.15.1697648939500; Wed, 18 Oct 2023 10:08:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697648939; cv=none; d=google.com; s=arc-20160816; b=fpg4clk8GrdS+wCGZ/o9/DtVhIxCIl6OZ3EO8NNPrPlGy3L07/xfXWHCHgOL52GdpX gcANVy+z2M2qnwtuwvahWddPvGKI2ce7YzYAtLCAep5YY5A5XajUpdYMP9mjN0KM08FC ZeVVoMBhW0KvCW41fRrrNtxJ9kg16sbbzyrKBiap4qhhHeAFsdnDHbAOTk55HgnAAq8p PGA13xqje/swjkoz9+EA6SNM4q42UVSvclLUPJaWcoDROHYG49tGtnBwLyUw8DhxpHRC tIf7V9F/OG6/N8KqBAOPCCT+n0BAvVHRcwAZQ8xm+uvnXlREUsJhYRqsv7DM2y+V36D6 10mw== 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=UnWyGzBg+EfQ/17pthf1gkMUPd8BVnFczw04j1DAB6Y=; fh=dD4hpA3+YqlszWEwFTO+ADczjyhU7P27niWnWgZXhCU=; b=m8G3jpqjELQcQnjLHpo882+t7JY4HNV9kMfjziuxKHsgwkQEsBHBzC3t6GIpF+MMq3 Ncq7pVU+mc6LoLJac6nDdYHUQ6yk+8/X5sLWC79CRq8Rd+Qk3AY4ls3ecQzs793cqShU xd8LaAvNPxEletRaEjU0GArgUivn9H2JhLge9k4oUwimZc9BCSkdN9NTG7pLh2kP4YFf +3MsWpYbH//lr7Pfcrjq4kO14OhNgHUJ9Wb9v44IfbT0QAUtRpYAZ6OQOCH87qAMcVQB i97Q9x9advEmkRit12/hBZaN7Aj/nOp34Lo9GrzagFH5hy3waNM3soufQJg0uSpSY/8+ ttOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lrNu7Vy2; 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 Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id x5-20020a056a00188500b006934390d0casi4571502pfh.36.2023.10.18.10.08.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 10:08: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=lrNu7Vy2; 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 37DE780202CD; Wed, 18 Oct 2023 10:08:52 -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 S229957AbjJRRHm (ORCPT + 99 others); Wed, 18 Oct 2023 13:07:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232191AbjJRRHL (ORCPT ); Wed, 18 Oct 2023 13:07:11 -0400 Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D73BCD49; Wed, 18 Oct 2023 10:06:35 -0700 (PDT) Received: by mail-io1-xd2d.google.com with SMTP id ca18e2360f4ac-7a5d26511f7so263463239f.2; Wed, 18 Oct 2023 10:06:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697648795; x=1698253595; 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=UnWyGzBg+EfQ/17pthf1gkMUPd8BVnFczw04j1DAB6Y=; b=lrNu7Vy2sHVKMTg5WSOarXHeqD67RPeGS5mORQxkC2YBI/CY8+PY/AZc1IH28qSxov 5MDeR8aCDSjTmTkYMsnDwxBwAvSJeyLJ3qTsqmVOB54ZMFmW827V+8NJTB0jh+KNyXwe wm7aWqEaflxWws0NpCON70u1EDd/v6Rz7ey9hqkPPkgVYn7PKRn8Vn68dsE+JMTyXIky GAu2r4SMNqDTNMSgDuY3/SPqsQ3PZphRV662JRHzEwzipHpz05Z8DJLpMfLDGsqgZ1uO SrR5+/g1eZUgBvbNlT4p4D55hxVhZ8RZ6LzaksPbOTXS04FECGJYE5v2p/ZoIGpSLlgw oEDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697648795; x=1698253595; 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=UnWyGzBg+EfQ/17pthf1gkMUPd8BVnFczw04j1DAB6Y=; b=hKTm4WadvsfYXZmg1hy/At61Db9A4e/atnG7eUli6u2qhp58KxiwASiJ7LVQjUbIrB JXZ8LMGrhT1hjLABOGK61F0fnFo6ko9JTfAZFfS+DokmfI0RqQUZ8iFUqYhVpIi/gDXH tnc+jqJvXocPQA3BXSkltlGqrNNIAtJLMdfVoNJuWpu4y5R9UmpSrQWWf46iujTcmlTE C494BUKvLYUwl0U99qi90x6PwrZov6YoCqqqQ6NL/7H4GBq94ceIwrJU5EyQ9RrgQ1bW EaIrwjTme7L1uMNUR8zgfUNmAfQTc9IXrAqA3xjhRdcSugyUyr1aS8HV4/LM4VMlAw0d z5PQ== X-Gm-Message-State: AOJu0YyB7UfFM8g5VCgHh4D0PsCUwYUgQT+OHx0CcyXyItwZqTArMOub uTJxnbmiHLhy2NJuFwy6Ht1YYfCWXpqFig== X-Received: by 2002:a05:6602:1584:b0:790:f735:4d30 with SMTP id e4-20020a056602158400b00790f7354d30mr6712709iow.13.1697648794854; Wed, 18 Oct 2023 10:06:34 -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.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 10:06:34 -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, rostedt@goodmis.org, linux-doc@vger.kernel.org, Jim Cromie Subject: [PATCH v7c 21/24] dyndbg: change WARN_ON to WARN_ON_ONCE Date: Wed, 18 Oct 2023 11:06:01 -0600 Message-ID: <20231018170604.569042-22-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: 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:08:53 -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 9db797a0cf82..213110ec1e9c 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -1281,7 +1281,7 @@ static void ddebug_attach_user_module_classes(struct ddebug_table *dt, */ for (i = 0, cli = di->class_users; i < di->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