From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (unknown [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id A1FFE80266 for ; Thu, 3 Sep 2026 20:59:31 +0000 (UTC) Received: from mail.openvz.org (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 683KwC5g021139; Thu, 3 Sep 2026 23:58:14 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 683KwC5g021139 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="Syy8NBpc" Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 683Kw813021135 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Thu, 3 Sep 2026 23:58:08 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 683Kw813021135 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-49b0d7a07acso4303935e9.3 for ; Thu, 03 Sep 2026 13:58:08 -0700 (PDT) X-Gm-Message-State: AFuF++nvjHP0HfpoEnjx2am8sCzPB1p1Lwennxcx2dkpcSUL+v6m7zQa xnYRwcLpE2ROCWfem/b0ScUx6Gb3jofOc3klWWuWmyW7wyPkzTNTZhIxit3z3h9GwtOkUpNP3zx ZFw1sUczsvSsQxLDbyHVU6y9oQ/EMniYmhUnBZpyP7bT6e0VcuV9r9w== X-Gm-Gg: AYBFou2PEklPcbkJRgxkKgNCWNtX0FEO3mIGOR1hO5Yns1OUNmv5HCdLw6FhswP+byC AgMJQR7Ixb6YGR37G9FZUXCCfp27IL59vjfxIE4lZekppY5VKcd9aXTf2FsomSJdki5z2MrBoGi /cQUipmZjFh63GuhAH3LsnUGHv+q9YfPhRQWD8IDoeunW1WDe87tcTLLgEoc1ZuxmzUFdx5uvIN Na6Hfdxe7sglWDt/XPZKRoUa80jxvJJcJithFam+F/YTHCdpw+Gvoru1W8fcPPk3BPR7IG48T7F ZhtVn1N8bozZAIkrjFtwDMTTW/9OaBnMgrpHQSN8CI+emzfP7TJeQ2as+UvdfbEuTekgO0BXGap tuOBoV2C+ezxFMBSFQg== X-Received: by 2002:a05:600d:849b:20b0:499:900c:9c69 with SMTP id 5b1f17b1804b1-49cf825d8c0mr8759875e9.9.1788469088331; Thu, 03 Sep 2026 13:58:08 -0700 (PDT) X-Received: by 2002:a05:600d:849b:20b0:499:900c:9c69 with SMTP id 5b1f17b1804b1-49cf825d8c0mr8759485e9.9.1788469087868; Thu, 03 Sep 2026 13:58:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1788469087; cv=none; d=google.com; s=arc-20260327; b=BHCEYWhYz9VvNYZc5C8Pv3S9+XPSNJy5ydXoj8soSEkwOPW7FVAfbJHfhiGtzMgPq+ Ma1fFgUmdxQ+tDO3br8TwsVwu6d8Jpovd02WCB64zj/MMI7SCrZ+QVH/wZ98Wo5t54/5 I72OQBZhnHZepNGTNxe4uQiuBab/wOxxza+fiY2F7lACtj2Stno6xljDpRL4tkEb/qxc y70B//w+UV3I9W+uPWWjgmYLX6ecjiZbb7GfArSa6fQfkQqg9rJHCs3IFx+5dnsfy8dd 5C65WDHGOYOCrwyE3lTHKf1TyjW0MUlW42+GNGpWEZZtvUMZvGbU1GIYm8MAlnjfXS9p XANg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=k+e50VsNJSk8qNIO0MiVbSqdXQYHKWgVsnAZ8wHo0W4=; fh=nGIln1fDVxhw+89e7WLVuY3Yx243Wo7FHYAF8K6RlsM=; b=bMMd+JaUo6UaAnu5zNh5mO3SYhESETUt+MJkSyEcuY3maOpcqldsYUe8NNHD4d7qW2 xCHSuXf12PnC4SQxrNLthujW9WsLVml7VSFiRJXghsewLGvZripTPYC+73bbuEA/Nm2K Hs7MJThx/M1aMU10yXmqgEFrsJ/8iQWdtUMWita4dCbYcq3x3vNV6HwNIeThWenIOVYZ uVc6bwMqQqoD/8NKT1WYDqEWQJdw2bFRr8BC7vn4gxV1G0dsWOyHDiyYPskWf/GrqxRJ ksAB6ntDICsSebo5Do/TIK/3MkMZ+eWK8FVGs+6GOBLE7W3UNoB7OGkT9TO+uwbq5EMQ 2V/w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=Syy8NBpc; spf=pass (google.com: domain of khorenko@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=khorenko@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from relay.virtuozzo.com (relay.virtuozzo.com. [130.117.225.111]) by mx.google.com with ESMTPS id ffacd0b85a97d-485885ee02bsi993461f8f.474.2026.09.03.13.58.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2026 13:58:07 -0700 (PDT) Received-SPF: pass (google.com: domain of khorenko@virtuozzo.com designates 130.117.225.111 as permitted sender) client-ip=130.117.225.111; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=Syy8NBpc; spf=pass (google.com: domain of khorenko@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=khorenko@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=k+e50VsNJSk8qNIO0MiVbSqdXQYHKWgVsnAZ8wHo0W4=; b=Syy8NBpck4ay 0fshnby73kgoyHBMObphVP/tFJfITBim/DqDOwpqolzZbt7gPe+5vcnccyZ6j4FyriBCFtJR5dYCW G523XCdz/IP7e73k3g1swsEVrKVG2QHPyd9MQd41NEeMLh2KeZfd7bsuBcAMZFU7K1lE4QWI6awpS 3iULKcFMuXsYPvf5fYU5gzHCbQLXo4admhixxNzfBU+580ntIygYtknezpUeh1uEOpvxq2V8NowcS IyAvZlNXzG+FQW2NweDu7qtftT7RMUsHle3bC2YjrTPnVywNx610Lqgm0lSiZTHbv5iNA/uNbqliC 2Wa/uiQ4P99DX7JVW4BEqg==; Received: from ch-demo-asa.virtuozzo.com ([130.117.225.8] helo=f0.vzint.dev) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1x2ETA-002x02-0i; Thu, 03 Sep 2026 22:58:04 +0200 From: Konstantin Khorenko To: OpenVZ devel list Date: Thu, 3 Sep 2026 22:58:06 +0200 Message-ID: <20260903205807.1322151-1-khorenko@virtuozzo.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-OZ-Fwd: true Subject: [Devel] [PATCH vz10] selftests: cgroup: make test_numa_migrate depend on cgroup_util.o X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org The cgroup/Makefile line for test_numa_migrate $(OUTPUT)/test_numa_migrate: LDLIBS += -lnuma $(LIBCGROUP_O) is a target-specific variable assignment, so $(LIBCGROUP_O) ends up inside the LDLIBS value instead of being a prerequisite of the target. Unlike all the other cgroup tests, test_numa_migrate thus does not depend on lib/cgroup_util.o. Under "make -j32" its link job may start while the compiler is still writing the object, and ld fails with .../cgroup/lib/cgroup_util.o: file not recognized: file format not recognized collect2: error: ld returned 1 exit status make[1]: *** [../lib.mk:222: .../cgroup/test_numa_migrate] Error 1 The object still gets on the link command line via LDLIBS, so the build succeeds whenever the object happens to be finished first, which made the failure appear only occasionally in the kernel rpm build. Split the line: keep "-lnuma" in the target-specific LDLIBS and list $(LIBCGROUP_O) as a prerequisite the same way the other tests do. lib.mk passes the prerequisites to the linker, so the resulting command is "test_numa_migrate.c lib/cgroup_util.o -lnuma", and make now builds the object before linking the test. Fixes: 5f3322b25e274 ("selftests: cgroup: test numa migration of lruvecs") https://virtuozzo.atlassian.net/browse/VSTOR-139774 Feature: mm: interface to migrate memory between NUMA nodes upon userspace request Signed-off-by: Konstantin Khorenko --- tools/testing/selftests/cgroup/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/cgroup/Makefile b/tools/testing/selftests/cgroup/Makefile index a0b52fb9bb341..9fa4549ac139a 100644 --- a/tools/testing/selftests/cgroup/Makefile +++ b/tools/testing/selftests/cgroup/Makefile @@ -36,5 +36,6 @@ include lib/libcgroup.mk $(OUTPUT)/test_memcontrol: $(LIBCGROUP_O) $(OUTPUT)/test_pids: $(LIBCGROUP_O) $(OUTPUT)/test_zswap: $(LIBCGROUP_O) -$(OUTPUT)/test_numa_migrate: LDLIBS += -lnuma $(LIBCGROUP_O) +$(OUTPUT)/test_numa_migrate: LDLIBS += -lnuma +$(OUTPUT)/test_numa_migrate: $(LIBCGROUP_O) $(OUTPUT)/test_cache: $(LIBCGROUP_O) -- 2.43.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel