Move C labels to start-of-line
Also mark the corresponding lint test stable. Change-Id: Ib7c9ed88c5254bf56e68c01cdbd5ab91cd7bfc2f Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/772 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
533ec00689
commit
c5fc7db355
@ -267,7 +267,7 @@ void smp_write_intsrc_pci_bridge(struct mp_config_table *mc,
|
|||||||
smp_write_intsrc_pci_bridge(mc, irqtype, irqflag, child, dstapic, dstirq_x);
|
smp_write_intsrc_pci_bridge(mc, irqtype, irqflag, child, dstapic, dstirq_x);
|
||||||
}
|
}
|
||||||
|
|
||||||
next:
|
next:
|
||||||
child = child->sibling;
|
child = child->sibling;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -227,7 +227,7 @@ static void set_cpu_ops(struct device *cpu)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
found:
|
found:
|
||||||
cpu->ops = driver->ops;
|
cpu->ops = driver->ops;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -511,7 +511,7 @@ static int selfboot(struct lb_memory *mem, struct cbfs_payload *payload)
|
|||||||
jmp_to_elf_entry((void*)entry, bounce_buffer, bounce_size);
|
jmp_to_elf_entry((void*)entry, bounce_buffer, bounce_size);
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -123,7 +123,7 @@ int vtxprintf(void (*tx_byte)(unsigned char byte), const char *fmt, va_list args
|
|||||||
|
|
||||||
/* process flags */
|
/* process flags */
|
||||||
flags = 0;
|
flags = 0;
|
||||||
repeat:
|
repeat:
|
||||||
++fmt; /* this also skips first '%' */
|
++fmt; /* this also skips first '%' */
|
||||||
switch (*fmt) {
|
switch (*fmt) {
|
||||||
case '-': flags |= LEFT; goto repeat;
|
case '-': flags |= LEFT; goto repeat;
|
||||||
|
@ -47,7 +47,7 @@ _secondary_start:
|
|||||||
1: hlt
|
1: hlt
|
||||||
jmp 1b
|
jmp 1b
|
||||||
|
|
||||||
gdtaddr:
|
gdtaddr:
|
||||||
.word gdt_limit /* the table limit */
|
.word gdt_limit /* the table limit */
|
||||||
.long gdt /* we know the offset */
|
.long gdt /* we know the offset */
|
||||||
|
|
||||||
|
@ -267,7 +267,7 @@ void pmm_handleInt()
|
|||||||
rval = 0xFFFFFFFF;
|
rval = 0xFFFFFFFF;
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
exit:
|
exit:
|
||||||
/* exit handler of this function, restore registers, put return value in DX:AX */
|
/* exit handler of this function, restore registers, put return value in DX:AX */
|
||||||
M.x86 = backup_regs;
|
M.x86 = backup_regs;
|
||||||
M.x86.R_DX = (u16) ((rval >> 16) & 0xFFFF);
|
M.x86.R_DX = (u16) ((rval >> 16) & 0xFFFF);
|
||||||
|
@ -166,7 +166,7 @@ int xmodemReceive(unsigned char *dest, int destsz)
|
|||||||
_outbyte(ACK);
|
_outbyte(ACK);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
reject:
|
reject:
|
||||||
flushinput();
|
flushinput();
|
||||||
_outbyte(NAK);
|
_outbyte(NAK);
|
||||||
}
|
}
|
||||||
|
@ -681,7 +681,7 @@ hw_err:
|
|||||||
#if CONFIG_QRANK_DIMM_SUPPORT
|
#if CONFIG_QRANK_DIMM_SUPPORT
|
||||||
sz.rank = 0;
|
sz.rank = 0;
|
||||||
#endif
|
#endif
|
||||||
out:
|
out:
|
||||||
return sz;
|
return sz;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
/* for PCI_ADDR(0, 0x18, 2, 0x98) index,
|
/* for PCI_ADDR(0, 0x18, 2, 0x98) index,
|
||||||
and PCI_ADDR(0x, 0x18, 2, 0x9c) data */
|
and PCI_ADDR(0x, 0x18, 2, 0x9c) data */
|
||||||
/*
|
/*
|
||||||
index:
|
index:
|
||||||
[29: 0] DctOffset (Dram Controller Offset)
|
[29: 0] DctOffset (Dram Controller Offset)
|
||||||
[30:30] DctAccessWrite (Dram Controller Read/Write Select)
|
[30:30] DctAccessWrite (Dram Controller Read/Write Select)
|
||||||
0 = read access
|
0 = read access
|
||||||
@ -659,7 +659,7 @@ static void sdram_set_registers(const struct mem_controller *ctrl, struct sys_in
|
|||||||
/* for PCI_ADDR(0, 0x18, 2, 0x98) index,
|
/* for PCI_ADDR(0, 0x18, 2, 0x98) index,
|
||||||
and PCI_ADDR(0x, 0x18, 2, 0x9c) data */
|
and PCI_ADDR(0x, 0x18, 2, 0x9c) data */
|
||||||
/*
|
/*
|
||||||
index:
|
index:
|
||||||
[29: 0] DctOffset (Dram Controller Offset)
|
[29: 0] DctOffset (Dram Controller Offset)
|
||||||
[30:30] DctAccessWrite (Dram Controller Read/Write Select)
|
[30:30] DctAccessWrite (Dram Controller Read/Write Select)
|
||||||
0 = read access
|
0 = read access
|
||||||
@ -820,7 +820,7 @@ static void spd_get_dimm_size(unsigned device, struct dimm_size *sz)
|
|||||||
sz->col = 0;
|
sz->col = 0;
|
||||||
sz->bank = 0;
|
sz->bank = 0;
|
||||||
sz->rank = 0;
|
sz->rank = 0;
|
||||||
out:
|
out:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -419,7 +419,7 @@ static void do_test2(int i)
|
|||||||
|
|
||||||
raminit_main();
|
raminit_main();
|
||||||
|
|
||||||
done:
|
done:
|
||||||
memcpy(&end_buf, &tmp_buf, sizeof(end_buf));
|
memcpy(&end_buf, &tmp_buf, sizeof(end_buf));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -161,7 +161,7 @@ static struct dimm_size spd_get_dimm_size(unsigned device)
|
|||||||
hw_err:
|
hw_err:
|
||||||
sz.side1 = 0;
|
sz.side1 = 0;
|
||||||
sz.side2 = 0;
|
sz.side2 = 0;
|
||||||
out:
|
out:
|
||||||
return sz;
|
return sz;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -286,7 +286,7 @@ static int spd_set_row_attributes(const struct mem_controller *ctrl,
|
|||||||
/* If an hw_error occurs report that I have no memory */
|
/* If an hw_error occurs report that I have no memory */
|
||||||
hw_err:
|
hw_err:
|
||||||
dra = 0;
|
dra = 0;
|
||||||
out:
|
out:
|
||||||
return dra;
|
return dra;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -658,7 +658,7 @@ static int spd_set_dram_controller_mode(const struct mem_controller *ctrl,
|
|||||||
/* If an hw_error occurs report that I have no memory */
|
/* If an hw_error occurs report that I have no memory */
|
||||||
hw_err:
|
hw_err:
|
||||||
drc = 0;
|
drc = 0;
|
||||||
out:
|
out:
|
||||||
return drc;
|
return drc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,7 +164,7 @@ static struct dimm_size spd_get_dimm_size(unsigned device)
|
|||||||
hw_err:
|
hw_err:
|
||||||
sz.side1 = 0;
|
sz.side1 = 0;
|
||||||
sz.side2 = 0;
|
sz.side2 = 0;
|
||||||
out:
|
out:
|
||||||
return sz;
|
return sz;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -291,7 +291,7 @@ static int spd_set_row_attributes(const struct mem_controller *ctrl,
|
|||||||
/* If an hw_error occurs report that I have no memory */
|
/* If an hw_error occurs report that I have no memory */
|
||||||
hw_err:
|
hw_err:
|
||||||
dra = 0;
|
dra = 0;
|
||||||
out:
|
out:
|
||||||
return dra;
|
return dra;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -664,7 +664,7 @@ static int spd_set_dram_controller_mode(const struct mem_controller *ctrl,
|
|||||||
/* If an hw_error occurs report that I have no memory */
|
/* If an hw_error occurs report that I have no memory */
|
||||||
hw_err:
|
hw_err:
|
||||||
drc = 0;
|
drc = 0;
|
||||||
out:
|
out:
|
||||||
return drc;
|
return drc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -154,7 +154,7 @@ static struct dimm_size spd_get_dimm_size(u16 device)
|
|||||||
hw_err:
|
hw_err:
|
||||||
sz.side1 = 0;
|
sz.side1 = 0;
|
||||||
sz.side2 = 0;
|
sz.side2 = 0;
|
||||||
out:
|
out:
|
||||||
return sz;
|
return sz;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -281,7 +281,7 @@ static int spd_set_row_attributes(const struct mem_controller *ctrl,
|
|||||||
/* If an hw_error occurs report that I have no memory */
|
/* If an hw_error occurs report that I have no memory */
|
||||||
hw_err:
|
hw_err:
|
||||||
dra = 0;
|
dra = 0;
|
||||||
out:
|
out:
|
||||||
return dra;
|
return dra;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -597,7 +597,7 @@ static int spd_set_dram_controller_mode(const struct mem_controller *ctrl,
|
|||||||
/* If an hw_error occurs report that I have no memory */
|
/* If an hw_error occurs report that I have no memory */
|
||||||
hw_err:
|
hw_err:
|
||||||
drc = 0;
|
drc = 0;
|
||||||
out:
|
out:
|
||||||
return drc;
|
return drc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ static struct dimm_size spd_get_dimm_size(u16 device)
|
|||||||
hw_err:
|
hw_err:
|
||||||
sz.side1 = 0;
|
sz.side1 = 0;
|
||||||
sz.side2 = 0;
|
sz.side2 = 0;
|
||||||
out:
|
out:
|
||||||
print_debug("dimm ");
|
print_debug("dimm ");
|
||||||
print_debug_hex8(device);
|
print_debug_hex8(device);
|
||||||
print_debug(" size = ");
|
print_debug(" size = ");
|
||||||
|
@ -1478,7 +1478,7 @@ static struct dimm_size sdram_get_dimm_size(struct sys_info *sysinfo, u16 dimmno
|
|||||||
*/
|
*/
|
||||||
sz.side1 = 0;
|
sz.side1 = 0;
|
||||||
sz.side2 = 0;
|
sz.side2 = 0;
|
||||||
out:
|
out:
|
||||||
return sz;
|
return sz;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -194,7 +194,7 @@ static unsigned char do_smbus_read_byte(unsigned smbus_io_base,
|
|||||||
|
|
||||||
return smbus_get_result(smbus_io_base);
|
return smbus_get_result(smbus_io_base);
|
||||||
|
|
||||||
err:
|
err:
|
||||||
print_debug("SMBUS READ ERROR:");
|
print_debug("SMBUS READ ERROR:");
|
||||||
print_debug_hex8(error);
|
print_debug_hex8(error);
|
||||||
print_debug(" device:");
|
print_debug(" device:");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user