Projects
Eulaceura:Mainline:GA
libwd
_service:obs_scm:0006-wd_mempool-fix-build-erro...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0006-wd_mempool-fix-build-error.patch of Package libwd
From d335549b1d076a22735bb7211823c2f4140c62af Mon Sep 17 00:00:00 2001 From: Zhangfei Gao <zhangfei.gao@linaro.org> Date: Wed, 24 Jan 2024 04:15:46 +0000 Subject: [PATCH 6/8] wd_mempool: fix build error Fix build errors like "passing 'int *' to parameter of type '__u32 *' (aka 'unsigned int *') converts between pointers to integer types with different sign" Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org> Signed-off-by: 15859157387 <977713017@qq.com> --- wd_mempool.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/wd_mempool.c b/wd_mempool.c index ed107d1..47ad36b 100644 --- a/wd_mempool.c +++ b/wd_mempool.c @@ -71,7 +71,7 @@ static inline int wd_atomic_test_add(struct wd_ref *ref, int a, int u) c = __atomic_load_n(&ref->ref, __ATOMIC_RELAXED); if (c == u) break; - } while (! __atomic_compare_exchange_n(&ref->ref, &c, c + a, true, + } while (!__atomic_compare_exchange_n(&ref->ref, (__u32 *)&c, c + a, true, __ATOMIC_RELAXED, __ATOMIC_RELAXED)); return c; @@ -299,11 +299,6 @@ static int test_bit(struct bitmap *bm, unsigned int nr) return !(*p & mask); } -inline static size_t wd_get_page_size(void) -{ - return sysconf(_SC_PAGESIZE); -} - void *wd_block_alloc(handle_t blkpool) { struct blkpool *bp = (struct blkpool*)blkpool; -- 2.25.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2