Martin Roth (martinroth(a)google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14197
-gerrit
commit 8519f0ed797fe61a393e437cc2d7a4155452a092
Author: Martin Roth <martinroth(a)google.com>
Date: Wed Mar 30 14:08:52 2016 -0600
LINT TEST: Do not submit
This should cause all of the lint-stable tests to fail.
Change-Id: I38db15c4d169bfebc443007da883e17a08fadc01
Signed-off-by: Martin Roth <martinroth(a)google.com>
---
site-local/tmp.b6e9i3VnEc | 0
src/acpi/sata.c | 18 +++++++++---------
src/arch/power8/misc.c | 2 +-
src/arch/x86/bootblock_romcc.S | 1 +
src/arch/x86/thread.c | 18 +++++++++---------
src/lib/libgcc.c | 0
src/mainboard/aaeon/pfm-540i_revb/board_info.txt | 2 +-
src/mainboard/amd/bettong/Kconfig.name | 2 --
src/mainboard/google/storm/board_info.txt | 6 ------
src/soc/nvidia/tegra124/spi.c | 4 ++--
src/superio/common/conf_mode.c | 3 +++
11 files changed, 26 insertions(+), 30 deletions(-)
diff --git a/site-local/tmp.b6e9i3VnEc b/site-local/tmp.b6e9i3VnEc
new file mode 100644
index 0000000..e69de29
diff --git a/src/acpi/sata.c b/src/acpi/sata.c
index ec0d505..aab9c0d 100644
--- a/src/acpi/sata.c
+++ b/src/acpi/sata.c
@@ -10,12 +10,12 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
-
+
#include "sata.h"
-
+
#include <arch/acpi.h>
#include <arch/acpigen.h>
-
+
/* e.g.
* generate_sata_ssdt_ports("\_SB.PCI0.SATA", 0x3);
* generates:
@@ -38,23 +38,23 @@ void generate_sata_ssdt_ports(const char *scope, uint32_t enable_map)
int i;
uint32_t bit;
char port_name[4] = "PR00";
-
+
acpigen_write_scope(scope);
-
+
/* generate a device for every enabled port */
for (i = 0; i < 32; i++) {
bit = 1 << i;
if (!(bit & enable_map))
continue;
-
+
port_name[2] = '0' + i / 10;
port_name[3] = '0' + i % 10;
-
+
acpigen_write_device(port_name);
-
+
acpigen_write_name_dword("_ADR", 0xffff + i * 0x10000);
acpigen_pop_len(); /* close PRT%d */
}
-
+
acpigen_pop_len(); /* close scope */
}
diff --git a/src/arch/power8/misc.c b/src/arch/power8/misc.c
index 65b8ecf..fbc5678 100644
--- a/src/arch/power8/misc.c
+++ b/src/arch/power8/misc.c
@@ -6,7 +6,7 @@
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
diff --git a/src/arch/x86/bootblock_romcc.S b/src/arch/x86/bootblock_romcc.S
index 6c1723a..0d7d759 100644
--- a/src/arch/x86/bootblock_romcc.S
+++ b/src/arch/x86/bootblock_romcc.S
@@ -1,3 +1,4 @@
+.att_syntax noprefix
/*
* This file is part of the coreboot project.
*
diff --git a/src/arch/x86/thread.c b/src/arch/x86/thread.c
index 993577d..f2dae2d 100644
--- a/src/arch/x86/thread.c
+++ b/src/arch/x86/thread.c
@@ -1,16 +1,16 @@
/*
- * This file is part of the coreboot project.
+
*
- * Copyright (C) 2013 Google, Inc.
+
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+
+
+
*
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+
+
+
+
*/
#include <thread.h>
diff --git a/src/lib/libgcc.c b/src/lib/libgcc.c
old mode 100644
new mode 100755
diff --git a/src/mainboard/aaeon/pfm-540i_revb/board_info.txt b/src/mainboard/aaeon/pfm-540i_revb/board_info.txt
index 76246af..a8db96f 100644
--- a/src/mainboard/aaeon/pfm-540i_revb/board_info.txt
+++ b/src/mainboard/aaeon/pfm-540i_revb/board_info.txt
@@ -1,3 +1,3 @@
Board name: PFM-540I Rev.B
-Category: half
+Category: lint
Board URL: http://www.aaeonusa.com/products/details/?item_id=1043
diff --git a/src/mainboard/amd/bettong/Kconfig.name b/src/mainboard/amd/bettong/Kconfig.name
deleted file mode 100644
index 09201b5..0000000
--- a/src/mainboard/amd/bettong/Kconfig.name
+++ /dev/null
@@ -1,2 +0,0 @@
-config BOARD_AMD_BETTONG
- bool "Bettong"
diff --git a/src/mainboard/google/storm/board_info.txt b/src/mainboard/google/storm/board_info.txt
deleted file mode 100644
index edc4b32..0000000
--- a/src/mainboard/google/storm/board_info.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-Vendor name: Google
-Board name: Storm Qualcomm IPQ806X board
-Category: settop
-ROM protocol: SPI
-ROM socketed: n
-Flashrom support: y
diff --git a/src/soc/nvidia/tegra124/spi.c b/src/soc/nvidia/tegra124/spi.c
index d5be4a6..3d659d7 100644
--- a/src/soc/nvidia/tegra124/spi.c
+++ b/src/soc/nvidia/tegra124/spi.c
@@ -580,7 +580,7 @@ static int tegra_spi_dma_finish(struct tegra_spi_channel *spi)
}
ret = 0;
-done:
+ done:
spi->dma_in = NULL;
spi->dma_out = NULL;
return ret;
@@ -684,7 +684,7 @@ static int xfer_setup(struct tegra_spi_channel *spi, void *buf,
goto done;
}
-done:
+ done:
return ret;
}
diff --git a/src/superio/common/conf_mode.c b/src/superio/common/conf_mode.c
index cbe1a9e..423f127 100644
--- a/src/superio/common/conf_mode.c
+++ b/src/superio/common/conf_mode.c
@@ -11,6 +11,9 @@
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc.
*/
#include <arch/io.h>
Martin Roth (martinroth(a)google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14197
-gerrit
commit a0d2dcfa9b30616d109d090329c9ab49b8848f7a
Author: Martin Roth <martinroth(a)google.com>
Date: Wed Mar 30 14:08:52 2016 -0600
LINT TEST: Do not submit
This should cause all of the lint-stable tests to fail.
Change-Id: I38db15c4d169bfebc443007da883e17a08fadc01
Signed-off-by: Martin Roth <martinroth(a)google.com>
---
site-local/tmp.b6e9i3VnEc | 0
src/acpi/sata.c | 18 +++++++++---------
src/arch/power8/misc.c | 2 +-
src/arch/x86/bootblock_romcc.S | 1 +
src/arch/x86/thread.c | 18 +++++++++---------
src/lib/libgcc.c | 0
src/mainboard/aaeon/pfm-540i_revb/board_info.txt | 2 +-
src/mainboard/amd/bettong/Kconfig.name | 2 --
src/mainboard/google/storm/board_info.txt | 6 ------
src/soc/nvidia/tegra124/spi.c | 4 ++--
src/superio/common/conf_mode.c | 3 +++
11 files changed, 26 insertions(+), 30 deletions(-)
diff --git a/site-local/tmp.b6e9i3VnEc b/site-local/tmp.b6e9i3VnEc
new file mode 100644
index 0000000..e69de29
diff --git a/src/acpi/sata.c b/src/acpi/sata.c
index ec0d505..aab9c0d 100644
--- a/src/acpi/sata.c
+++ b/src/acpi/sata.c
@@ -10,12 +10,12 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
-
+
#include "sata.h"
-
+
#include <arch/acpi.h>
#include <arch/acpigen.h>
-
+
/* e.g.
* generate_sata_ssdt_ports("\_SB.PCI0.SATA", 0x3);
* generates:
@@ -38,23 +38,23 @@ void generate_sata_ssdt_ports(const char *scope, uint32_t enable_map)
int i;
uint32_t bit;
char port_name[4] = "PR00";
-
+
acpigen_write_scope(scope);
-
+
/* generate a device for every enabled port */
for (i = 0; i < 32; i++) {
bit = 1 << i;
if (!(bit & enable_map))
continue;
-
+
port_name[2] = '0' + i / 10;
port_name[3] = '0' + i % 10;
-
+
acpigen_write_device(port_name);
-
+
acpigen_write_name_dword("_ADR", 0xffff + i * 0x10000);
acpigen_pop_len(); /* close PRT%d */
}
-
+
acpigen_pop_len(); /* close scope */
}
diff --git a/src/arch/power8/misc.c b/src/arch/power8/misc.c
index 65b8ecf..fbc5678 100644
--- a/src/arch/power8/misc.c
+++ b/src/arch/power8/misc.c
@@ -6,7 +6,7 @@
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
diff --git a/src/arch/x86/bootblock_romcc.S b/src/arch/x86/bootblock_romcc.S
index 6c1723a..0d7d759 100644
--- a/src/arch/x86/bootblock_romcc.S
+++ b/src/arch/x86/bootblock_romcc.S
@@ -1,3 +1,4 @@
+.att_syntax noprefix
/*
* This file is part of the coreboot project.
*
diff --git a/src/arch/x86/thread.c b/src/arch/x86/thread.c
index 993577d..f2dae2d 100644
--- a/src/arch/x86/thread.c
+++ b/src/arch/x86/thread.c
@@ -1,16 +1,16 @@
/*
- * This file is part of the coreboot project.
+
*
- * Copyright (C) 2013 Google, Inc.
+
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+
+
+
*
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+
+
+
+
*/
#include <thread.h>
diff --git a/src/lib/libgcc.c b/src/lib/libgcc.c
old mode 100644
new mode 100755
diff --git a/src/mainboard/aaeon/pfm-540i_revb/board_info.txt b/src/mainboard/aaeon/pfm-540i_revb/board_info.txt
index 76246af..a8db96f 100644
--- a/src/mainboard/aaeon/pfm-540i_revb/board_info.txt
+++ b/src/mainboard/aaeon/pfm-540i_revb/board_info.txt
@@ -1,3 +1,3 @@
Board name: PFM-540I Rev.B
-Category: half
+Category: lint
Board URL: http://www.aaeonusa.com/products/details/?item_id=1043
diff --git a/src/mainboard/amd/bettong/Kconfig.name b/src/mainboard/amd/bettong/Kconfig.name
deleted file mode 100644
index 09201b5..0000000
--- a/src/mainboard/amd/bettong/Kconfig.name
+++ /dev/null
@@ -1,2 +0,0 @@
-config BOARD_AMD_BETTONG
- bool "Bettong"
diff --git a/src/mainboard/google/storm/board_info.txt b/src/mainboard/google/storm/board_info.txt
deleted file mode 100644
index edc4b32..0000000
--- a/src/mainboard/google/storm/board_info.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-Vendor name: Google
-Board name: Storm Qualcomm IPQ806X board
-Category: settop
-ROM protocol: SPI
-ROM socketed: n
-Flashrom support: y
diff --git a/src/soc/nvidia/tegra124/spi.c b/src/soc/nvidia/tegra124/spi.c
index d5be4a6..3d659d7 100644
--- a/src/soc/nvidia/tegra124/spi.c
+++ b/src/soc/nvidia/tegra124/spi.c
@@ -580,7 +580,7 @@ static int tegra_spi_dma_finish(struct tegra_spi_channel *spi)
}
ret = 0;
-done:
+ done:
spi->dma_in = NULL;
spi->dma_out = NULL;
return ret;
@@ -684,7 +684,7 @@ static int xfer_setup(struct tegra_spi_channel *spi, void *buf,
goto done;
}
-done:
+ done:
return ret;
}
diff --git a/src/superio/common/conf_mode.c b/src/superio/common/conf_mode.c
index cbe1a9e..423f127 100644
--- a/src/superio/common/conf_mode.c
+++ b/src/superio/common/conf_mode.c
@@ -11,6 +11,9 @@
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc.
*/
#include <arch/io.h>
Martin Roth (martinroth(a)google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14194
-gerrit
commit 1c4607911c3e4c5a38d9fd56bb45784615b39be1
Author: Martin Roth <martinroth(a)google.com>
Date: Wed Mar 30 13:56:23 2016 -0600
lint/lint-stable-004-style-labels: Update script
- Look at entire tree instead of just the current commit. This was
causing the test to overlook some issues that were already in the tree.
- Use find instead of git to get the list of files so this check will
work on new files as well.
- Wrap the command so it's easier to read.
Change-Id: I3dce219a29ffb1ae56a31318b995e3ba8ea43e70
Signed-off-by: Martin Roth <martinroth(a)google.com>
---
util/lint/lint-stable-004-style-labels | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/util/lint/lint-stable-004-style-labels b/util/lint/lint-stable-004-style-labels
index f024ca1..35814d8 100755
--- a/util/lint/lint-stable-004-style-labels
+++ b/util/lint/lint-stable-004-style-labels
@@ -2,6 +2,7 @@
# This file is part of the coreboot project.
#
# Copyright (C) 2012 Patrick Georgi <patrick(a)georgi-clan.de>
+# Copyright (C) 2016 Google Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -15,4 +16,8 @@
# DESCR: Check that C labels begin at start-of-line
LC_ALL=C export LC_ALL
-git diff --name-status |grep -v "^D" |cut -c3- |grep "^src/.*\.[csS]" | xargs grep -Hn '^[[:space:]][[:space:]]*[a-z][a-z]*:[[:space:]]*$' |grep -v "[^a-z_]default:"
+
+find src | \
+ grep "^src/.*\.[csS]" | \
+ xargs grep -Hn '^[[:space:]][[:space:]]*[a-z][a-z]*:[[:space:]]*$' | \
+ grep -v "[^a-z_]default:"
Martin Roth (martinroth(a)google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14193
-gerrit
commit cb7a4b550accd238e7985cf8f1543ff1b5ca272e
Author: Martin Roth <martinroth(a)google.com>
Date: Wed Mar 30 13:30:12 2016 -0600
src/: Fix lint style-labels warnings
The lint-stable-004-style-labels check tries to verify that labels in c
and asm files start at the first column, and don't have whitespace in
front of them.
- Fix 2 actual violations of the lint check.
- Update a comment that was showing up as a violation.
Change-Id: Ia11a90d7301e62a116c7a9ef9b4c2bc3f982b308
Signed-off-by: Martin Roth <martinroth(a)google.com>
---
src/commonlib/lz4.c.inc | 64 +++++++++++-----------
src/cpu/allwinner/a10/raminit.c | 2 +-
src/cpu/amd/family_10h-family_15h/processor_name.c | 2 +-
3 files changed, 34 insertions(+), 34 deletions(-)
diff --git a/src/commonlib/lz4.c.inc b/src/commonlib/lz4.c.inc
index b3be4e5..e8f6e59 100644
--- a/src/commonlib/lz4.c.inc
+++ b/src/commonlib/lz4.c.inc
@@ -1,36 +1,36 @@
/*
- LZ4 - Fast LZ compression algorithm
- Copyright (C) 2011-2015, Yann Collet.
-
- BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are
- met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following disclaimer
- in the documentation and/or other materials provided with the
- distribution.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
- You can contact the author at :
- - LZ4 source repository : https://github.com/Cyan4973/lz4
- - LZ4 public forum : https://groups.google.com/forum/#!forum/lz4c
-*/
+ * LZ4 - Fast LZ compression algorithm
+ * Copyright (C) 2011-2015, Yann Collet.
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following disclaimer
+ * in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * You can contact the author at :
+ * - LZ4 source repository : https://github.com/Cyan4973/lz4
+ * - LZ4 public forum : https://groups.google.com/forum/#!forum/lz4c
+ */
/**************************************
diff --git a/src/cpu/allwinner/a10/raminit.c b/src/cpu/allwinner/a10/raminit.c
index e917e6e..f3b39cb 100644
--- a/src/cpu/allwinner/a10/raminit.c
+++ b/src/cpu/allwinner/a10/raminit.c
@@ -317,7 +317,7 @@ static int dramc_scan_dll_para(void)
return dramc_scan_readpipe();
}
- fail:
+fail:
clrbits_le32(&dram->dllcr[0], 0x3f << 6);
for (cr_i = 1; cr_i < 5; cr_i++)
clrbits_le32(&dram->dllcr[cr_i], 0x4f << 14);
diff --git a/src/cpu/amd/family_10h-family_15h/processor_name.c b/src/cpu/amd/family_10h-family_15h/processor_name.c
index ac0392b..3d92ee2 100644
--- a/src/cpu/amd/family_10h-family_15h/processor_name.c
+++ b/src/cpu/amd/family_10h-family_15h/processor_name.c
@@ -340,7 +340,7 @@ int init_processor_name(void)
}
}
- done:
+done:
strcpymax(&program_string[j], processor_name_string,
sizeof(program_string) - j);
}