HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/34439 )
Change subject: device: Fix naked reference to CONFIG_DEBUG_RAM_SETUP
......................................................................
device: Fix naked reference to CONFIG_DEBUG_RAM_SETUP
Found-by: util/lint/kconfig_lint
Change-Id: I360c4f563c2aa2acc740eac6c4e0145bda18edb7
Signed-off-by: Elyes HAOUAS <ehaouas(a)noos.fr>
---
M src/device/dram/ddr2.c
M src/device/dram/ddr3.c
M src/include/device/dram/common.h
M src/include/device/dram/ddr3.h
4 files changed, 8 insertions(+), 8 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/39/34439/1
diff --git a/src/device/dram/ddr2.c b/src/device/dram/ddr2.c
index 60588b8..eec2d74 100644
--- a/src/device/dram/ddr2.c
+++ b/src/device/dram/ddr2.c
@@ -668,8 +668,8 @@
/**
* \brief Print the info in DIMM
*
-* Print info about the DIMM. Useful to use when CONFIG_DEBUG_RAM_SETUP is
-* selected, or for a purely informative output.
+* Print info about the DIMM. Useful to use when CONFIG(DEBUG_RAM_SETUP) is
+* true, or for a purely informative output.
*
* @param dimm pointer to already decoded @ref dimm_attr structure
*/
diff --git a/src/device/dram/ddr3.c b/src/device/dram/ddr3.c
index 834dc83..8d79710 100644
--- a/src/device/dram/ddr3.c
+++ b/src/device/dram/ddr3.c
@@ -624,8 +624,8 @@
/**
* \brief Print the info in DIMM
*
-* Print info about the DIMM. Useful to use when CONFIG_DEBUG_RAM_SETUP is
-* selected, or for a purely informative output.
+* Print info about the DIMM. Useful to use when CONFIG(DEBUG_RAM_SETUP) is
+* true, or for a purely informative output.
*
* @param dimm pointer to already decoded @ref dimm_attr structure
*/
diff --git a/src/include/device/dram/common.h b/src/include/device/dram/common.h
index b1677c8..7be58ab 100644
--- a/src/include/device/dram/common.h
+++ b/src/include/device/dram/common.h
@@ -45,10 +45,10 @@
/** @} */
/**
- * \brief Convenience macro for enabling printk with CONFIG_DEBUG_RAM_SETUP
+ * \brief Convenience macro for enabling printk with CONFIG(DEBUG_RAM_SETUP)
*
* Use this macro instead of printk(); for verbose RAM initialization messages.
- * When CONFIG_DEBUG_RAM_SETUP is not selected, these messages are automatically
+ * When CONFIG(DEBUG_RAM_SETUP) is not selected, these messages are automatically
* disabled.
* @{
*/
diff --git a/src/include/device/dram/ddr3.h b/src/include/device/dram/ddr3.h
index 0f9373e..19bce96 100644
--- a/src/include/device/dram/ddr3.h
+++ b/src/include/device/dram/ddr3.h
@@ -49,10 +49,10 @@
/** @} */
/**
- * \brief Convenience macro for enabling printk with CONFIG_DEBUG_RAM_SETUP
+ * \brief Convenience macro for enabling printk with CONFIG(DEBUG_RAM_SETUP)
*
* Use this macro instead of printk(); for verbose RAM initialization messages.
- * When CONFIG_DEBUG_RAM_SETUP is not selected, these messages are automatically
+ * When CONFIG(DEBUG_RAM_SETUP) is false, these messages are automatically
* disabled.
* @{
*/
--
To view, visit https://review.coreboot.org/c/coreboot/+/34439
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I360c4f563c2aa2acc740eac6c4e0145bda18edb7
Gerrit-Change-Number: 34439
Gerrit-PatchSet: 1
Gerrit-Owner: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-MessageType: newchange
Kyösti Mälkki has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/34084 )
Change subject: device/pci: Reduce scope of dev_find_slot()
......................................................................
device/pci: Reduce scope of dev_find_slot()
We only keep it around because amdfam10 does not yet
work correctly without it.
Change-Id: I3ea37c097bbcc3cf5c0574c7d727eae4f5bee307
Signed-off-by: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
---
M src/device/device_const.c
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/84/34084/1
diff --git a/src/device/device_const.c b/src/device/device_const.c
index c1b0b06..691cd80 100644
--- a/src/device/device_const.c
+++ b/src/device/device_const.c
@@ -35,6 +35,8 @@
* @param devfn A device/function number.
* @return Pointer to the device structure (if found), 0 otherwise.
*/
+
+#if CONFIG(NORTHBRIDGE_AMD_AMDFAM10)
DEVTREE_CONST struct device *dev_find_slot(unsigned int bus,
unsigned int devfn)
{
@@ -51,6 +53,7 @@
}
return result;
}
+#endif
/**
* Given a Device Path Type, find the device structure.
--
To view, visit https://review.coreboot.org/c/coreboot/+/34084
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I3ea37c097bbcc3cf5c0574c7d727eae4f5bee307
Gerrit-Change-Number: 34084
Gerrit-PatchSet: 1
Gerrit-Owner: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-MessageType: newchange
HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/34436 )
Change subject: sb/intel/fsp_rangeley: Fix naked reference to CONFIG_CONSOLE_POST
......................................................................
sb/intel/fsp_rangeley: Fix naked reference to CONFIG_CONSOLE_POST
Change-Id: I82d696ec79cb8a182e6b35de70c0e1ede2fa0bd9
Signed-off-by: Elyes HAOUAS <ehaouas(a)noos.fr>
---
M src/southbridge/intel/fsp_rangeley/romstage.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/36/34436/1
diff --git a/src/southbridge/intel/fsp_rangeley/romstage.c b/src/southbridge/intel/fsp_rangeley/romstage.c
index 2c2427e..297e1c4 100644
--- a/src/southbridge/intel/fsp_rangeley/romstage.c
+++ b/src/southbridge/intel/fsp_rangeley/romstage.c
@@ -43,7 +43,7 @@
* This causes the I/O to clog and a side effect is
* that the reset button stops functioning. So
* instead just use outb so it doesn't output to the
- * console when CONFIG_CONSOLE_POST.
+ * console when CONFIG(CONSOLE_POST).
*/
outb(0x40, 0x80);
--
To view, visit https://review.coreboot.org/c/coreboot/+/34436
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I82d696ec79cb8a182e6b35de70c0e1ede2fa0bd9
Gerrit-Change-Number: 34436
Gerrit-PatchSet: 1
Gerrit-Owner: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-MessageType: newchange
Patrick Georgi has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32814
Change subject: build system: Add various compiler flags that enable warnings on UB
......................................................................
build system: Add various compiler flags that enable warnings on UB
Some types of Undefined Behavior can be determined statically at compile
time and gcc now has a set of flags that make it emit warnings in that
case instead of doing the __builtin_trap() / optimize / UD2-opcode dance
that silently breaks the resulting binary.
Change-Id: I3aa5ca00c9838cc7517160069310a1ef85372027
Signed-off-by: Patrick Georgi <pgeorgi(a)google.com>
---
M Makefile.inc
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/14/32814/1
diff --git a/Makefile.inc b/Makefile.inc
index 9860da1..f2e010c 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -410,6 +410,8 @@
ifeq ($(CCC_ANALYZER_OUTPUT_FORMAT),)
CFLAGS_common += -Wno-packed-not-aligned
CFLAGS_common += -fconserve-stack
+CFLAGS_common += -pedantic-errors -Wnull-dereference
+CFLAGS_common += -Wno-aggressive-loop-optimizations -Wreturn-type
# cf. commit f69a99db (coreboot: x86: enable gc-sections)
CFLAGS_common += -Wno-unused-but-set-variable
endif
--
To view, visit https://review.coreboot.org/c/coreboot/+/32814
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I3aa5ca00c9838cc7517160069310a1ef85372027
Gerrit-Change-Number: 32814
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-MessageType: newchange