the following patch was just integrated into master:
commit 569ad760cc4d7e3595bd9d4f569d08b021a64663
Author: Paul Menzel <paulepanter(a)users.sourceforge.net>
Date: Wed Oct 2 22:10:11 2013 +0200
util/lint/lint-stable-003-whitespace: Ignore temporary files ending with a tilde
Some editors like gedit create auxiliary files ending with a
tilde '~'. As these are not checked into the Git repository, do
not check these for whitespace errors.
Change-Id: I2c4cf00f9d623be73ea3bbb7b2da4f1e1900c8e9
Signed-off-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
Reviewed-on: http://review.coreboot.org/3952
Reviewed-by: Ronald G. Minnich <rminnich(a)gmail.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Jonathan A. Kollasch <jakllsch(a)kollasch.net>
See http://review.coreboot.org/3952 for details.
-gerrit
Paul Menzel (paulepanter(a)users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3984
-gerrit
commit fec4f868b1d3915c80d2603b675d88a520b5de7c
Author: Paul Menzel <paulepanter(a)users.sourceforge.net>
Date: Mon Oct 21 21:22:09 2013 +0200
northbridge/intel/i945/raminit.c: Remove set but unused variable `reg16`
Removing `-Wno-unused-but-set-variable` from `CFLAGS` results in the
following error.
CC northbridge/intel/i945/raminit.romstage.o
src/northbridge/intel/i945/raminit.c: In function 'sdram_detect_cas_latency_and_ram_speed':
src/northbridge/intel/i945/raminit.c:497:6: error: variable 'lowest_common_cas' set but not used [-Werror=unused-but-set-variable]
src/northbridge/intel/i945/raminit.c: In function 'sdram_program_pll_settings':
src/northbridge/intel/i945/raminit.c:1955:15: error: variable 'reg16' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
The variable is declared as `volatile`, but as it is not read anywhere
it can be removed.
Change-Id: Id4a758644a7b799e7662113c07d395e053525934
Signed-off-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
---
src/northbridge/intel/i945/raminit.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/northbridge/intel/i945/raminit.c b/src/northbridge/intel/i945/raminit.c
index b50f1d8..512d8e9 100644
--- a/src/northbridge/intel/i945/raminit.c
+++ b/src/northbridge/intel/i945/raminit.c
@@ -1952,8 +1952,6 @@ static void sdram_set_channel_mode(struct sys_info *sysinfo)
static void sdram_program_pll_settings(struct sys_info *sysinfo)
{
- volatile u16 reg16;
-
MCHBAR32(PLLMON) = 0x80800000;
sysinfo->fsb_frequency = fsbclk();
@@ -1970,7 +1968,7 @@ static void sdram_program_pll_settings(struct sys_info *sysinfo)
MCHBAR16(CPCTL) &= ~(1 << 11);
- reg16 = MCHBAR16(CPCTL); /* Read back register to activate settings */
+ MCHBAR16(CPCTL); /* Read back register to activate settings */
}
static void sdram_program_graphics_frequency(struct sys_info *sysinfo)
Paul Menzel (paulepanter(a)users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3985
-gerrit
commit af4bb566b8eef04ac6f7481bb175cfe3f91d0d9c
Author: Paul Menzel <paulepanter(a)users.sourceforge.net>
Date: Sun Oct 20 00:41:28 2013 +0200
southbridge/via/vt8237r/ctrl.c: Remove set but unused variable `regm3`
Removing `-Wno-unused-but-set-variable` from `CFLAGS` results in the
following error.
CC southbridge/via/vt8237r/ctrl.ramstage.o
src/southbridge/via/vt8237r/ctrl.c: In function 'vt8237_cfg':
src/southbridge/via/vt8237r/ctrl.c:32:11: error: variable 'regm3' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
There is already a `FIXME` line regarding this issue, added in commit
»remove more warnings.« (3c8ac786).
Looking at the history, the file `vt8237_ctrl.c` was based on
`k8t890_ctrl.c`, but removed the code needing the variable `regm3` and
was not adapted in that place.
Therefore remove the variable `regm3` and use `regm` which should also
shadow page E correctly now.
Change-Id: I6bb652419a54b7b7190e417346581f38335425ae
Signed-off-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
---
src/southbridge/via/vt8237r/ctrl.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/southbridge/via/vt8237r/ctrl.c b/src/southbridge/via/vt8237r/ctrl.c
index 78a15e3..e61b8f2 100644
--- a/src/southbridge/via/vt8237r/ctrl.c
+++ b/src/southbridge/via/vt8237r/ctrl.c
@@ -29,7 +29,7 @@
static void vt8237_cfg(struct device *dev)
{
- u8 regm, regm3;
+ u8 regm;
device_t devfun3;
devfun3 = dev_find_device(PCI_VENDOR_ID_VIA,
@@ -80,8 +80,7 @@ static void vt8237_cfg(struct device *dev)
regm = pci_read_config8(devfun3, 0x83);
pci_write_config8(dev, 0x63, regm);
- // FIXME is this really supposed to be regm3?
- regm3 = pci_read_config8(devfun3, 0x82);/* Shadow page E */
+ regm = pci_read_config8(devfun3, 0x82);/* Shadow page E */
pci_write_config8(dev, 0x64, regm);
regm = pci_read_config8(devfun3, 0x86); /* SMM and APIC decoding */
Paul Menzel (paulepanter(a)users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3985
-gerrit
commit dd72d75cdde8832cb43e63175cffb50b013ce79f
Author: Paul Menzel <paulepanter(a)users.sourceforge.net>
Date: Sun Oct 20 00:41:28 2013 +0200
southbridge/via/vt8237r/ctrl.c: Remove unused variable `regm3`
A FIXME was added but never discussed.
Remove it as I see no downside.
CC southbridge/via/vt8237r/ctrl.ramstage.o
src/southbridge/via/vt8237r/ctrl.c: In function 'vt8237_cfg':
src/southbridge/via/vt8237r/ctrl.c:32:11: error: variable 'regm3' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
Change-Id: I6bb652419a54b7b7190e417346581f38335425ae
Signed-off-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
---
src/southbridge/via/vt8237r/ctrl.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/southbridge/via/vt8237r/ctrl.c b/src/southbridge/via/vt8237r/ctrl.c
index 78a15e3..e61b8f2 100644
--- a/src/southbridge/via/vt8237r/ctrl.c
+++ b/src/southbridge/via/vt8237r/ctrl.c
@@ -29,7 +29,7 @@
static void vt8237_cfg(struct device *dev)
{
- u8 regm, regm3;
+ u8 regm;
device_t devfun3;
devfun3 = dev_find_device(PCI_VENDOR_ID_VIA,
@@ -80,8 +80,7 @@ static void vt8237_cfg(struct device *dev)
regm = pci_read_config8(devfun3, 0x83);
pci_write_config8(dev, 0x63, regm);
- // FIXME is this really supposed to be regm3?
- regm3 = pci_read_config8(devfun3, 0x82);/* Shadow page E */
+ regm = pci_read_config8(devfun3, 0x82);/* Shadow page E */
pci_write_config8(dev, 0x64, regm);
regm = pci_read_config8(devfun3, 0x86); /* SMM and APIC decoding */
Paul Menzel (paulepanter(a)users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3984
-gerrit
commit 491cf59a436219c9a947eecd514031d5c675ef32
Author: Paul Menzel <paulepanter(a)users.sourceforge.net>
Date: Mon Oct 21 21:22:09 2013 +0200
northbridge/intel/i945/raminit.c: Remove set but unused variable `reg16`
Removing `-Wno-unused-but-set-variable` from `CFLAGS` results in the
following error.
src/northbridge/intel/i945/raminit.c: In function 'sdram_program_pll_settings':
src/northbridge/intel/i945/raminit.c:1955:15: error: variable 'reg16' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
Change-Id: Id4a758644a7b799e7662113c07d395e053525934
Signed-off-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
---
src/northbridge/intel/i945/raminit.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/northbridge/intel/i945/raminit.c b/src/northbridge/intel/i945/raminit.c
index b50f1d8..512d8e9 100644
--- a/src/northbridge/intel/i945/raminit.c
+++ b/src/northbridge/intel/i945/raminit.c
@@ -1952,8 +1952,6 @@ static void sdram_set_channel_mode(struct sys_info *sysinfo)
static void sdram_program_pll_settings(struct sys_info *sysinfo)
{
- volatile u16 reg16;
-
MCHBAR32(PLLMON) = 0x80800000;
sysinfo->fsb_frequency = fsbclk();
@@ -1970,7 +1968,7 @@ static void sdram_program_pll_settings(struct sys_info *sysinfo)
MCHBAR16(CPCTL) &= ~(1 << 11);
- reg16 = MCHBAR16(CPCTL); /* Read back register to activate settings */
+ MCHBAR16(CPCTL); /* Read back register to activate settings */
}
static void sdram_program_graphics_frequency(struct sys_info *sysinfo)
Paul Menzel (paulepanter(a)users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3982
-gerrit
commit 42162246f0185ecf8148f6a6a986b743e3a19837
Author: Paul Menzel <paulepanter(a)users.sourceforge.net>
Date: Mon Oct 21 09:28:19 2013 +0200
southbridge/intel/i82801ix/lpc.c: Remove unused variable `dummy`
Removing `-Wno-unused-but-set-variable` from `CFLAGS` the build for
QEMU Q35 and Roda RK9, both using the Intel 82801Ix southbridge, fail
with the following error.
src/southbridge/intel/i82801ix/lpc.c: In function 'i82801ix_enable_apic':
src/southbridge/intel/i82801ix/lpc.c:45:5: error: variable 'dummy' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
Removing `dummy` should be safe as GCC probably optimizes it away before
anyway. That no dummy variable is used for an RCBA [1] access in Intel
Lynx Point supports that this can be dropped safely.
[1] root complex base address
[2] src/southbridge/intel/lynxpoint/early_pch.c
Change-Id: I1c138a3498228dbd025f68d5e6af0acc29ed3460
Signed-off-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
---
src/southbridge/intel/i82801ix/lpc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/southbridge/intel/i82801ix/lpc.c b/src/southbridge/intel/i82801ix/lpc.c
index fb0dd56..bea0d98 100644
--- a/src/southbridge/intel/i82801ix/lpc.c
+++ b/src/southbridge/intel/i82801ix/lpc.c
@@ -42,7 +42,6 @@ typedef struct southbridge_intel_i82801ix_config config_t;
static void i82801ix_enable_apic(struct device *dev)
{
- u8 dummy;
u32 reg32;
volatile u32 *ioapic_index = (volatile u32 *)(IO_APIC_ADDR);
volatile u32 *ioapic_data = (volatile u32 *)(IO_APIC_ADDR + 0x10);
@@ -50,7 +49,7 @@ static void i82801ix_enable_apic(struct device *dev)
/* Enable IOAPIC. Keep APIC Range Select at zero. */
RCBA8(0x31ff) = 0x03;
/* We have to read 0x31ff back if bit0 changed. */
- dummy = RCBA8(0x31ff);
+ RCBA8(0x31ff);
/* Lock maximum redirection entries (MRE), R/WO register. */
*ioapic_index = 0x01;
Paul Menzel (paulepanter(a)users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3981
-gerrit
commit 1c9431aa0498113d1fb45a5d9bd266f139227e31
Author: Paul Menzel <paulepanter(a)users.sourceforge.net>
Date: Sun Oct 20 00:11:34 2013 +0200
util/xcompile/xcompile: Remove `-Wno-unused-but-set-variable` from `CFLAGS`
Do not disable warnings about unused but set variables to further
improve the code quality.
Change-Id: I25fa29ac42c9d09596d03f11fb01f31635a62a11
Signed-off-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
---
util/xcompile/xcompile | 5 -----
1 file changed, 5 deletions(-)
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 5388889..9c54760 100644
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -89,11 +89,6 @@ testas() {
detect_special_flags() {
local architecture="$1"
- # GCC 4.6 is much more picky about unused variables.
- # Turn off it's warnings for now:
- testcc "$CC" "$CFLAGS -Wno-unused-but-set-variable " &&
- CFLAGS="$CFLAGS -Wno-unused-but-set-variable "
-
# Use bfd linker instead of gold if available:
testcc "$CC" "$CFLAGS -fuse-ld=bfd" &&
CFLAGS="$CFLAGS -fuse-ld=bfd" && LINKER_SUFFIX='.bfd'