Message ID | 20240104220540.2336966-1-jintaolin@chromium.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=2VN2C9SX; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=YAonGrOU; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4T5gfz5v8hz23dJ for <incoming@patchwork.ozlabs.org>; Fri, 5 Jan 2024 09:07:05 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Ck1GyEHmTh6R9TqgYVq1x3Vx4VSPfyQfTJ04xyncrMA=; b=2VN2C9SXwIOAcI 2BkSsb63VF7N04iQLpjlQn4Wq3nrf/ilMhjDxSvRW/kY3r0YveV5ehMiC1K96x53ImvmfakIntzX2 x2GYAg7w4pwQDWfcB3/JlOSNFcxYxsMewKyVEUJNx5HdwjnMusqfAr6XDzJcGvrAqXjJX9Ih+MMq5 3U0cg47sBboI7235ou8cKHZMb6sNyqFUV54gt51owkK948Gse5ImcqBSxyZKdpUgGqZMfYJznS23a YAdifaiNgxuhkM7Ov1ZPf3QQyQoUDd7cWe+kT32D7a2DRnBPpXliREnBQeQwKWYVBHs1FWaUDfKUn nkAUh9Ioquv+Ur5hbWuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rLVqn-00FJwM-2E; Thu, 04 Jan 2024 22:06:05 +0000 Received: from mail-io1-xd35.google.com ([2607:f8b0:4864:20::d35]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rLVqj-00FJvw-0x for hostap@lists.infradead.org; Thu, 04 Jan 2024 22:06:02 +0000 Received: by mail-io1-xd35.google.com with SMTP id ca18e2360f4ac-7ba903342c2so44338239f.3 for <hostap@lists.infradead.org>; Thu, 04 Jan 2024 14:05:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1704405957; x=1705010757; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=aOc0r53yXjs4ccjJGE9iQIF9DM53QncvxYPxb3tOoa4=; b=YAonGrOUEyXzPqoh25cCVzTRV0R5LCv69jvjGqAWhq0Ex3dm/bZGbSRMAHeLQl5hKy aIdixPB58Qd89//omOI3ZmhRJDeWQRBem7wohdOCZ1XxQox6yF7u28wvblbwUXrceqoi +MK+IiWG6SiQUpinBEnLlHJeKnHEVEZRrJdRg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704405957; x=1705010757; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aOc0r53yXjs4ccjJGE9iQIF9DM53QncvxYPxb3tOoa4=; b=AvnCcmbzvqaCU0mTCZzirTfBZb/JSIcJ/ZujuY2yn67RVgTrZBLr94yctJ15PANLLO lh8mzxa+ac1vOuoArNAgQlRw0LaRoopceJPfuJOw2Fv5qFOBmqPffRzuWh7A8kEd7q/f kbL++twL1K/QqOIrBWYczgfTIzGeGEAmh8n4SmAAh0mPuEWG6S+UL6eYPlaV6+Qb0xyF FzXXKxNJBFu54Z4HBkjR2wyP5hkRwI7mBfbfVQpymk8s25zhJGKTUlXAFVhnzzG+81xE kphQwC21VAIJsIBZ9L1CvzK/XopJOmDIDJdlDIX7Z276Her1xOYDTIcci96Bwp356fwl bZHg== X-Gm-Message-State: AOJu0YyjXFu725ejDKjZEEclDVGqwSjQPLPPJpnDSSLDaK4F5MjY/ct2 sWVQ7pKx8n47uTNxkPmIuiGqCCjKEpWM/r0iAZp6jfuYyw== X-Google-Smtp-Source: AGHT+IE0FRyMR2C7wopolDCT6wguQY+Acu1oj+9paTk1cq3Qq5hGRx1IKh22ozxiIfg2xa7t5firmg== X-Received: by 2002:a5d:8b53:0:b0:7bb:ec86:2a3b with SMTP id c19-20020a5d8b53000000b007bbec862a3bmr1239271iot.42.1704405957219; Thu, 04 Jan 2024 14:05:57 -0800 (PST) Received: from jintaolin.c.googlers.com.com (25.11.145.34.bc.googleusercontent.com. [34.145.11.25]) by smtp.gmail.com with ESMTPSA id l11-20020a056a00140b00b006d9b98a8ea4sm131856pfu.159.2024.01.04.14.05.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 14:05:56 -0800 (PST) From: Jintao Lin <jintaolin@chromium.org> To: hostap@lists.infradead.org Cc: j@w1.fi, jintaolin@chromium.org Subject: [PATCH] trace: fix compile issue by using undefined symbol Date: Thu, 4 Jan 2024 22:05:39 +0000 Message-ID: <20240104220540.2336966-1-jintaolin@chromium.org> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240104_140601_352011_8098DA68 X-CRM114-Status: UNSURE ( 9.10 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.4 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This change fix commit 5545d995b3 which could use undefined symbol testing_fail_alloc() in os_malloc(). Signed-off-by: Jintao Lin <jintaolin@chromium.org> --- src/utils/os_unix.c | 6 ++++++ 1 file changed, 6 insertions(+) Content analysis details: (-0.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:d35 listed in] [list.dnswl.org] -0.2 DKIMWL_WL_HIGH DKIMwl.org - High trust sender X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <hostap.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/hostap>, <mailto:hostap-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/hostap/> List-Post: <mailto:hostap@lists.infradead.org> List-Help: <mailto:hostap-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/hostap>, <mailto:hostap-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Hostap" <hostap-bounces@lists.infradead.org> Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
trace: fix compile issue by using undefined symbol
|
expand
|
On Thu, Jan 04, 2024 at 10:05:39PM +0000, Jintao Lin wrote: > This change fix commit 5545d995b3 which could use undefined symbol > testing_fail_alloc() in os_malloc(). Thanks, applied.
diff --git a/src/utils/os_unix.c b/src/utils/os_unix.c index d103ae832..b38549bbf 100644 --- a/src/utils/os_unix.c +++ b/src/utils/os_unix.c @@ -709,6 +709,12 @@ int testing_get_fail_pattern(bool is_alloc, char *buf, size_t buflen) #endif /* WPA_TRACE_BFD */ } +#else /* defined(WPA_TRACE_BFD) && defined(CONFIG_TESTING_OPTIONS) */ + +static inline int testing_test_fail(const char *tag, bool is_alloc) +{ + return 0; +} #endif void * os_malloc(size_t size)
This change fix commit 5545d995b3 which could use undefined symbol testing_fail_alloc() in os_malloc(). Signed-off-by: Jintao Lin <jintaolin@chromium.org> --- src/utils/os_unix.c | 6 ++++++ 1 file changed, 6 insertions(+)