diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-02-10 16:01:25 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-02-19 06:58:22 -0500 |
commit | a6967caf00ebbb2d4acdebcb72a25f2e9ba43fd2 (patch) | |
tree | fbc957bb2e34d644164d3b0df874da88fa01ec3e /kernel/irq | |
parent | e1ef824146131709d7466e37f889f2dab24ca98e (diff) |
genirq: Remove desc->status when GENERIC_HARDIRQS_NO_COMPAT=y
If everything uses the right accessors, then enabling
GENERIC_HARDIRQS_NO_COMPAT should just work. If not it will tell you.
Don't be lazy and use the trick which I use in the core code!
git grep status_use_accessors
will unearth it in a split second. Offenders are tracked down and not
slapped with stinking trouts. This time we use frozen shark for a
better educational value.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/irq')
-rw-r--r-- | kernel/irq/internals.h | 4 | ||||
-rw-r--r-- | kernel/irq/settings.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/kernel/irq/internals.h b/kernel/irq/internals.h index 5e2366da9f38..fd5777ab2d34 100644 --- a/kernel/irq/internals.h +++ b/kernel/irq/internals.h | |||
@@ -15,6 +15,10 @@ | |||
15 | 15 | ||
16 | #define istate core_internal_state__do_not_mess_with_it | 16 | #define istate core_internal_state__do_not_mess_with_it |
17 | 17 | ||
18 | #ifdef CONFIG_GENERIC_HARDIRQS_NO_COMPAT | ||
19 | # define status status_use_accessors | ||
20 | #endif | ||
21 | |||
18 | extern int noirqdebug; | 22 | extern int noirqdebug; |
19 | 23 | ||
20 | /* | 24 | /* |
diff --git a/kernel/irq/settings.h b/kernel/irq/settings.h index 55ebe1e09da4..0227ad358272 100644 --- a/kernel/irq/settings.h +++ b/kernel/irq/settings.h | |||
@@ -134,4 +134,5 @@ static inline bool irq_settings_is_nested_thread(struct irq_desc *desc) | |||
134 | } | 134 | } |
135 | 135 | ||
136 | /* Nothing should touch desc->status from now on */ | 136 | /* Nothing should touch desc->status from now on */ |
137 | #undef status | ||
137 | #define status USE_THE_PROPER_WRAPPERS_YOU_MORON | 138 | #define status USE_THE_PROPER_WRAPPERS_YOU_MORON |