* Re: [PATCH BlueZ 1/1] btattach: Update for glibc 2.42 compatability
2026-09-03 18:27 ` [PATCH BlueZ 1/1] " Aaron Brice
@ 2026-09-03 21:24 ` Bastien Nocera
2026-09-03 21:25 ` Bastien Nocera
2026-09-03 21:49 ` bluez.test.bot
2 siblings, 0 replies; 6+ messages in thread
From: Bastien Nocera @ 2026-09-03 21:24 UTC (permalink / raw)
To: Aaron Brice, linux-bluetooth
On Thu, 2026-09-03 at 11:27 -0700, Aaron Brice wrote:
> glibc 2.42 baud rate constants changed, use cfsetspeed to be
> compatible
> with newer glibc.
The explanation in your cover letter, which will not be committed,
should be in your patch's commit message, which will be committed.
Cheers
> ---
> tools/btattach.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/tools/btattach.c b/tools/btattach.c
> index 5f7d19093..cdd7b125b 100644
> --- a/tools/btattach.c
> +++ b/tools/btattach.c
> @@ -64,7 +64,12 @@ static int open_serial(const char *path, unsigned
> int speed, bool flowctl)
> memset(&ti, 0, sizeof(ti));
> cfmakeraw(&ti);
>
> - ti.c_cflag |= (speed | CLOCAL | CREAD);
> + ti.c_cflag |= (CLOCAL | CREAD);
> + if (cfsetspeed(&ti, speed) < 0) {
> + perror("Failed to set serial port speed");
> + close(fd);
> + return -1;
> + }
>
> if (flowctl) {
> /* Set flow control */
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH BlueZ 1/1] btattach: Update for glibc 2.42 compatability
2026-09-03 18:27 ` [PATCH BlueZ 1/1] " Aaron Brice
2026-09-03 21:24 ` Bastien Nocera
@ 2026-09-03 21:25 ` Bastien Nocera
2026-09-03 21:49 ` bluez.test.bot
2 siblings, 0 replies; 6+ messages in thread
From: Bastien Nocera @ 2026-09-03 21:25 UTC (permalink / raw)
To: Aaron Brice, linux-bluetooth
Subject should be "compatibility" (3 "i"s)
On Thu, 2026-09-03 at 11:27 -0700, Aaron Brice wrote:
> glibc 2.42 baud rate constants changed, use cfsetspeed to be
> compatible
> with newer glibc.
> ---
> tools/btattach.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/tools/btattach.c b/tools/btattach.c
> index 5f7d19093..cdd7b125b 100644
> --- a/tools/btattach.c
> +++ b/tools/btattach.c
> @@ -64,7 +64,12 @@ static int open_serial(const char *path, unsigned
> int speed, bool flowctl)
> memset(&ti, 0, sizeof(ti));
> cfmakeraw(&ti);
>
> - ti.c_cflag |= (speed | CLOCAL | CREAD);
> + ti.c_cflag |= (CLOCAL | CREAD);
> + if (cfsetspeed(&ti, speed) < 0) {
> + perror("Failed to set serial port speed");
> + close(fd);
> + return -1;
> + }
>
> if (flowctl) {
> /* Set flow control */
^ permalink raw reply [flat|nested] 6+ messages in thread* RE: btattach: Update for glibc 2.42 compatability
2026-09-03 18:27 ` [PATCH BlueZ 1/1] " Aaron Brice
2026-09-03 21:24 ` Bastien Nocera
2026-09-03 21:25 ` Bastien Nocera
@ 2026-09-03 21:49 ` bluez.test.bot
2 siblings, 0 replies; 6+ messages in thread
From: bluez.test.bot @ 2026-09-03 21:49 UTC (permalink / raw)
To: linux-bluetooth, aaron
[-- Attachment #1: Type: text/plain, Size: 1829 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/project/bluetooth/list/?series=1157334
---Test result---
Test Summary:
CheckPatch FAIL 0.30 seconds
GitLint PASS 0.21 seconds
BuildEll PASS 20.51 seconds
BluezMake PASS 607.12 seconds
CheckSmatch PASS 313.35 seconds
bluezmakeextell PASS 102.40 seconds
IncrementalBuild PASS 605.31 seconds
ScanBuild PASS 984.67 seconds
Details
##############################
Test: CheckPatch - FAIL
Desc: Run checkpatch.pl script
Output:
[BlueZ,1/1] btattach: Update for glibc 2.42 compatability
WARNING:TYPO_SPELLING: 'compatability' may be misspelled - perhaps 'compatibility'?
#85:
Subject: [PATCH BlueZ 1/1] btattach: Update for glibc 2.42 compatability
^^^^^^^^^^^^^
/github/workspace/src/patch/14788391.patch total: 0 errors, 1 warnings, 13 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.
/github/workspace/src/patch/14788391.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/2487
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 6+ messages in thread