Skip to contentSkip to conversation

arch/mips/pci/ops-msc.c: Checkpatch cleanup

PATCH Applied Andrea Gelmini 2 participants 22 messages May 23, 2010 – May 24, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 18/199 arch/mips/pci/ops-msc.c: Checkpatch cleanup

arch/mips/pci/ops-msc.c:90: ERROR: "foo * bar" should be "foo *bar" arch/mips/pci/ops-msc.c:100: ERROR: code indent should use tabs where possible arch/mips/pci/ops-msc.c:127: ERROR: code indent should use tabs where possible

---
 arch/mips/pci/ops-msc.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
arch/mips/pci/ops-msc.c +3 -3
index 5d9fbb0..3d3576f 100644
@@ -87,7 +87,7 @@ static int msc_pcibios_config_access(unsigned char access_type,
  * read/write a 32bit word and mask/modify the data we actually want.
  */
 static int msc_pcibios_read(struct pci_bus *bus, unsigned int devfn,
-			     int where, int size, u32 * val)
+			    int where, int size, u32 *val)
 {
 	u32 data = 0;
 
@@ -97,7 +97,7 @@ static int msc_pcibios_read(struct pci_bus *bus, unsigned int devfn,
 		return PCIBIOS_BAD_REGISTER_NUMBER;
 
 	if (msc_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where,
-	                              &data))
+				      &data))
 		return -1;
 
 	if (size == 1)
@@ -124,7 +124,7 @@ static int msc_pcibios_write(struct pci_bus *bus, unsigned int devfn,
 		data = val;
 	else {
 		if (msc_pcibios_config_access(PCI_ACCESS_READ, bus, devfn,
-		                              where, &data))
+					      where, &data))
 			return -1;
 
 		if (size == 1)
Signature · 1 line
1.7.1.251.gf80a2
#1 lore raw

PATCH 20/199 arch/mips/pmc-sierra/yosemite/ht-irq.c: Checkpatch cleanup

arch/mips/pmc-sierra/yosemite/ht-irq.c:38: ERROR: code indent should use tabs where possible arch/mips/pmc-sierra/yosemite/ht-irq.c:39: ERROR: code indent should use tabs where possible arch/mips/pmc-sierra/yosemite/ht-irq.c:40: ERROR: code indent should use tabs where possible arch/mips/pmc-sierra/yosemite/ht-irq.c:43: ERROR: code indent should use tabs where possible arch/mips/pmc-sierra/yosemite/ht-irq.c:44: ERROR: code indent should use tabs where possible arch/mips/pmc-sierra/yosemite/ht-irq.c:45: ERROR: code indent should use tabs where possible

---
 arch/mips/pmc-sierra/yosemite/ht-irq.c |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)
arch/mips/pmc-sierra/yosemite/ht-irq.c +6 -7
index 5aec405..86b98e9 100644
@@ -35,18 +35,17 @@
  */
 void __init titan_ht_pcibios_fixup_bus(struct pci_bus *bus)
 {
-        struct pci_bus *current_bus = bus;
-        struct pci_dev *devices;
-        struct list_head *devices_link;
+	struct pci_bus *current_bus = bus;
+	struct pci_dev *devices;
+	struct list_head *devices_link;
 
 	list_for_each(devices_link, &(current_bus->devices)) {
-                devices = pci_dev_b(devices_link);
-                if (devices == NULL)
-                        continue;
+		devices = pci_dev_b(devices_link);
+		if (devices == NULL)
+			continue;
 	}
 
 	/*
 	 * PLX and SPKT related changes go here
 	 */
-
 }
Signature · 1 line
1.7.1.251.gf80a2
Applied
#2 lore raw

Re: [PATCH 020/199] arch/mips/pmc-sierra/yosemite/ht-irq.c: Checkpatch cleanup

Queued for 2.6.36. Thanks,

Ralf

#3 lore raw

PATCH 163/199 arch/mips/dec/promcon.c: Checkpatch cleanup

In reply to Andrea Gelmini

arch/mips/dec/promcon.c:37: ERROR: that open brace { should be on the previous line

---
 arch/mips/dec/promcon.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
arch/mips/dec/promcon.c +1 -2
index 9f0972f..c239c25 100644
@@ -33,8 +33,7 @@ static int __init prom_console_setup(struct console *co, char *options)
 	return 0;
 }
 
-static struct console sercons =
-{
+static struct console sercons = {
 	.name	= "ttyS",
 	.write	= prom_console_write,
 	.setup	= prom_console_setup,
Signature · 1 line
1.7.1.251.gf80a2
Applied
#4 lore raw

Re: [PATCH 163/199] arch/mips/dec/promcon.c: Checkpatch cleanup

Queued for 2.6.36. Thanks,

Ralf

#5 lore raw

PATCH 164/199 arch/mips/math-emu/dp_modf.c: Checkpatch cleanup

In reply to Andrea Gelmini

arch/mips/math-emu/dp_modf.c:32: ERROR: "foo * bar" should be "foo *bar"

---
 arch/mips/math-emu/dp_modf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/mips/math-emu/dp_modf.c +1 -1
index 25861a4..a8570e5 100644
@@ -29,7 +29,7 @@
 
 /* modf function is always exact for a finite number
 */
-ieee754dp ieee754dp_modf(ieee754dp x, ieee754dp * ip)
+ieee754dp ieee754dp_modf(ieee754dp x, ieee754dp *ip)
 {
 	COMPXDP;
 
Signature · 1 line
1.7.1.251.gf80a2
Applied
#6 lore raw

Re: [PATCH 164/199] arch/mips/math-emu/dp_modf.c: Checkpatch cleanup

Queued for 2.6.36. Thanks,

Ralf

#7 lore raw

PATCH 165/199 arch/mips/math-emu/dp_tint.c: Checkpatch cleanup

In reply to Andrea Gelmini

arch/mips/math-emu/dp_tint.c:73: ERROR: else should follow close brace '}'

---
 arch/mips/math-emu/dp_tint.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
arch/mips/math-emu/dp_tint.c +1 -2
index 77b2b7c..2447862 100644
@@ -69,8 +69,7 @@ int ieee754dp_tint(ieee754dp x)
 			round = 0;
 			sticky = residue != 0;
 			xm = 0;
-		}
-		else {
+		} else {
 			residue = xm << (64 - DP_MBITS + xe);
 			round = (residue >> 63) != 0;
 			sticky = (residue << 1) != 0;
Signature · 1 line
1.7.1.251.gf80a2
Applied
#8 lore raw

Re: [PATCH 165/199] arch/mips/math-emu/dp_tint.c: Checkpatch cleanup

Queued for 2.6.36. Thanks,

Ralf

#9 lore raw

PATCH 166/199 arch/mips/math-emu/dp_tlong.c: Checkpatch cleanup

In reply to Andrea Gelmini

arch/mips/math-emu/dp_tlong.c:75: ERROR: else should follow close brace '}'

---
 arch/mips/math-emu/dp_tlong.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
arch/mips/math-emu/dp_tlong.c +1 -2
index d71113e..0f07ec2 100644
@@ -71,8 +71,7 @@ s64 ieee754dp_tlong(ieee754dp x)
 			round = 0;
 			sticky = residue != 0;
 			xm = 0;
-		}
-		else {
+		} else {
 			/* Shifting a u64 64 times does not work,
 			* so we do it in two steps. Be aware that xe
 			* may be -1 */
Signature · 1 line
1.7.1.251.gf80a2
Applied
#10 lore raw

Re: [PATCH 166/199] arch/mips/math-emu/dp_tlong.c: Checkpatch cleanup

Queued for 2.6.36. Thanks,

Ralf

#11 lore raw

PATCH 167/199 arch/mips/math-emu/sp_modf.c: Checkpatch cleanup

In reply to Andrea Gelmini

arch/mips/math-emu/sp_modf.c:32: ERROR: "foo * bar" should be "foo *bar"

---
 arch/mips/math-emu/sp_modf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/mips/math-emu/sp_modf.c +1 -1
index 4b1dbac..7656894 100644
@@ -29,7 +29,7 @@
 
 /* modf function is always exact for a finite number
 */
-ieee754sp ieee754sp_modf(ieee754sp x, ieee754sp * ip)
+ieee754sp ieee754sp_modf(ieee754sp x, ieee754sp *ip)
 {
 	COMPXSP;
 
Signature · 1 line
1.7.1.251.gf80a2
Applied
#12 lore raw

Re: [PATCH 167/199] arch/mips/math-emu/sp_modf.c: Checkpatch cleanup

Queued for 2.6.36. Thanks,

Ralf

#13 lore raw

PATCH 168/199 arch/mips/math-emu/sp_tint.c: Checkpatch cleanup

In reply to Andrea Gelmini

arch/mips/math-emu/sp_tint.c:76: ERROR: else should follow close brace '}'

---
 arch/mips/math-emu/sp_tint.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
arch/mips/math-emu/sp_tint.c +1 -2
index 1d73d2a..352dc3a 100644
@@ -72,8 +72,7 @@ int ieee754sp_tint(ieee754sp x)
 			round = 0;
 			sticky = residue != 0;
 			xm = 0;
-		}
-		else {
+		} else {
 			/* Shifting a u32 32 times does not work,
 			* so we do it in two steps. Be aware that xe
 			* may be -1 */
Signature · 1 line
1.7.1.251.gf80a2
Applied
#14 lore raw

Re: [PATCH 168/199] arch/mips/math-emu/sp_tint.c: Checkpatch cleanup

Queued for 2.6.36. Thanks,

Ralf

#15 lore raw

PATCH 169/199 arch/mips/math-emu/sp_tlong.c: Checkpatch cleanup

In reply to Andrea Gelmini

arch/mips/math-emu/sp_tlong.c:75: ERROR: else should follow close brace '}'

---
 arch/mips/math-emu/sp_tlong.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
arch/mips/math-emu/sp_tlong.c +1 -2
index 4be21aa..92cd9c5 100644
@@ -71,8 +71,7 @@ s64 ieee754sp_tlong(ieee754sp x)
 			round = 0;
 			sticky = residue != 0;
 			xm = 0;
-		}
-		else {
+		} else {
 			residue = xm << (32 - SP_MBITS + xe);
 			round = (residue >> 31) != 0;
 			sticky = (residue << 1) != 0;
Signature · 1 line
1.7.1.251.gf80a2
Applied
#16 lore raw

Re: [PATCH 169/199] arch/mips/math-emu/sp_tlong.c: Checkpatch cleanup

Queued for 2.6.36. Thanks,

Ralf

#17 lore raw

PATCH 170/199 arch/mips/pci/ops-titan-ht.c: Checkpatch cleanup

In reply to Andrea Gelmini

arch/mips/pci/ops-titan-ht.c:36: ERROR: "foo * bar" should be "foo *bar" arch/mips/pci/ops-titan-ht.c:68: ERROR: "foo * bar" should be "foo *bar"

---
 arch/mips/pci/ops-titan-ht.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/mips/pci/ops-titan-ht.c +2 -2
index 46c636c..924e45e 100644
@@ -33,7 +33,7 @@
 #include <asm/titan_dep.h>
 
 static int titan_ht_config_read_dword(struct pci_bus *bus, unsigned int devfn,
-	int offset, u32 * val)
+	int offset, u32 *val)
 {
 	volatile uint32_t address;
 	int busno;
@@ -65,7 +65,7 @@ static int titan_ht_config_read_dword(struct pci_bus *bus, unsigned int devfn,
 }
 
 static int titan_ht_config_read(struct pci_bus *bus, unsigned int devfn,
-	int offset, int size, u32 * val)
+	int offset, int size, u32 *val)
 {
 	uint32_t dword;
 
Signature · 1 line
1.7.1.251.gf80a2
Applied
#18 lore raw

Re: [PATCH 170/199] arch/mips/pci/ops-titan-ht.c: Checkpatch cleanup

Queued for 2.6.36. Thanks,

Ralf

#19 lore raw

PATCH 171/199 arch/mips/sgi-ip27/ip27-klconfig.c: Checkpatch cleanup

In reply to Andrea Gelmini

arch/mips/sgi-ip27/ip27-klconfig.c:51: ERROR: "foo * bar" should be "foo *bar" arch/mips/sgi-ip27/ip27-klconfig.c:63: ERROR: "foo * bar" should be "foo *bar" arch/mips/sgi-ip27/ip27-klconfig.c:81: ERROR: "foo * bar" should be "foo *bar" arch/mips/sgi-ip27/ip27-klconfig.c:100: ERROR: "foo * bar" should be "foo *bar"

---
 arch/mips/sgi-ip27/ip27-klconfig.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
arch/mips/sgi-ip27/ip27-klconfig.c +4 -4
index dd830b3..7afe146 100644
@@ -48,7 +48,7 @@ klinfo_t *find_first_component(lboard_t *brd, unsigned char struct_type)
 	return find_component(brd, (klinfo_t *)NULL, struct_type);
 }
 
-lboard_t * find_lboard(lboard_t *start, unsigned char brd_type)
+lboard_t *find_lboard(lboard_t *start, unsigned char brd_type)
 {
 	/* Search all boards stored on this node. */
 	while (start) {
@@ -60,7 +60,7 @@ lboard_t * find_lboard(lboard_t *start, unsigned char brd_type)
 	return (lboard_t *)NULL;
 }
 
-lboard_t * find_lboard_class(lboard_t *start, unsigned char brd_type)
+lboard_t *find_lboard_class(lboard_t *start, unsigned char brd_type)
 {
 	/* Search all boards stored on this node. */
 	while (start) {
@@ -78,7 +78,7 @@ cnodeid_t get_cpu_cnode(cpuid_t cpu)
 	return CPUID_TO_COMPACT_NODEID(cpu);
 }
 
-klcpu_t * nasid_slice_to_cpuinfo(nasid_t nasid, int slice)
+klcpu_t *nasid_slice_to_cpuinfo(nasid_t nasid, int slice)
 {
 	lboard_t *brd;
 	klcpu_t *acpu;
@@ -97,7 +97,7 @@ klcpu_t * nasid_slice_to_cpuinfo(nasid_t nasid, int slice)
 	return (klcpu_t *)NULL;
 }
 
-klcpu_t * sn_get_cpuinfo(cpuid_t cpu)
+klcpu_t *sn_get_cpuinfo(cpuid_t cpu)
 {
 	nasid_t nasid;
 	int slice;
Signature · 1 line
1.7.1.251.gf80a2
#20 lore raw

Re: [PATCH 171/199] arch/mips/sgi-ip27/ip27-klconfig.c: Checkpatch cleanup

Queued for 2.6.36. And just like for all the other patches of this series which I handle - splitting this patches series into subatomic particles is quite annoying for us maintainers - this series really should be consolidated into far fewer patches.

Thanks,

Ralf

Applied
#21 lore raw
In reply to Andrea Gelmini
Quoted 3 lines · Andrea Gelmini

arch/mips/pci/ops-msc.c:90: ERROR: "foo * bar" should be "foo *bar" arch/mips/pci/ops-msc.c:100: ERROR: code indent should use tabs where possible arch/mips/pci/ops-msc.c:127: ERROR: code indent should use tabs where possible

Queued for 2.6.36. Thanks,

Ralf