diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-09-05 10:22:45 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-09-05 10:22:45 -0400 |
commit | 593d0a3e9f813db910dc50574532914db21d09ff (patch) | |
tree | 12d8413ee57b4383ca8c906996ffe02be6d377a5 /include/asm-generic/bug.h | |
parent | 50e900417b8096939d12a46848f965e27a905e36 (diff) | |
parent | 4cb38750d49010ae72e718d46605ac9ba5a851b4 (diff) |
Merge commit '4cb38750d49010ae72e718d46605ac9ba5a851b4' into stable/for-linus-3.6
* commit '4cb38750d49010ae72e718d46605ac9ba5a851b4': (6849 commits)
bcma: fix invalid PMU chip control masks
[libata] pata_cmd64x: whitespace cleanup
libata-acpi: fix up for acpi_pm_device_sleep_state API
sata_dwc_460ex: device tree may specify dma_channel
ahci, trivial: fixed coding style issues related to braces
ahci_platform: add hibernation callbacks
libata-eh.c: local functions should not be exposed globally
libata-transport.c: local functions should not be exposed globally
sata_dwc_460ex: support hardreset
ata: use module_pci_driver
drivers/ata/pata_pcmcia.c: adjust suspicious bit operation
pata_imx: Convert to clk_prepare_enable/clk_disable_unprepare
ahci: Enable SB600 64bit DMA on MSI K9AGM2 (MS-7327) v2
[libata] Prevent interface errors with Seagate FreeAgent GoFlex
drivers/acpi/glue: revert accidental license-related 6b66d95895c bits
libata-acpi: add missing inlines in libata.h
i2c-omap: Add support for I2C_M_STOP message flag
i2c: Fall back to emulated SMBus if the operation isn't supported natively
i2c: Add SCCB support
i2c-tiny-usb: Add support for the Robofuzz OSIF USB/I2C converter
...
Diffstat (limited to 'include/asm-generic/bug.h')
-rw-r--r-- | include/asm-generic/bug.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h index 9f02005f217a..7d10f962aa13 100644 --- a/include/asm-generic/bug.h +++ b/include/asm-generic/bug.h | |||
@@ -2,12 +2,19 @@ | |||
2 | #define _ASM_GENERIC_BUG_H | 2 | #define _ASM_GENERIC_BUG_H |
3 | 3 | ||
4 | #include <linux/compiler.h> | 4 | #include <linux/compiler.h> |
5 | |||
6 | #ifdef CONFIG_GENERIC_BUG | ||
7 | #define BUGFLAG_WARNING (1 << 0) | ||
8 | #define BUGFLAG_TAINT(taint) (BUGFLAG_WARNING | ((taint) << 8)) | ||
9 | #define BUG_GET_TAINT(bug) ((bug)->flags >> 8) | ||
10 | #endif | ||
11 | |||
12 | #ifndef __ASSEMBLY__ | ||
5 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
6 | 14 | ||
7 | #ifdef CONFIG_BUG | 15 | #ifdef CONFIG_BUG |
8 | 16 | ||
9 | #ifdef CONFIG_GENERIC_BUG | 17 | #ifdef CONFIG_GENERIC_BUG |
10 | #ifndef __ASSEMBLY__ | ||
11 | struct bug_entry { | 18 | struct bug_entry { |
12 | #ifndef CONFIG_GENERIC_BUG_RELATIVE_POINTERS | 19 | #ifndef CONFIG_GENERIC_BUG_RELATIVE_POINTERS |
13 | unsigned long bug_addr; | 20 | unsigned long bug_addr; |
@@ -24,12 +31,6 @@ struct bug_entry { | |||
24 | #endif | 31 | #endif |
25 | unsigned short flags; | 32 | unsigned short flags; |
26 | }; | 33 | }; |
27 | #endif /* __ASSEMBLY__ */ | ||
28 | |||
29 | #define BUGFLAG_WARNING (1 << 0) | ||
30 | #define BUGFLAG_TAINT(taint) (BUGFLAG_WARNING | ((taint) << 8)) | ||
31 | #define BUG_GET_TAINT(bug) ((bug)->flags >> 8) | ||
32 | |||
33 | #endif /* CONFIG_GENERIC_BUG */ | 34 | #endif /* CONFIG_GENERIC_BUG */ |
34 | 35 | ||
35 | /* | 36 | /* |
@@ -61,7 +62,6 @@ struct bug_entry { | |||
61 | * to provide better diagnostics. | 62 | * to provide better diagnostics. |
62 | */ | 63 | */ |
63 | #ifndef __WARN_TAINT | 64 | #ifndef __WARN_TAINT |
64 | #ifndef __ASSEMBLY__ | ||
65 | extern __printf(3, 4) | 65 | extern __printf(3, 4) |
66 | void warn_slowpath_fmt(const char *file, const int line, | 66 | void warn_slowpath_fmt(const char *file, const int line, |
67 | const char *fmt, ...); | 67 | const char *fmt, ...); |
@@ -70,7 +70,6 @@ void warn_slowpath_fmt_taint(const char *file, const int line, unsigned taint, | |||
70 | const char *fmt, ...); | 70 | const char *fmt, ...); |
71 | extern void warn_slowpath_null(const char *file, const int line); | 71 | extern void warn_slowpath_null(const char *file, const int line); |
72 | #define WANT_WARN_ON_SLOWPATH | 72 | #define WANT_WARN_ON_SLOWPATH |
73 | #endif | ||
74 | #define __WARN() warn_slowpath_null(__FILE__, __LINE__) | 73 | #define __WARN() warn_slowpath_null(__FILE__, __LINE__) |
75 | #define __WARN_printf(arg...) warn_slowpath_fmt(__FILE__, __LINE__, arg) | 74 | #define __WARN_printf(arg...) warn_slowpath_fmt(__FILE__, __LINE__, arg) |
76 | #define __WARN_printf_taint(taint, arg...) \ | 75 | #define __WARN_printf_taint(taint, arg...) \ |
@@ -203,4 +202,6 @@ extern void warn_slowpath_null(const char *file, const int line); | |||
203 | # define WARN_ON_SMP(x) ({0;}) | 202 | # define WARN_ON_SMP(x) ({0;}) |
204 | #endif | 203 | #endif |
205 | 204 | ||
205 | #endif /* __ASSEMBLY__ */ | ||
206 | |||
206 | #endif | 207 | #endif |