aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r--include/linux/kernel.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 6803318fa2ea..396a350b87a6 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -191,6 +191,30 @@ extern int kernel_text_address(unsigned long addr);
191struct pid; 191struct pid;
192extern struct pid *session_of_pgrp(struct pid *pgrp); 192extern struct pid *session_of_pgrp(struct pid *pgrp);
193 193
194/*
195 * FW_BUG
196 * Add this to a message where you are sure the firmware is buggy or behaves
197 * really stupid or out of spec. Be aware that the responsible BIOS developer
198 * should be able to fix this issue or at least get a concrete idea of the
199 * problem by reading your message without the need of looking at the kernel
200 * code.
201 *
202 * Use it for definite and high priority BIOS bugs.
203 *
204 * FW_WARN
205 * Use it for not that clear (e.g. could the kernel messed up things already?)
206 * and medium priority BIOS bugs.
207 *
208 * FW_INFO
209 * Use this one if you want to tell the user or vendor about something
210 * suspicious, but generally harmless related to the firmware.
211 *
212 * Use it for information or very low priority BIOS bugs.
213 */
214#define FW_BUG "[Firmware Bug]: "
215#define FW_WARN "[Firmware Warn]: "
216#define FW_INFO "[Firmware Info]: "
217
194#ifdef CONFIG_PRINTK 218#ifdef CONFIG_PRINTK
195asmlinkage int vprintk(const char *fmt, va_list args) 219asmlinkage int vprintk(const char *fmt, va_list args)
196 __attribute__ ((format (printf, 1, 0))); 220 __attribute__ ((format (printf, 1, 0)));
@@ -265,6 +289,7 @@ extern enum system_states {
265#define TAINT_DIE 7 289#define TAINT_DIE 7
266#define TAINT_OVERRIDDEN_ACPI_TABLE 8 290#define TAINT_OVERRIDDEN_ACPI_TABLE 8
267#define TAINT_WARN 9 291#define TAINT_WARN 9
292#define TAINT_CRAP 10
268 293
269extern void dump_stack(void) __cold; 294extern void dump_stack(void) __cold;
270 295
@@ -495,4 +520,9 @@ struct sysinfo {
495#define NUMA_BUILD 0 520#define NUMA_BUILD 0
496#endif 521#endif
497 522
523/* Rebuild everything on CONFIG_FTRACE_MCOUNT_RECORD */
524#ifdef CONFIG_FTRACE_MCOUNT_RECORD
525# define REBUILD_DUE_TO_FTRACE_MCOUNT_RECORD
526#endif
527
498#endif 528#endif