From: Mingzhe Yang <cainiao666999@gmail.com>
To: tglx@linutronix.de, peterz@infradead.org
Cc: linux-kernel@vger.kernel.org, Mingzhe Yang <cainiao666999@gmail.com>
Subject: [PATCH] linux/interrupt.h: fix checkpatch errors
Date: Wed, 5 May 2021 21:51:36 +0800 [thread overview]
Message-ID: <20210505135136.14606-1-cainiao666999@gmail.com> (raw)
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
reply other threads:[~2021-05-05 13:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210505135136.14606-1-cainiao666999@gmail.com \
--to=cainiao666999@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®