Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1609165

[PATCH 3/6] hpet: fix checkpatch complains about spaces

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Corentin Labbe <clabbe.montjoie@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 3/6] hpet: fix checkpatch complains about spaces
Date Sat, 25 Mar 2017 15:50:02 +0100
Message-ID <toVaW-2cv-5@gated-at.bofh.it> (permalink)
References <toVaW-2cv-3@gated-at.bofh.it>
X-Original-To clemens@ladisch.de, arnd@arndb.de, gregkh@linuxfoundation.org
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QP9LL03EHhar1K693P/va0mTY/kvRXYrQsD9qVofFag=; b=BclifLi/nimiLzaqrpkDGLpwUYl/jAjrl20QSz8+DF5y2YsLBoJilt1W9kromwYZXL xbqPFfR7hKyiK3NXSIBG35ultBifyOLn7SncUC38UGufDQENHeup4jz9iTOoa//nGVwv mGQ+aPVBb9aFRWIY11mnkM4BmbZsBCkx1c3TA1rTVxWV7eURZmDTthltyxZKq68M4rLa QFwXqDAdAOe/o3Saiji4cLDbBHiio5vE2rrVM1kkqb0pqv9y8k9ziVIt0WBcPFrdlXl9 n17dJXiq+W3OcFTovtL5tzxAIbbVRrblEKNiFZ1rk1Z01P+VaSEZMPQmTMwBaT/bSH45 SJzQ==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=QP9LL03EHhar1K693P/va0mTY/kvRXYrQsD9qVofFag=; b=MrR4XvWhLbA69NOMQuuSgDMhpNrY3qWsdgTvceqE23jw21v9lryvxB1Fq98uOuxESR wIf/YTXWOpMr3TVbhzq7WWFDADpfNvrvfG40m2ZBSRKPDLyTq/4PxQEr0v+Wfi1f7j2f 4eTmJcxb5e4bohXBenSbbzZAzQ2vPb9zy9uiQZNr7UD0Le5aZl4uoWcH2ynggQJ1s+mk NlAq+cPLUJHAYbzSOGDdhO6DhHg/w317XP0bgivczOmOktmOFoX6GpBZR+OzPhIHQRTd 7U/UkFKA6gGnhHNCS73TTPIUxNslJ/TfXq8xcsaagNB72O0EUahfmWeTKYvxhhLW5ukM z7Mw==
X-Gm-Message-State AFeK/H2GQsYx28te3PEKkGZS73Asi3d3JBfriGxTUBBJMbENKEd646sD41TKbyNV+PtWdQ==
X-Received by 10.28.37.135 with SMTP id l129mr2165875wml.49.1490453132112; Sat, 25 Mar 2017 07:45:32 -0700 (PDT)
X-Mailer git-send-email 2.10.2
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 64
Organization linux.* mail to news gateway
X-Original-Cc linux-kernel@vger.kernel.org, Corentin Labbe <clabbe.montjoie@gmail.com>
X-Original-Date Sat, 25 Mar 2017 15:43:18 +0100
X-Original-Message-ID <20170325144321.14284-4-clabbe.montjoie@gmail.com>
X-Original-References <20170325144321.14284-1-clabbe.montjoie@gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1609165

Show key headers only | View raw


This patch make checkpatch happy for spaces.

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
---
 drivers/char/hpet.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c
index a22543d..602b810 100644
--- a/drivers/char/hpet.c
+++ b/drivers/char/hpet.c
@@ -50,7 +50,6 @@
 
 #define HPET_RANGE_SIZE		1024	/* from HPET spec */
 
-
 /* WARNING -- don't get confused.  These macros are never used
  * to write the (single) counter, and rarely to read it.
  * They're badly named; to fix, someday.
@@ -82,6 +81,7 @@ static struct clocksource clocksource_hpet = {
 	.mask		= CLOCKSOURCE_MASK(64),
 	.flags		= CLOCK_SOURCE_IS_CONTINUOUS,
 };
+
 static struct clocksource *hpet_clocksource;
 #endif
 
@@ -280,7 +280,7 @@ static int hpet_open(struct inode *inode, struct file *file)
 }
 
 static ssize_t
-hpet_read(struct file *file, char __user *buf, size_t count, loff_t * ppos)
+hpet_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
 {
 	DECLARE_WAITQUEUE(wait, current);
 	unsigned long data;
@@ -326,7 +326,7 @@ hpet_read(struct file *file, char __user *buf, size_t count, loff_t * ppos)
 	return retval;
 }
 
-static unsigned int hpet_poll(struct file *file, poll_table * wait)
+static unsigned int hpet_poll(struct file *file, poll_table *wait)
 {
 	unsigned long v;
 	struct hpet_dev *devp;
@@ -686,6 +686,7 @@ hpet_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 
 	if ((cmd == HPET_INFO) && !err) {
 		struct compat_hpet_info __user *u = compat_ptr(arg);
+
 		if (put_user(info.hi_ireqfreq, &u->hi_ireqfreq) ||
 		    put_user(info.hi_flags, &u->hi_flags) ||
 		    put_user(info.hi_hpet, &u->hi_hpet) ||
@@ -901,7 +902,7 @@ int hpet_alloc(struct hpet_data *hdp)
 		"hpet%u: %u comparators, %d-bit %u.%06u MHz counter\n",
 		hpetp->hp_which, hpetp->hp_ntimer,
 		cap & HPET_COUNTER_SIZE_MASK ? 64 : 32,
-		(unsigned) temp, remainder);
+		(unsigned)temp, remainder);
 
 	mcfg = readq(&hpet->hpet_config);
 	if ((mcfg & HPET_ENABLE_CNF_MASK) == 0) {
-- 
2.10.2

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 3/6] hpet: fix checkpatch complains about spaces Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-25 15:50 +0100

csiph-web