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>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <63513bef7d65f93829cd7c189ae16265c459def8.1744923838.git.christophe.jaillet@wanadoo.fr>
Date: Thu, 17 Apr 2025 23:04:35 +0200
From: Christophe JAILLET <christophe.jaillet@...adoo.fr>
To: Stefani Seibold <stefani@...bold.net>
Cc: linux-kernel@...r.kernel.org,
	kernel-janitors@...r.kernel.org,
	Christophe JAILLET <christophe.jaillet@...adoo.fr>
Subject: [PATCH 3/3] kfifo: Fix some white spaces issues

Some unneeded double spaces are used in some places, and 1 space is missing
before a trailing \.

Make the needed clean-up for the sake of consistency.

Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
---
 include/linux/kfifo.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/linux/kfifo.h b/include/linux/kfifo.h
index 707dd90138d2..9b13a733efa9 100644
--- a/include/linux/kfifo.h
+++ b/include/linux/kfifo.h
@@ -132,9 +132,9 @@ struct kfifo_rec_ptr_2 __STRUCT_KFIFO_PTR(unsigned char, 2, void);
 	struct __kfifo *__kfifo = &__tmp->kfifo; \
 	__kfifo->in = 0; \
 	__kfifo->out = 0; \
-	__kfifo->mask = __is_kfifo_ptr(__tmp) ? 0 : ARRAY_SIZE(__tmp->buf) - 1;\
+	__kfifo->mask = __is_kfifo_ptr(__tmp) ? 0 : ARRAY_SIZE(__tmp->buf) - 1; \
 	__kfifo->esize = sizeof(*__tmp->buf); \
-	__kfifo->data = __is_kfifo_ptr(__tmp) ?  NULL : __tmp->buf; \
+	__kfifo->data = __is_kfifo_ptr(__tmp) ? NULL : __tmp->buf; \
 })
 
 /**
@@ -268,7 +268,7 @@ __kfifo_int_must_check_helper(int val)
 })
 
 /**
- * kfifo_is_empty_spinlocked_noirqsave  - returns true if the fifo is empty
+ * kfifo_is_empty_spinlocked_noirqsave - returns true if the fifo is empty
  * using a spinlock for locking, doesn't disable interrupts
  * @fifo: address of the fifo to be used
  * @lock: spinlock to be used for locking
@@ -679,7 +679,7 @@ __kfifo_uint_must_check_helper( \
 	const size_t __recsize = sizeof(*__tmp->rectype); \
 	struct __kfifo *__kfifo = &__tmp->kfifo; \
 	(__recsize) ? \
-	__kfifo_from_user_r(__kfifo, __from, __len,  __copied, __recsize) : \
+	__kfifo_from_user_r(__kfifo, __from, __len, __copied, __recsize) : \
 	__kfifo_from_user(__kfifo, __from, __len, __copied); \
 }) \
 )
@@ -784,7 +784,7 @@ __kfifo_int_must_check_helper( \
  */
 #define	kfifo_dma_out_prepare_mapped(fifo, sgl, nents, len, dma) \
 ({ \
-	typeof((fifo) + 1) __tmp = (fifo);  \
+	typeof((fifo) + 1) __tmp = (fifo); \
 	struct scatterlist *__sgl = (sgl); \
 	int __nents = (nents); \
 	unsigned int __len = (len); \
-- 
2.49.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ