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-next>] [day] [month] [year] [list]
Message-Id: <1462574792-4672-1-git-send-email-brunocarvalhofarias@gmail.com>
Date:	Fri,  6 May 2016 18:46:32 -0400
From:	Bruno Carvalho <brunocarvalhofarias@...il.com>
To:	gregkh@...uxfoundation.org
Cc:	ciorneiioana@...il.com, amitoj1606@...il.com,
	s.demeszko@...eless-instruments.com, shraddha.6596@...il.com,
	bhumirks@...il.com, shivanib134@...il.com,
	mahfouz.saif.elyazal@...il.com, tj@...nel.org,
	devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
	Bruno Carvalho <brunocarvalhofarias@...il.com>
Subject: [PATCH] staging: gdm724x: fixing coding style problems listed by checkpatch

This patch is to fix some coding style issues pointed
by scripts/checkpatch.pl

Signed-off-by: Bruno Carvalho <brunocarvalhofarias@...il.com>
---
 drivers/staging/gdm724x/gdm_mux.c |  6 ++++--
 drivers/staging/gdm724x/gdm_mux.h | 12 ++++++------
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/drivers/staging/gdm724x/gdm_mux.c b/drivers/staging/gdm724x/gdm_mux.c
index 6bedd66..5e661d9 100644
--- a/drivers/staging/gdm724x/gdm_mux.c
+++ b/drivers/staging/gdm724x/gdm_mux.c
@@ -278,8 +278,10 @@ static void gdm_mux_rcv_complete(struct urb *urb)
 	}
 }
 
-static int gdm_mux_recv(void *priv_dev, int (*cb)(void *data, int len,
-			int tty_index, struct tty_dev *tty_dev, int complete))
+static int gdm_mux_recv(void *priv_dev,
+			int (*cb)(void *data, int len,
+				  int tty_index,
+				  struct tty_dev *tty_dev, int complete))
 {
 	struct mux_dev *mux_dev = priv_dev;
 	struct usb_device *usbdev = mux_dev->usbdev;
diff --git a/drivers/staging/gdm724x/gdm_mux.h b/drivers/staging/gdm724x/gdm_mux.h
index 3d50383..49bb90d 100644
--- a/drivers/staging/gdm724x/gdm_mux.h
+++ b/drivers/staging/gdm724x/gdm_mux.h
@@ -27,8 +27,8 @@
 
 #define START_FLAG 0xA512485A
 #define MUX_HEADER_SIZE 14
-#define MUX_TX_MAX_SIZE (1024*10)
-#define MUX_RX_MAX_SIZE (1024*30)
+#define MUX_TX_MAX_SIZE (1024 * 10)
+#define MUX_RX_MAX_SIZE (1024 * 30)
 #define AT_PKT_TYPE 0xF011
 #define DM_PKT_TYPE 0xF010
 
@@ -70,9 +70,9 @@ struct rx_cxt {
 	struct list_head to_host_list;
 	struct list_head rx_submit_list;
 	struct list_head rx_free_list;
-	spinlock_t to_host_lock;
-	spinlock_t submit_list_lock;
-	spinlock_t free_list_lock;
+	spinlock_t to_host_lock;         /* spinlock for host handling */
+	spinlock_t submit_list_lock;     /* spinlock for submit list handling */
+	spinlock_t free_list_lock;       /* spinlock for free list handling */
 };
 
 struct mux_dev {
@@ -88,7 +88,7 @@ struct mux_dev {
 		     int tty_index,
 		     struct tty_dev *tty_dev,
 		     int complete);
-	spinlock_t write_lock;
+	spinlock_t write_lock;          /* spinlock for write handling */
 	struct tty_dev *tty_dev;
 };
 
-- 
2.1.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ