From: Abdul Rahim <abdul.rahim@myyahoo.com>
To: perex@perex.cz, tiwai@suse.com, broonie@kernel.org, shuah@kernel.org
Cc: Abdul Rahim <abdul.rahim@myyahoo.com>,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] kselftest/alsa: add silent flag to reduce noise
Date: Mon, 16 Sep 2024 05:11:30 +0530 [thread overview]
Message-ID: <20240915234131.61962-2-abdul.rahim@myyahoo.com> (raw)
In-Reply-To: <20240915234131.61962-2-abdul.rahim.ref@myyahoo.com>
When ALSA is not installed on the users system, the error:
"Package alsa was not found in the pkg-config search path.
Perhaps you should add the directory containing `alsa.pc'
to the PKG_CONFIG_PATH environment variable
Package 'alsa', required by 'virtual:world', not found"
is printed 3 times, which generates unnecessary noise.
Hence, Remove unnecessary noise using `--silence-errors` on LDLIBS
assignment, so the message is printed only once.
Signed-off-by: Abdul Rahim <abdul.rahim@myyahoo.com>
---
tools/testing/selftests/alsa/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/alsa/Makefile b/tools/testing/selftests/alsa/Makefile
index 25be68025290..cd022fc869fb 100644
--- a/tools/testing/selftests/alsa/Makefile
+++ b/tools/testing/selftests/alsa/Makefile
@@ -2,7 +2,7 @@
#
CFLAGS += $(shell pkg-config --cflags alsa) $(KHDR_INCLUDES)
-LDLIBS += $(shell pkg-config --libs alsa)
+LDLIBS += $(shell pkg-config --silence-errors --libs alsa)
ifeq ($(LDLIBS),)
LDLIBS += -lasound
endif
--
2.46.0
next parent reply other threads:[~2024-09-16 0:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20240915234131.61962-2-abdul.rahim.ref@myyahoo.com>
2024-09-15 23:41 ` Abdul Rahim [this message]
2024-09-15 23:53 ` Abdul Rahim
2024-09-19 15:40 ` Shuah Khan
2024-09-19 20:09 ` Abdul Rahim
2024-09-19 21:49 ` Abdul Rahim
2024-09-20 15:27 ` Shuah Khan
2024-09-20 16:24 ` Shuah Khan
2024-09-20 22:35 ` Abdul Rahim
2024-09-20 22:31 ` Abdul Rahim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240915234131.61962-2-abdul.rahim@myyahoo.com \
--to=abdul.rahim@myyahoo.com \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=shuah@kernel.org \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®