linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: [BlueZ,v1] shared/util: Fix build error on malloc0
  2024-05-07 20:44 [PATCH BlueZ v1] " Luiz Augusto von Dentz
@ 2024-05-07 22:35 ` bluez.test.bot
  0 siblings, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2024-05-07 22:35 UTC (permalink / raw)
  To: linux-bluetooth, luiz.dentz

[-- Attachment #1: Type: text/plain, Size: 948 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=851339

---Test result---

Test Summary:
CheckPatch                    PASS      0.39 seconds
GitLint                       PASS      0.27 seconds
BuildEll                      PASS      24.43 seconds
BluezMake                     PASS      1629.76 seconds
MakeCheck                     PASS      12.91 seconds
MakeDistcheck                 PASS      174.55 seconds
CheckValgrind                 PASS      245.00 seconds
CheckSmatch                   PASS      348.33 seconds
bluezmakeextell               PASS      118.12 seconds
IncrementalBuild              PASS      1401.47 seconds
ScanBuild                     PASS      977.73 seconds



---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH BlueZ v1] shared/util: Fix build error on malloc0
@ 2024-05-10 15:09 Luiz Augusto von Dentz
  2024-05-10 15:13 ` [BlueZ,v1] " bluez.test.bot
  0 siblings, 1 reply; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2024-05-10 15:09 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

This fixes the parameter order of calloc which causes the following
error on recent gcc:

CC    client/mgmt.o
In file included from client/mgmt.c:43:
client/mgmt.c: In function ‘cmd_add_ext_adv_params’:
client/mgmt.c:5057:28: error: ‘calloc’ sizes specified with ‘sizeof’ in
the earlier argument and not in the later argument
[-Werror=calloc-transposed-args]
 5057 |     cp = malloc0(sizeof(*cp));
   |
---
 src/shared/util.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shared/util.h b/src/shared/util.h
index a8ba23499289..bd71577d60c0 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -85,7 +85,7 @@ do {						\
 	}))
 
 #define newa(t, n) ((t*) alloca(sizeof(t)*(n)))
-#define malloc0(n) (calloc((n), 1))
+#define malloc0(n) (calloc(1, (n)))
 
 char *strdelimit(char *str, char *del, char c);
 int strsuffix(const char *str, const char *suffix);
-- 
2.44.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [BlueZ,v1] shared/util: Fix build error on malloc0
  2024-05-10 15:09 [PATCH BlueZ v1] shared/util: Fix build error on malloc0 Luiz Augusto von Dentz
@ 2024-05-10 15:13 ` bluez.test.bot
  0 siblings, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2024-05-10 15:13 UTC (permalink / raw)
  To: linux-bluetooth, luiz.dentz

[-- Attachment #1: Type: text/plain, Size: 535 bytes --]

This is an automated email and please do not reply to this email.

Dear Submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
While preparing the CI tests, the patches you submitted couldn't be applied to the current HEAD of the repository.

----- Output -----

error: patch failed: src/shared/util.h:85
error: src/shared/util.h: patch does not apply
hint: Use 'git am --show-current-patch' to see the failed patch

Please resolve the issue and submit the patches again.


---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-05-10 15:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-10 15:09 [PATCH BlueZ v1] shared/util: Fix build error on malloc0 Luiz Augusto von Dentz
2024-05-10 15:13 ` [BlueZ,v1] " bluez.test.bot
  -- strict thread matches above, loose matches on Subject: below --
2024-05-07 20:44 [PATCH BlueZ v1] " Luiz Augusto von Dentz
2024-05-07 22:35 ` [BlueZ,v1] " bluez.test.bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).