From nobody Wed Apr 1 14:07:38 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B3753EE1FD for ; Tue, 31 Mar 2026 09:44:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774950278; cv=none; b=UFzS8gKDbjgbMm/hX7r8YGX7tQKNoImu+OYC+JWy0Hhunb9oOkuPC9nWfe+l31rSMpUO2xrGJC8PsbVGhLtqlup9GIYczW50r3wbS7B4+vchA3Rzyq4ZwM+Re5f0XFnIlrkJdj+mXsJhJWXgJREiSBdHSE8eEKw8PNflA3YiDZ0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774950278; c=relaxed/simple; bh=LuaLH82C8VFNeHuhNYFLbCMO+j5piSLkQ0JuEiRjpSI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uqqgY20xiuP9nHCqUYGUFIYdwaO8Q3OB77JbNjqChIldmKK6g3MsBE4gKYzf+D/QO5RaKFoupJJWOn6FbUYQZcAKmI8DZKqkAbHQ/QBqADHdURJCBz6ncMxkdB5Nw4jGb5002/JFdtcKLaFkmg1kr+kpdsiaFDsiaBimThrECIk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=CKXobV+h; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="CKXobV+h" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1774950274; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NbIbNiX+eqkEdr0SMcNuiwraBoTf68pP2H/YvQLprqw=; b=CKXobV+hGhe4v5C0o6itJ6Hsxwg1pSgtdySmkIHjLdHe1I+vX9FDlxDRIY7teRW8BeQx8L XSjCx5zkKhntU0DnwmRKeqz9mZpLKVTVhyURt4WTMOFdqIjyyad7zAZIOIRPEacOfvRNWn LcewBzJQmjRjX8YsjHjzx6mE+WGe0hE= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-338-K4IZLIOxNGq32mAcJSMVoA-1; Tue, 31 Mar 2026 05:44:28 -0400 X-MC-Unique: K4IZLIOxNGq32mAcJSMVoA-1 X-Mimecast-MFC-AGG-ID: K4IZLIOxNGq32mAcJSMVoA_1774950266 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 90E5F1955EA1; Tue, 31 Mar 2026 09:44:26 +0000 (UTC) Received: from fedora-laptop-x1.redhat.com (unknown [10.72.112.121]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 9392030002C3; Tue, 31 Mar 2026 09:44:20 +0000 (UTC) From: Li Wang To: nathan@kernel.org, nsc@kernel.org, akpm@linux-foundation.org, david@kernel.org, ljs@kernel.org, Liam.Howlett@oracle.com, vbabka@kernel.org, rppt@kernel.org, surenb@google.com, mhocko@suse.com, shuah@kernel.org Cc: linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: [PATCH v2 2/2] selftests/mm: suppress compiler error in liburing check Date: Tue, 31 Mar 2026 17:44:02 +0800 Message-ID: <20260331094402.144131-3-liwang@redhat.com> In-Reply-To: <20260331094402.144131-1-liwang@redhat.com> References: <20260331094402.144131-1-liwang@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Content-Type: text/plain; charset="utf-8" When building the mm selftests on a system without liburing development headers, check_config.sh leaks a raw compiler error: /tmp/tmp.kIIOIqwe3n.c:2:10: fatal error: liburing.h: No such file or dire= ctory 2 | #include | ^~~~~~~~~~~~ Since this is an expected failure during the configuration probe, redirect the compiler output to /dev/null to hide it. And the build system prints a clear warning when this occurs: Warning: missing liburing support. Some tests will be skipped. Because the user is properly notified about the missing dependency, the raw compiler error is redundant and only confuse users. Additionally, update the Makefile to use $(Q) and $(call msg,...) for the check_config.sh execution. This aligns the probe with standard kbuild output formatting, providing a clean "CHK" message instead of printing the raw command during the build. Signed-off-by: Li Wang --- tools/testing/selftests/mm/Makefile | 3 ++- tools/testing/selftests/mm/check_config.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/mm/Makefile b/tools/testing/selftests/= mm/Makefile index 3b222cd6a048..2f6d2a207a0c 100644 --- a/tools/testing/selftests/mm/Makefile +++ b/tools/testing/selftests/mm/Makefile @@ -262,7 +262,8 @@ $(OUTPUT)/migration: LDLIBS +=3D -lnuma $(OUTPUT)/rmap: LDLIBS +=3D -lnuma =20 local_config.mk local_config.h: check_config.sh - CC=3D"$(CC)" CFLAGS=3D"$(CFLAGS)" ./check_config.sh + $(call msg,CHK,config,$@) + $(Q)CC=3D"$(CC)" CFLAGS=3D"$(CFLAGS)" ./check_config.sh =20 EXTRA_CLEAN +=3D local_config.mk local_config.h =20 diff --git a/tools/testing/selftests/mm/check_config.sh b/tools/testing/sel= ftests/mm/check_config.sh index b84c82bbf875..32beaefe279e 100755 --- a/tools/testing/selftests/mm/check_config.sh +++ b/tools/testing/selftests/mm/check_config.sh @@ -16,7 +16,7 @@ echo "#include " > $tmpfile_c echo "#include " >> $tmpfile_c echo "int func(void) { return 0; }" >> $tmpfile_c =20 -$CC $CFLAGS -c $tmpfile_c -o $tmpfile_o +$CC $CFLAGS -c $tmpfile_c -o $tmpfile_o >/dev/null 2>&1 =20 if [ -f $tmpfile_o ]; then echo "#define LOCAL_CONFIG_HAVE_LIBURING 1" > $OUTPUT_H_FILE --=20 2.53.0