Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1652054rdd; Thu, 11 Jan 2024 05:44:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IFtshR3SJ6KOp0HnjVo9FYUeR/PTIL2UASY6cQAzRQljeX+wLfJhZLkn3CMV4bc4RPyGcK3 X-Received: by 2002:a2e:7215:0:b0:2cd:1ca6:87c0 with SMTP id n21-20020a2e7215000000b002cd1ca687c0mr441197ljc.23.1704980651035; Thu, 11 Jan 2024 05:44:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704980651; cv=none; d=google.com; s=arc-20160816; b=Crr24Qi3qDuKidphm4r2hovNEil7WX53G8+bjQN2zT2US2JJKANFovmzkHBD8ri/3+ KbzuSYY/lPtbrNn/EKRg/I6PPTROIq/l4yi1FCqbgk0V3v9uYSd3+00pgHh7RhHbbds+ fTi1YDWd6rr4fGtPGFQ1VxGBqgE5o+75k0hTYFRXyVRGUv3ij0LYeH5EFzA7R2rtYezB QK2rzsZvZHCOUhpueS30S4qse+TaXHq/GxxytoAcfiQduXGZ3FUglDZQTyEqfS6yAhhd LSizzVvGRpY4tPNha/A1u5eZxxWKUU8eal2miiFKIAiI38EYSc1gjl4qIbqcSnU9bnN/ cQPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=7EV5U79DRPKe0P2kJ0TSCdJlqc/B7PNv2cs2Yj7R8v8=; fh=U9eWzh6bo5qseSfMEK1F6+dLH4c3HT/Ldl8BEE9bxsk=; b=Dgw3fbaRrQ6DRvxJ8m5DkJiu1cTKv9wTFp8XrT9K+vPuGlArTETgmBsS71VtQA2Kws utjrEcjLPloA0wIVf836U7S11Ithx8ia+0zJGiihFFhAUm6IsIiAfeA7rCKxHGGCxaEN +fgCuUaoPEotz2c+qgWApkdSJ5Wc0r5fXDVJ3cHmhX41j9l4F4ikQKsWUQ6tJpVo0MAa 7APazM9XgEELoc1wAt0WZwWgZt3ng/N1nRj+4HBYCf+L81AbIFMp3vWjcvjG5CRShItr supa0Ppr4xRt1teiHtvSb8eE+BDnWPgDFPjubr0NtI2k2BTLLlUrQ1i/cXGXafii8Aiv wibg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-23674-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23674-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b11-20020aa7df8b000000b005533b5821b8si540347edy.686.2024.01.11.05.44.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 05:44:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23674-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-23674-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23674-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C380F1F253E5 for ; Thu, 11 Jan 2024 13:44:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 36ACB3A8F6; Thu, 11 Jan 2024 13:44:04 +0000 (UTC) Received: from michel.telenet-ops.be (michel.telenet-ops.be [195.130.137.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 894D0364A9 for ; Thu, 11 Jan 2024 13:44:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:8291:a340:26b8:8238]) by michel.telenet-ops.be with bizsmtp id ZRju2B0084LvM1A06RjuCM; Thu, 11 Jan 2024 14:43:54 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1rNvKw-00F7rd-Qm; Thu, 11 Jan 2024 14:43:54 +0100 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1rNqle-008hXN-5V; Thu, 11 Jan 2024 09:50:26 +0100 From: Geert Uytterhoeven To: Rob Herring , Frank Rowand , "Christian A . Ehrhardt" Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] of: unittest: Fix of_count_phandle_with_args() expected value message Date: Thu, 11 Jan 2024 09:50:25 +0100 Message-Id: <20240111085025.2073894-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The expected result value for the call to of_count_phandle_with_args() was updated from 7 to 8, but the accompanying error message was forgotten. Fixes: 4dde83569832f937 ("of: Fix double free in of_parse_phandle_with_args_map") Signed-off-by: Geert Uytterhoeven --- drivers/of/unittest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c index 45bd0d28c7173db9..cfd60e35a8992d7d 100644 --- a/drivers/of/unittest.c +++ b/drivers/of/unittest.c @@ -574,7 +574,7 @@ static void __init of_unittest_parse_phandle_with_args_map(void) } rc = of_count_phandle_with_args(np, "phandle-list", "#phandle-cells"); - unittest(rc == 8, "of_count_phandle_with_args() returned %i, expected 7\n", rc); + unittest(rc == 8, "of_count_phandle_with_args() returned %i, expected 8\n", rc); for (i = 0; i < 9; i++) { bool passed = true; -- 2.34.1