mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-18 02:46:06 +00:00
6d33531bc0
The purgatory code uses parts of the decompressor and provides its own warn() function, but has to include the corresponding header file to avoid a -Wmissing-prototypes warning. It turns out that this function prototype actually differs from the declaration, so change it to get a constant pointer in the declaration and the other definition as well. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/20230803082619.1369127-5-arnd@kernel.org
12 lines
281 B
C
12 lines
281 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef BOOT_COMPRESSED_ERROR_H
|
|
#define BOOT_COMPRESSED_ERROR_H
|
|
|
|
#include <linux/compiler.h>
|
|
|
|
void warn(const char *m);
|
|
void error(char *m) __noreturn;
|
|
void panic(const char *fmt, ...) __noreturn __cold;
|
|
|
|
#endif /* BOOT_COMPRESSED_ERROR_H */
|