mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 23:13:01 +02:00
memblock: fix build of memblock test
Add missing stubs for mutex and free_reserved_area() to memblock tests -----BEGIN PGP SIGNATURE----- iQFEBAABCgAuFiEEeOVYVaWZL5900a/pOQOGJssO/ZEFAmf7kxgQHHJwcHRAa2Vy bmVsLm9yZwAKCRA5A4Ymyw79kbv4B/0XhZGFhmZt7yXlOU6ywPB94nLgH7lWkbHe Kxca0M7/77Vd19nRaHq9zIO2SQkkz3mKQNuSTsBLZLUrRi/oivWN9jFlaXMytLcT v2XeX7HCX4FqSAKbA0fu130/qIyHJAyy+cUIuAhy/043eE7mtj99yCHkwza7S4US gL1kFNBH9hLuLhm7Pnq7yBK6Wx2kuFhMwG6Deb6AWrSJ1pfv/wMfzwXfBiZ2oy/8 CfDdeSXiIKoj9CDMnwrbVADZxVFvCC9YooatQoJ/Y+35MwN5XQyJFtS0rXvEHkvf jS+HQCUXKxoVeZKVhKnauZ8h1NgLzyhSvUB9iPBo/fdyGDXpU8OO =DpcO -----END PGP SIGNATURE----- Merge tag 'fixes-2025-04-13' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock Pull memblock fix from Mike Rapoport: "Fix build of memblock test. Add missing stubs for mutex and free_reserved_area() to memblock tests" * tag 'fixes-2025-04-13' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock: memblock tests: Fix mutex related build error
This commit is contained in:
commit
051ea726ee
|
@ -24,4 +24,10 @@ static inline void accept_memory(phys_addr_t start, unsigned long size)
|
|||
{
|
||||
}
|
||||
|
||||
static inline unsigned long free_reserved_area(void *start, void *end,
|
||||
int poison, const char *s)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
14
tools/testing/memblock/linux/mutex.h
Normal file
14
tools/testing/memblock/linux/mutex.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#ifndef _MUTEX_H
|
||||
#define _MUTEX_H
|
||||
|
||||
#define DEFINE_MUTEX(name) int name
|
||||
|
||||
static inline void dummy_mutex_guard(int *name)
|
||||
{
|
||||
}
|
||||
|
||||
#define guard(mutex) \
|
||||
dummy_##mutex##_guard
|
||||
|
||||
#endif /* _MUTEX_H */
|
Loading…
Reference in New Issue
Block a user