mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
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 <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
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 */
|