* [PATCH] linux/interrupt.h: fix checkpatch errors
@ 2021-05-05 13:51 Mingzhe Yang
0 siblings, 0 replies; only message in thread
From: Mingzhe Yang @ 2021-05-05 13:51 UTC (permalink / raw)
To: tglx, peterz; +Cc: linux-kernel, Mingzhe Yang
This patch cleans several checkpatch errors in the header file.
Signed-off-by: Mingzhe Yang <cainiao666999@gmail.com>
---
include/linux/interrupt.h | 18 +++++++-----------
1 file changed, 7 insertions(+), 11 deletions(-)
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h
index 4777850..b9d6a8a 100644
--- a/include/linux/interrupt.h
+++ b/include/linux/interrupt.h
@@ -529,7 +529,7 @@ extern int irq_set_irqchip_state(unsigned int irq, enum irqchip_irq_state which,
* implement the following hook.
*/
#ifndef hard_irq_disable
-#define hard_irq_disable() do { } while(0)
+#define hard_irq_disable() do { } while (0)
#endif
/* PLEASE, avoid to allocate new softirqs, if you need not _really_ high
@@ -538,9 +538,8 @@ extern int irq_set_irqchip_state(unsigned int irq, enum irqchip_irq_state which,
al. should be converted to tasklets, not to softirqs.
*/
-enum
-{
- HI_SOFTIRQ=0,
+enum {
+ HI_SOFTIRQ = 0,
TIMER_SOFTIRQ,
NET_TX_SOFTIRQ,
NET_RX_SOFTIRQ,
@@ -565,8 +564,7 @@ enum
* asm/hardirq.h to get better cache usage. KAO
*/
-struct softirq_action
-{
+struct softirq_action {
void (*action)(struct softirq_action *);
};
@@ -610,8 +608,7 @@ static inline struct task_struct *this_cpu_ksoftirqd(void)
he makes it with spinlocks.
*/
-struct tasklet_struct
-{
+struct tasklet_struct {
struct tasklet_struct *next;
unsigned long state;
atomic_t count;
@@ -652,8 +649,7 @@ struct tasklet_struct name = { \
.func = _func, \
}
-enum
-{
+enum {
TASKLET_STATE_SCHED, /* Tasklet is scheduled for execution */
TASKLET_STATE_RUN /* Tasklet is running (SMP only) */
};
@@ -755,7 +751,7 @@ extern void tasklet_setup(struct tasklet_struct *t,
* if more than one irq occurred.
*/
-#if !defined(CONFIG_GENERIC_IRQ_PROBE)
+#if !defined(CONFIG_GENERIC_IRQ_PROBE)
static inline unsigned long probe_irq_on(void)
{
return 0;
--
1.8.3.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-05 13:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-05 13:51 [PATCH] linux/interrupt.h: fix checkpatch errors Mingzhe Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®