* [PATCH BlueZ] unit: test-rap: disable optimization to speed up compilation
@ 2026-10-10 11:14 Pauli Virtanen
2026-10-10 16:09 ` [BlueZ] " bluez.test.bot
2026-10-12 21:50 ` [PATCH BlueZ] " patchwork-bot+bluetooth
0 siblings, 2 replies; 3+ messages in thread
From: Pauli Virtanen @ 2026-10-10 11:14 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Pauli Virtanen
Compilation of this file with optimization takes 4 minutes with ASAN.
Disable optimization to reduce to 2 sec.
autoconf puts global -O2 in CFLAGS that cannot be overridden eg. with
unit_test_bap_CFLAGS. Use pragma instead.
---
unit/test-rap.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/unit/test-rap.c b/unit/test-rap.c
index b05edf203..338f0babf 100644
--- a/unit/test-rap.c
+++ b/unit/test-rap.c
@@ -9,6 +9,12 @@
#include <config.h>
#endif
+#if defined(__GNUC__)
+/* Speed up compilation */
+#pragma GCC optimize ("O0")
+#undef _FORTIFY_SOURCE
+#endif
+
#define _GNU_SOURCE
#include <unistd.h>
#include <string.h>
--
2.56.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [BlueZ] unit: test-rap: disable optimization to speed up compilation
2026-10-10 11:14 [PATCH BlueZ] unit: test-rap: disable optimization to speed up compilation Pauli Virtanen
@ 2026-10-10 16:09 ` bluez.test.bot
2026-10-12 21:50 ` [PATCH BlueZ] " patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2026-10-10 16:09 UTC (permalink / raw)
To: linux-bluetooth, pav
[-- Attachment #1: Type: text/plain, Size: 1965 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/series/1182943/
---Test result---
Test Summary:
CheckPatch FAIL 0.30 seconds
GitLint PASS 0.23 seconds
BuildEll PASS 16.48 seconds
BluezMake PASS 229.14 seconds
MakeCheck PASS 13.60 seconds
MakeDistcheck PASS 119.98 seconds
CheckValgrind PASS 189.61 seconds
CheckSmatch PASS 224.23 seconds
bluezmakeextell PASS 74.82 seconds
TestFunctional PASS 927.53 seconds
IncrementalBuild PASS 230.67 seconds
ScanBuild PASS 819.39 seconds
Details
##############################
Test: CheckPatch - FAIL
Desc: Run checkpatch.pl script
Output:
[BlueZ] unit: test-rap: disable optimization to speed up compilation
WARNING:SPACING: space prohibited between function name and open parenthesis '('
#101: FILE: unit/test-rap.c:14:
+#pragma GCC optimize ("O0")
/home/runner/work/bluez/bluez/src/patch/14879301.patch total: 0 errors, 1 warnings, 12 lines checked
NOTE: For some of the reported defects, checkpatch may be able to
mechanically convert to the typical style using --fix or --fix-inplace.
/home/runner/work/bluez/bluez/src/patch/14879301.patch has style problems, please review.
NOTE: Ignored message types: COMMIT_MESSAGE COMPLEX_MACRO CONST_STRUCT FILE_PATH_CHANGES MISSING_SIGN_OFF PREFER_PACKED SPDX_LICENSE_TAG SPLIT_STRING SSCANF_TO_KSTRTO
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
https://github.com/bluez/bluez/pull/2658
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH BlueZ] unit: test-rap: disable optimization to speed up compilation
2026-10-10 11:14 [PATCH BlueZ] unit: test-rap: disable optimization to speed up compilation Pauli Virtanen
2026-10-10 16:09 ` [BlueZ] " bluez.test.bot
@ 2026-10-12 21:50 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2026-10-12 21:50 UTC (permalink / raw)
To: Pauli Virtanen; +Cc: linux-bluetooth
Hello:
This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Sat, 10 Oct 2026 14:14:42 +0300 you wrote:
> Compilation of this file with optimization takes 4 minutes with ASAN.
> Disable optimization to reduce to 2 sec.
>
> autoconf puts global -O2 in CFLAGS that cannot be overridden eg. with
> unit_test_bap_CFLAGS. Use pragma instead.
> ---
> unit/test-rap.c | 6 ++++++
> 1 file changed, 6 insertions(+)
Here is the summary with links:
- [BlueZ] unit: test-rap: disable optimization to speed up compilation
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=bf98544491b2
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-10-12 21:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-10 11:14 [PATCH BlueZ] unit: test-rap: disable optimization to speed up compilation Pauli Virtanen
2026-10-10 16:09 ` [BlueZ] " bluez.test.bot
2026-10-12 21:50 ` [PATCH BlueZ] " patchwork-bot+bluetooth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox