]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
memblock tests: fix undefined reference to `panic'
authorWei Yang <richard.weiyang@gmail.com>
Tue, 2 Apr 2024 13:27:00 +0000 (13:27 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2024 10:02:14 +0000 (12:02 +0200)
commit85907602db5fe0cb14d931005d5d63aa30ca24cc
tree956f8dbde1445d408c0d93341d7c6eef323fb502
parent63e58e5aef2387010f7c433714c27915ce025832
memblock tests: fix undefined reference to `panic'

[ Upstream commit e0f5a8e74be88f2476e58b25d3b49a9521bdc4ec ]

commit e96c6b8f212a ("memblock: report failures when memblock_can_resize
is not set") introduced the usage of panic, which is not defined in
memblock test.

Let's define it directly in panic.h to fix it.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
CC: Song Shuai <songshuaishuai@tinylab.org>
CC: Mike Rapoport <rppt@kernel.org>
Link: https://lore.kernel.org/r/20240402132701.29744-3-richard.weiyang@gmail.com
Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/include/linux/kernel.h
tools/include/linux/panic.h [new file with mode: 0644]