diff options
| author | Jens Axboe <axboe@kernel.dk> | 2012-07-30 03:03:10 -0400 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2012-07-30 03:03:10 -0400 |
| commit | 72ea1f74fcdf874cca6d2c0962379523bbd99e2c (patch) | |
| tree | 4c67be6c73356086ff44ef1b8b1c9479702689ca /include | |
| parent | b1af9be5ef77898c05667bb9dbf3b180d91d3292 (diff) | |
| parent | a73ff3231df59a4b92ccd0dd4e73897c5822489b (diff) | |
Merge branch 'for-jens' of git://git.drbd.org/linux-drbd into for-3.6/drivers
Diffstat (limited to 'include')
71 files changed, 494 insertions, 125 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index b0d62820ada1..9e6e1c6eb60a 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
| @@ -440,8 +440,8 @@ static inline int acpi_pm_device_sleep_wake(struct device *dev, bool enable) | |||
| 440 | 440 | ||
| 441 | #else /* CONFIG_ACPI */ | 441 | #else /* CONFIG_ACPI */ |
| 442 | 442 | ||
| 443 | static int register_acpi_bus_type(struct acpi_bus_type *bus) { return 0; } | 443 | static inline int register_acpi_bus_type(void *bus) { return 0; } |
| 444 | static int unregister_acpi_bus_type(struct acpi_bus_type *bus) { return 0; } | 444 | static inline int unregister_acpi_bus_type(void *bus) { return 0; } |
| 445 | 445 | ||
| 446 | #endif /* CONFIG_ACPI */ | 446 | #endif /* CONFIG_ACPI */ |
| 447 | 447 | ||
diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h index 2520a6e241dc..7d10f962aa13 100644 --- a/include/asm-generic/bug.h +++ b/include/asm-generic/bug.h | |||
| @@ -3,10 +3,18 @@ | |||
| 3 | 3 | ||
| 4 | #include <linux/compiler.h> | 4 | #include <linux/compiler.h> |
| 5 | 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__ | ||
| 13 | #include <linux/kernel.h> | ||
| 14 | |||
| 6 | #ifdef CONFIG_BUG | 15 | #ifdef CONFIG_BUG |
| 7 | 16 | ||
| 8 | #ifdef CONFIG_GENERIC_BUG | 17 | #ifdef CONFIG_GENERIC_BUG |
| 9 | #ifndef __ASSEMBLY__ | ||
| 10 | struct bug_entry { | 18 | struct bug_entry { |
| 11 | #ifndef CONFIG_GENERIC_BUG_RELATIVE_POINTERS | 19 | #ifndef CONFIG_GENERIC_BUG_RELATIVE_POINTERS |
| 12 | unsigned long bug_addr; | 20 | unsigned long bug_addr; |
| @@ -23,12 +31,6 @@ struct bug_entry { | |||
| 23 | #endif | 31 | #endif |
| 24 | unsigned short flags; | 32 | unsigned short flags; |
| 25 | }; | 33 | }; |
| 26 | #endif /* __ASSEMBLY__ */ | ||
| 27 | |||
| 28 | #define BUGFLAG_WARNING (1 << 0) | ||
| 29 | #define BUGFLAG_TAINT(taint) (BUGFLAG_WARNING | ((taint) << 8)) | ||
| 30 | #define BUG_GET_TAINT(bug) ((bug)->flags >> 8) | ||
| 31 | |||
| 32 | #endif /* CONFIG_GENERIC_BUG */ | 34 | #endif /* CONFIG_GENERIC_BUG */ |
| 33 | 35 | ||
| 34 | /* | 36 | /* |
| @@ -60,7 +62,6 @@ struct bug_entry { | |||
| 60 | * to provide better diagnostics. | 62 | * to provide better diagnostics. |
| 61 | */ | 63 | */ |
| 62 | #ifndef __WARN_TAINT | 64 | #ifndef __WARN_TAINT |
| 63 | #ifndef __ASSEMBLY__ | ||
| 64 | extern __printf(3, 4) | 65 | extern __printf(3, 4) |
| 65 | void warn_slowpath_fmt(const char *file, const int line, | 66 | void warn_slowpath_fmt(const char *file, const int line, |
| 66 | const char *fmt, ...); | 67 | const char *fmt, ...); |
| @@ -69,7 +70,6 @@ void warn_slowpath_fmt_taint(const char *file, const int line, unsigned taint, | |||
| 69 | const char *fmt, ...); | 70 | const char *fmt, ...); |
| 70 | extern void warn_slowpath_null(const char *file, const int line); | 71 | extern void warn_slowpath_null(const char *file, const int line); |
| 71 | #define WANT_WARN_ON_SLOWPATH | 72 | #define WANT_WARN_ON_SLOWPATH |
| 72 | #endif | ||
| 73 | #define __WARN() warn_slowpath_null(__FILE__, __LINE__) | 73 | #define __WARN() warn_slowpath_null(__FILE__, __LINE__) |
| 74 | #define __WARN_printf(arg...) warn_slowpath_fmt(__FILE__, __LINE__, arg) | 74 | #define __WARN_printf(arg...) warn_slowpath_fmt(__FILE__, __LINE__, arg) |
| 75 | #define __WARN_printf_taint(taint, arg...) \ | 75 | #define __WARN_printf_taint(taint, arg...) \ |
| @@ -202,4 +202,6 @@ extern void warn_slowpath_null(const char *file, const int line); | |||
| 202 | # define WARN_ON_SMP(x) ({0;}) | 202 | # define WARN_ON_SMP(x) ({0;}) |
| 203 | #endif | 203 | #endif |
| 204 | 204 | ||
| 205 | #endif /* __ASSEMBLY__ */ | ||
