Skip to content

Commit

Permalink
Merge tag 'fixes-2025-04-13' of git://git.kernel.org/pub/scm/linux/ke…
Browse files Browse the repository at this point in the history
…rnel/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
  • Loading branch information
Linus Torvalds committed Apr 13, 2025
2 parents 7cdabaf + ed471e1 commit 051ea72
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/testing/memblock/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 14 additions & 0 deletions tools/testing/memblock/linux/mutex.h
Original file line number Diff line number Diff line change
@@ -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 */

0 comments on commit 051ea72

Please sign in to comment.