diff mbox series

[BlueZ,1/4] shared/util: Rename btd_malloc to util_malloc

Message ID 20220106210319.3620823-1-luiz.dentz@gmail.com
State New
Headers show
Series [BlueZ,1/4] shared/util: Rename btd_malloc to util_malloc | expand

Commit Message

Luiz Augusto von Dentz Jan. 6, 2022, 9:03 p.m. UTC
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

util functions are not limited to daemon only which is normally the case
when using btd prefix.
---
 profiles/audio/avdtp.c | 2 +-
 src/shared/util.c      | 2 +-
 src/shared/util.h      | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

Comments

bluez.test.bot@gmail.com Jan. 7, 2022, 12:16 a.m. UTC | #1
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=603319

---Test result---

Test Summary:
CheckPatch                    PASS      2.96 seconds
GitLint                       PASS      1.42 seconds
Prep - Setup ELL              PASS      44.08 seconds
Build - Prep                  PASS      0.55 seconds
Build - Configure             PASS      9.53 seconds
Build - Make                  PASS      1586.93 seconds
Make Check                    PASS      10.98 seconds
Make Check w/Valgrind         PASS      454.25 seconds
Make Distcheck                PASS      242.18 seconds
Build w/ext ELL - Configure   PASS      9.33 seconds
Build w/ext ELL - Make        PASS      1548.57 seconds
Incremental Build with patchesPASS      6454.71 seconds



---
Regards,
Linux Bluetooth
Luiz Augusto von Dentz Jan. 7, 2022, 10:42 p.m. UTC | #2
Hi,

On Thu, Jan 6, 2022 at 4:16 PM <bluez.test.bot@gmail.com> wrote:
>
> 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=603319
>
> ---Test result---
>
> Test Summary:
> CheckPatch                    PASS      2.96 seconds
> GitLint                       PASS      1.42 seconds
> Prep - Setup ELL              PASS      44.08 seconds
> Build - Prep                  PASS      0.55 seconds
> Build - Configure             PASS      9.53 seconds
> Build - Make                  PASS      1586.93 seconds
> Make Check                    PASS      10.98 seconds
> Make Check w/Valgrind         PASS      454.25 seconds
> Make Distcheck                PASS      242.18 seconds
> Build w/ext ELL - Configure   PASS      9.33 seconds
> Build w/ext ELL - Make        PASS      1548.57 seconds
> Incremental Build with patchesPASS      6454.71 seconds
>
>
>
> ---
> Regards,
> Linux Bluetooth

Pushed.
diff mbox series

Patch

diff --git a/profiles/audio/avdtp.c b/profiles/audio/avdtp.c
index d3dfbf96d..f2b461330 100644
--- a/profiles/audio/avdtp.c
+++ b/profiles/audio/avdtp.c
@@ -1333,7 +1333,7 @@  static GSList *caps_to_list(uint8_t *data, size_t size,
 			break;
 		}
 
-		cpy = btd_malloc(sizeof(*cpy) + cap->length);
+		cpy = util_malloc(sizeof(*cpy) + cap->length);
 		memcpy(cpy, cap, sizeof(*cap) + cap->length);
 
 		size -= sizeof(*cap) + cap->length;
diff --git a/src/shared/util.c b/src/shared/util.c
index 81b20d86f..93110047b 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -25,7 +25,7 @@ 
 
 #include "src/shared/util.h"
 
-void *btd_malloc(size_t size)
+void *util_malloc(size_t size)
 {
 	if (__builtin_expect(!!size, 1)) {
 		void *ptr;
diff --git a/src/shared/util.h b/src/shared/util.h
index ac70117ca..11d09979d 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -75,7 +75,7 @@  do {						\
 		size_t __n = (size_t) (count);	\
 		size_t __s = sizeof(type);	\
 		void *__p;			\
-		__p = btd_malloc(__n * __s);	\
+		__p = util_malloc(__n * __s);	\
 		memset(__p, 0, __n * __s);	\
 		__p;				\
 	}))
@@ -86,7 +86,7 @@  do {						\
 char *strdelimit(char *str, char *del, char c);
 int strsuffix(const char *str, const char *suffix);
 
-void *btd_malloc(size_t size);
+void *util_malloc(size_t size);
 
 typedef void (*util_debug_func_t)(const char *str, void *user_data);