Skip to content

Commit e9ffbf1

Browse files
committed
Merge tag 'fixes-2023-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock
Pull memblock fixes from Mike Rapoport: "Small fixes in kernel-doc and tests: - Fix kernel-doc for memblock_phys_free() to use correct names for the counterpart allocation methods - Fix compilation error in memblock tests" * tag 'fixes-2023-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock: memblock: Fix doc for memblock_phys_free memblock tests: Fix compilation error.
2 parents 9b43a52 + fa81ab4 commit e9ffbf1

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

mm/memblock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ void __init_memblock memblock_free(void *ptr, size_t size)
836836
* @base: phys starting address of the boot memory block
837837
* @size: size of the boot memory block in bytes
838838
*
839-
* Free boot memory block previously allocated by memblock_alloc_xx() API.
839+
* Free boot memory block previously allocated by memblock_phys_alloc_xx() API.
840840
* The freeing memory will not be released to the buddy allocator.
841841
*/
842842
int __init_memblock memblock_phys_free(phys_addr_t base, phys_addr_t size)

tools/testing/memblock/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
main
22
memblock.c
33
linux/memblock.h
4+
asm/asm.h
45
asm/cmpxchg.h

tools/testing/memblock/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@ include: ../../../include/linux/memblock.h ../../include/linux/*.h \
2929

3030
@mkdir -p linux
3131
test -L linux/memblock.h || ln -s ../../../../include/linux/memblock.h linux/memblock.h
32+
test -L asm/asm.h || ln -s ../../../arch/x86/include/asm/asm.h asm/asm.h
3233
test -L asm/cmpxchg.h || ln -s ../../../arch/x86/include/asm/cmpxchg.h asm/cmpxchg.h
3334

3435
memblock.c: $(EXTR_SRC)
3536
test -L memblock.c || ln -s $(EXTR_SRC) memblock.c
3637

3738
clean:
38-
$(RM) $(TARGETS) $(OFILES) linux/memblock.h memblock.c asm/cmpxchg.h
39+
$(RM) $(TARGETS) $(OFILES) linux/memblock.h memblock.c asm/asm.h asm/cmpxchg.h
3940

4041
help:
4142
@echo 'Memblock simulator'

0 commit comments

Comments
 (0)