lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Wed,  5 May 2021 21:51:36 +0800
From:   Mingzhe Yang <cainiao666999@...il.com>
To:     tglx@...utronix.de, peterz@...radead.org
Cc:     linux-kernel@...r.kernel.org,
        Mingzhe Yang <cainiao666999@...il.com>
Subject: [PATCH] linux/interrupt.h: fix checkpatch errors

This patch cleans several checkpatch errors in the header file.

Signed-off-by: Mingzhe Yang <cainiao666999@...il.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ